To whoever does that, I hope that there is a special place in hell where they force you to do type safe API bindings for a JSON API, and every time you use the wrong type for a value, they cave your skull in.
Sadly it doesn't fix the bad documentation problem. I often don't care that a field is special and either give a string or number. This is fine.
What is not fine, and which should sentence you to eternal punishment, is to not clearly document it.
Don't you love when you publish a crate, have tested it on thousands of returned objects, only for the first issue be "field is sometimes null/other type?". You really start questioning everything about the API, and sometimes you'd rather parse it as serde::Value and call it a day.
It's not that bad. It definitely helps in long functions.
I'm an advocate for code commenting itself, but sometimes it's just better to comment on what you're doing, and in those cases it helps to over commentate.
Instead of letting the reader interweave code reading and comment reading, I think it's better to do either. Either you go full self describing code, letting the reader parse it as code,m, or you abstract everything, making it more of an explanation of your reasoning, and abstract lines that may look too complicated.
Not every comment needs to be useful, but I still write them to not have this switch between reasoning and thinking in code.
It can also double as rubber duck debugging too!
When you're at work, do you ever find yourself fantasizing and being hyper motivated about being home to continue THAT thing you're really excited about or should be doing. But then once you get home all motivation evaporates and you end up doing nothing and feeling guilty about it?
Same, and I'm trying to fight against it. I've noticed that when coming home I am not just procrastinating, but actually exhausted. Idk if it's due to concentrating all day, or something with me, but I do know that I am tired.
I've started to actually embrace it, and for the time until I get dinner, I just rest. Might sleep even. There's no point in fighting, as I aren't in the mental space to do things.
Then after dinner I'm back to do stuff, maybe even later in the night as I am more rested from my nap.
Although another take on it is that things are lot more enticed to do things when you can't/don't have them.
I am not a doctor, nor claim what I do is healthy, but that's just my experience. If anyone got tips I'm listening
I keep asking myself what to choose, only for changing it a day after cursing myself to choose a stupid name.
Big endiant is great for intellisense to quickly browse possibilities, since it groups it all in the same place. But that's also a detriment when you know what you want. You can start typing without the prefix but you'll have to go through the better suggestions of intellisense first.
Little endiant is the same thing, but in reverse. Great when needed, but bad for browsing.
Although I do have some fix I'm starting to use. But it's not applicable everywhere, and not in every language.
What I do is use module as prefix. Instead of dialogue_file_open, I create a file_open in the dialogue module, allowing either directly calling file_open, or dialogue::file_open. Using intellisense on the module allow for easy browsing too!
Although in OP's post I'd rather have file_open_dialogue as it convey the more significant meaning, being to open a file, first. Then "dialogue" is just the flavour on top
I don't know what's the brand neW meta pick, but at least BTRFS over Ext4. BTRFS is just more stable and less corruptable than Ext4. Heck, fedora changed to it as default
Surely "1337" is the same as 1337, right?
Meme transcription:...
Coomitter be like
This Disease is Deadlier Than The Plague ( yt.artemislena.eu )
Canonical YouTube link
You can fit two cars there ( lemmy.world )
She SAT IN YOUR CHAIR!? ( lemmy.world )
Happens all the time ( sh.itjust.works )
University Students
Comment from my group project teammate. You don't need to comment every line lol
TP-Link Gaming Router Vulnerability Exposes Users to Remote Code Attacks ( thehackernews.com )
The Article...
Do you ever feel like that sometimes ?
When you're at work, do you ever find yourself fantasizing and being hyper motivated about being home to continue THAT thing you're really excited about or should be doing. But then once you get home all motivation evaporates and you end up doing nothing and feeling guilty about it?
ASUS GT-AX6000 vs RT-AX88U Pro vs RT-AX86U Pro: Which of the three is the better WiFi 6 router? ( www.youtube.com )
Skip the gloomy tech news a bit and just enjoy some good ol' router reviews with tests and stuff.
new preference war just dropped ( i.redd.it )
geteilt von: https://lemmit.online/post/3018791...
Now that google is going all in on ai what are some sites you plan on bookmarking. ( kbin.social )
Just curious since I think it is about to get a whole lot harder to search using google. hopefully this will signal the end of their monopoly.
What it's like to be a developer in 2024 ( sopuli.xyz )
Source
“ARE YOU ALL SEEING THIS” ( sh.itjust.works )
Emoji Rule ( files.catbox.moe )
got him ( lemy.lol )
'Real men wear diapers': Trump supporters wear nappies ( news.sky.com )
Which file system do you recommend for Linux?
Just a simple question :...
NOT EVEN MORTAL, MACHINE! A MERE OBJECT! ( lemmy.world )
Where do they get those numbers from? ( lemmy.world )
My Git Knowledge ( lemm.ee )