Enlightenment is realizing that variables don’t have nor need a type, they are all just arrays of bits.
- 0 Posts
- 91 Comments
PowerCrazy@lemmy.mlto Programmer Humor@lemmy.ml•Python needs an actual default functionEnglish1·2 months agoI can import my_script2.py into my_script.py it doesn’t run the main method unless I specifically invoke my_script2.main() though.
PowerCrazy@lemmy.mlto Programmer Humor@lemmy.ml•Python needs an actual default functionEnglish7·2 months agoIdk, I guess I should ask why python needs a default function? If I’m running it as a script with commandline invocation I just copy and paste the if main namespace thing from stack overflow and it works as I intended. It also works if I invoke via python my_script.py $args, so I don’t really see why I should philosophically care about how other languages that I’m not using do it.
PowerCrazy@lemmy.mlto Programmer Humor@lemmy.ml•What's stopping you from writing your Rust like this?English43·5 months agoWhy does even a modern language syntax insist on having end of line characters like semi colons. Surely we have moved beyond that. What is even the point of those characters?
PowerCrazy@lemmy.mlto Open Source@lemmy.ml•Chronolink: A tool for bypassing time-based features of Family Link parental controls.English3·5 months ago“YOU NEED A COMPUTER AND DEVELOPER OPTIONS ENABLED FOR THIS TO WORK. DEVELOPER OPTIONS CAN BE ENABLED ON THE PARENT APP.”
So is this just a case where if you have a privileged user i.e. developer options, you can do things like change the time? Maybe i’m misunderstanding the way time-based features work, but surely they can be trivially bypassed by the child in a myriad number of ways if they have privileged access already?
Git is great. Git is Complicated. But assuming you have a protected master branch that requires PRs and will detect merge conflicts before attempting to merge, it’s not really dangerous. It is however frustrating.
PowerCrazy@lemmy.mltoReddit@lemmy.ml•Reddit is removing links to Luigi Mangione's manifestoEnglish815·7 months agoFuck off.
PowerCrazy@lemmy.mltoReddit@lemmy.ml•Reddit is removing links to Luigi Mangione's manifestoEnglish1019·7 months agoNot true. lemmy.ml only has dumbass word filter so you can’t say “b!tch” or “r3tard.” but there isn’t any content filter about Luigi’s manifesto, or deny, defend, depose. Or declaring that you are happy Brian Thompson was killed, or that Trump was almost assassinated. Additionally CEOs addresses, wishes and suggestions that healthcare companies should have their entire corporate structure culled, won’t be removed.
You can also discuss Tienanmen Square, or all of the weird key CIA internet keywords that emerged int he 90’s.
Sounds like the perfect evolution of pointers then.
I “understood” on a basic level what pointers were when i was first learning programing as a 12-13year old. But I never understood HOW to use them, or manipulate them, or what functions you use to interact with them, or how to examine them, or how to declare them, etc etc. And since I was young I never got the opportunity to take an actual programming class that taught any of that throughout high school. By the time I got to college I went with Electrical Engineering instead of computer science and so my journey with pointers ended.
Now I do python and never have to think about pointers.
PowerCrazy@lemmy.mlto Antiwork@lemmy.ml•(TWEET WAS FAKE, SORRY!) I'd say Elon Musk said the quiet part out loud but he probably genuinely didn't even know that was the quiet part and thought everyone would wholeheartedly agree with himEnglish231·7 months agoCan we please PLEASE start linking the actual tweet in the future. You can also screen shot it/copy and paste the content if you want, but PLEASE screenshots of tweets are the worst thing on the internet.
PowerCrazy@lemmy.mlto Data Is Beautiful@lemmy.ml•Eye colour percentages around the worldEnglish8·9 months agoThat is accurate assuming that eye color is defined by only 2 genes, but in actuality it’s more, possibly as many as 50 different genes.
PowerCrazy@lemmy.mlto Open Source@lemmy.ml•Ventoy source code contains some unknown BLOBs, still no word on the issue from the dev after monthsEnglish1·10 months agoI don’t know about the history of the project, but it sounds like those blobs have been there for quite some time. When in reality, the PR that added the blobs in the first place shouldn’t ever have been approved.
Actually just checked 3+ years.
PowerCrazy@lemmy.mlto Open Source@lemmy.ml•Ventoy source code contains some unknown BLOBs, still no word on the issue from the dev after monthsEnglish2·10 months agoThis isn’t a knock against opensource programming, but there shouldn’t ever be precompiled blobs in the repo unless they are the official builds for the various OS’s and if you want to build from source, the pre-compiled blobs shouldn’t be part of that, otherwise you can’t really claim you are opensource.
PowerCrazy@lemmy.mlto Open Source@lemmy.ml•Ventoy source code contains some unknown BLOBs, still no word on the issue from the dev after monthsEnglish7614·10 months agoHey guys open source is great you can look at all the code and therefore there are no security backdoors etc. Also here are a bunch of pre-compiled blobs in the repo, don’t worry about those, but they are required to run the program.
PowerCrazy@lemmy.mltoUnixporn@lemmy.ml•Programming Fonts - Test drive all the programming fontsEnglish3·11 months agohttps://www.programmingfonts.org/#anonymous-pro Is what I use for terminal sessions. Not sure how I feel about it in an IDE. The color coding the most important part imo.
PowerCrazy@lemmy.mlto Programmer Humor@lemmy.ml•Basically the extent of my IPv6 knowledgeEnglish8·1 year agoI’m a network engineer and I run ipv6 natively in all of our datacenters. There are even a handful of end systems that have ipv6 native networking stacks with ipv4 sockets for our non-ipv6 compatible applications. IPv6 issues are basically self-inflicted at this point by companies that see their IT systems as cost centers, or by basilisk directors who’s knowledge stopped in the 90’s.
Obviously this won’t be a problem once AI becomes self-aware. /s
If the labor force could opt out of the rat race because they didn’t have to work, then they gives them immense power especially considering what they have now. Of course the necessities would have to be controlled in a not-for-profit manner so that you can’t just have some land baron that adjusts the cost of rent and food upward to ensure it eats up all the UBI, same with utilities/internet/etc.
But for consumerist goods that people want because they enhance life, if people could realistically withhold their labor unless the capitalist offered equity etc in industries that produced those things, you would quickly see the power of the leaders of those industries wane significantly.
How can my JSON response have any concept of Type? If I return a number and you treat it is a string, my API doesn’t have any concept of that. Now in the actual spec of the API I could say that specific URI will return an
int
, but it’s up to your side to classify the array of bits as anint
instead of astr
.