RustySharp

joined 2 years ago
[–] [email protected] 3 points 2 weeks ago

JSON5 is seriously what I feel JSON should've been. Comments, trailing commas, hex numbers, etc.

[–] [email protected] 27 points 2 weeks ago* (last edited 2 weeks ago) (7 children)

Or just open the thread on an mbin instance. Here's everyone that upvoted this thread.

Edit: Downvotes (reduces) are less exposed, but as you said, someone can just run a fedi instance that exposes them to everyone.

[–] [email protected] 4 points 3 months ago (7 children)

Honestly interested what makes something not an IDE but can be one? The fact that it requires plugins to turn it into an IDE?

Does that mean Eclipse is not an IDE either, since it requires either JDT or CDT to be anywhere near useful?

[–] [email protected] 9 points 1 year ago

break and continue are just goto in disguise ... use return instead of break

An if statement is goto in disguise. So is a return.

Some would argue having 10x 4-line functions are worse for readability and debugging than a single 40-liner, because to actually understand the code you have to jump around all over the page (another disguised goto - for your eyes!)

[–] [email protected] 10 points 1 year ago

I can certainly symphatise. I've been pushed to temporarily take management roles, either client-facing or reporting directly to a C-level. Been encouraged by the team to take on the roles permanently.

What they don't see is how mentally exhausting it is to actually shield the team from the BS on the other side, when you genuinely care about the people in your team. Yeah, I could use the money, but I don't trust myself to not act on the homicidal thoughts that pop up once in a while during those times..

[–] [email protected] 4 points 1 year ago

based on curiosity, which was short lived, because Linux (Mandrake) at the time was too challenging.

Story of my life back in high school. Except it was Slackware, from the back of a magazine.

Wasn't until I took Operating System Design in university that the whole linux/unix philosophy clicked.

[–] [email protected] 2 points 2 years ago

Or, someone donated 2.5-12, Apple matched it and filed the whole thing under their corporate account.

[–] [email protected] 4 points 2 years ago (1 children)

grep is your very best friend.

This. And also, in many cases, an 'adjacent' grep may help. Say you want to move the "OK" button on one screen. Searching for the string "OK" would be overwhelming as that would be all over the shop.

But you notice there's a "Setup..." button next to it. Searching for that could potentially cut down your search results by orders of magnitude. The more obscure the text, the better.

[–] [email protected] 3 points 2 years ago* (last edited 2 years ago) (1 children)

Tbh it starts to look better to just define a constant and comment it.

Well.. if (waterPressure > MAX_PRESSURE_BEFORE_YOU_FLOOD_THE_WHOLE_TOWN_OF_IPSWICH_AND_CALNE) is pretty self-documenting. No comments needed.

[–] [email protected] 6 points 2 years ago (4 children)

...what the code does, not why it does it

This is my issue with "it's self documenting code!". I'm a maintenance coder. I deal with people's code long after they're dead (or ragequit). Some are for control systems.

if (waterPressure_psi > 500) raise PipeMayBurstException. Okay, we're dealing with water pressure, in psi unit, and if it's too high, it may break the piping. Self documenting!!

Except that our pipes are rated for 1000psi. SO WHY THE 500?! Do we have one or two sites - out of hundreds - with lower rated pipes? I can double performance if we raise the threshold to 700, well within the safety tolerance, but AM I GONNA KILL SOMEONE when they upgrade to our latest controller??

view more: next ›