RustySharp
@RustySharp@programming.dev
- Comment on Real quick question about the "break" 11 months 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!)
- Comment on Any recommendations for a career change? 11 months 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…
- Comment on what caused you to get into Linux? 11 months 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.
- Comment on Apple donation 1 year ago:
Or, someone donated 2.5-12, Apple matched it and filed the whole thing under their corporate account.
- Comment on This comic was published less than ten years ago, and it's wild how obsolete it is 1 year ago:
Like, ignore the last century of postulation. We just knocked this out real quick.
Oh wow thanks, TIL. I was a kid in the 90s, and always taught and read “there’s many guesses, but the most likely theory is a massive impact causing global changes”. And only today I learnt that it was a relatively new theory at the time, and the crater wasn’t even identified until the early 90s!
- Comment on How do you wrap your head around large established software projects in order to contribute to them? 1 year ago:
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.
- Comment on Null terminator 1 year ago:
Those were the times when I had to pull out my hard drive, ride my bike to my best mate’s house, and plug it into their PC so I could finish up a report due the next day. All because Windows 95 didn’t shut down cleanly and refused to boot.
- Comment on ways to close vim 1 year ago:
Honestly, the joke landed anyway. I’ve done numerous uppercase-Q trying to quit, because I didn’t let go of
Shift
fast enough after typing the colon…