The approximate location where we should drop all the billionaires without floaties.
- 1 Post
- 694 Comments
kryptonianCodeMonkey@lemmy.worldto
Programming@programming.dev•what's the coolest thing you have ever programmed?
3·3 days agoMines nothing amazing, really, but i find it handy.
I 🏴☠️ movies. The downloads often come with excess files, images, text, sample videos, etc. The only files I want beside the movie file are subtitle files if they came with the download. And the video files often have obnoxiously long file names with coding info in it, the uploader’s name, etc. And sometimes they get nested weirdly.
Most of the time, the file name and nesting is not really a big deal since I use plex and does good at ignoring nesting and it typically matches the title to imdb entries even if the file name is full of garbage. But sometimes it doesn’t match correctly and has to be manually fixed. And I just want my files to be clean, readable, and get rid of the bloat.
So I made a script that walks through my movie libraries, deletes all unneeded files, generates a directory structure dependent on whether or not there are subtitles, and renames the files (and directories) by removing all of the junk words and coding and leaving only the title and release year. Like I said, it’s nothing amazing, but it’s the only utility I ever wrote in it’s entirety for myself that I actually use on the regular.
kryptonianCodeMonkey@lemmy.worldto
Lemmy Shitpost@lemmy.world•How do you sleep at night? Please respond with a number
5·9 days ago20 unless I am too exhausted to shower before bed, then it’s 3.
kryptonianCodeMonkey@lemmy.worldto
Asklemmy@lemmy.ml•What is your opinion on Libertarianism?
3·13 days agoIt is an ideology for selfish amoral oppotunists
kryptonianCodeMonkey@lemmy.worldto
Technology@lemmy.world•Crucial is shutting down — because Micron wants to sell its RAM and SSDs to AI companies insteadEnglish
12·13 days agoRight? Feel bad for anyone that just had a system fry or have been saving up to upgrade.
kryptonianCodeMonkey@lemmy.worldto
Programmer Humor@programming.dev•What are some of the worst code you have seen in a production environment?
4·21 days agoSure. There were worse problems to. SQL injection vulnerabilities, dense functions with hundreds of lines of spaghetti code, absolutely zero test coverage on any project, etc. That’s just the easiest to show an example of and it’s also the one that made me flinch every time I saw it.
"".equals()😨
kryptonianCodeMonkey@lemmy.worldto
Programmer Humor@programming.dev•What are some of the worst code you have seen in a production environment?
61·21 days agoJoined a new team and one of my first tasks was a refactor on a shared code file (Java) that was littered with data validations like
if ("".equals(id) || id == null) { throw new IllegalArgumentException() }The dev who wrote it clearly was trying to make sure the string values were populated but they apparently A) didn’t think to just put the null check first so they didnt have to write their string comparison so terribly or else didnt understand short circuiting and B) didn’t know any other null-safe way to check for an empty string, like, say StringUtils.isEmpty()
They know what they did…
They know what we all do all the time.
Correlation not implying causation is not the same as correlation not implying relation. When data correlates, that means that there is a liklihood that there is some connection. For any two correlating datasets, there are 3 explanations, 1) coincidence 2) causation 3) relation to a shared casual link. Figuring out which it is just requires more data, experimentation, and/or an understanding of the mechanisms of their relation. We use correlation of datasets as a guide, and even as a proof of theory given enough experimentation and correlating data to show a casual link all the time in science.
I think that the liklihood that leaded gasoline is connected to the rates of serial killers and other forms of violent crime is high not just because of the correlation, but because of that and the fact that we have studies showing how lead poisoning can effect people’s behavior. We know it can effect behavior, and we know that lead levels in the air peaked in the mid 70s before leaded gasoline was banned. It is not a leap to jump to the hypothesis that leaded gasoline causing high lead levels in the air from pollution may have effected human behavior. And then the data of serial killings and violent crime actually showing a correlation with those lead levels strengthens that hypothesis. I wouldn’t say that it’s proof, far from it. But I do think it’s likely the truth.
The internet
Genuinely speaking, low level lead poisoning is linked to increased aggression, criminal behavior and lack of empathy. It may be directly tied to the reason we so rarely see serial killers now, but they were relatively prevalent in the 60s, 70s, and 80s. This is at the height of pollution related to leaded gasoline. It might explain Boomer and Xer MAGA conservatives too.
What’s that? You’re not tired and you haven’t seen anyone open their mouth big, but you read about a hypothetical person opening their mouth big? Bad news…
kryptonianCodeMonkey@lemmy.worldto
People Twitter@sh.itjust.works•You can just start new traditions
53·28 days agoSquare Enix has entered the Fashion Industry.
kryptonianCodeMonkey@lemmy.worldto
Lemmy Shitpost@lemmy.world•Screw your zodiac sign, tell me...
10·1 month agoHerc and Megara went through college with me, moved back into my mom’s with me, through a couple apartments and into my first home before they finally split in half in the dishwasher.
kryptonianCodeMonkey@lemmy.worldto
Lemmy Shitpost@lemmy.world•Screw your zodiac sign, tell me...
1·1 month ago9, but we had some saucers with 8, I think.
That and the “without the Bible, how do you know what’s right or wrong” crowd. They have become so externally reliant on direction that they dont even have an independent sense of morality anymore. Also, they must think, in turn, that that non-Christian cultures and people are inherently amoral or immoral. The irony.


Brits: I like my food like I like my trousers. Beige and tasting of cotton.