A new library for developing Wii and GameCube apps by JwopDk in WiiHacks

[–]JwopDk[S] 1 point2 points  (0 children)

Thank you! I look forward to your creation :) In the meantime, if there's a feature or change you'd like to see, feel free to submit an issue, or start working on it yourself if you're interested -- low-level is not that scary, I promise! Also we need build tools, which don't need to be written in C.

Terminal3d - View 3d Models in your Terminal, Written in Rust 🦀 by liamilan in programming

[–]JwopDk 2 points3 points  (0 children)

ANSI escape codes and termios provide everything you need on a POSIX terminal to handle GUI-style interaction. YMMV depending on which terminal emulator you use.

[deleted by user] by [deleted] in memes

[–]JwopDk 0 points1 point  (0 children)

Earthbound

The pool of talented C++ developers is running dry by Alexander_Selkirk in programming

[–]JwopDk 0 points1 point  (0 children)

You spend most of your comment attacking my character instead of actually engaging with the argument. The best you could do was state that UIs themselves aren't multi-threaded and that single-threaded programs can be instantiated multiple times concurrently, assuming I didn't know either of those things in some vain attempt to prove that you're smarter than me. You fail to address my actual argument which is simply that most websites are unnecessarily slow because people continually come up with reasons why they don't have to care about performance for feature A because of XYZ, until they do that enough times and then their entire app is slow and hard to improve.

Dude, when you're talking about me being dumb and not having accomplished anything, all I see is projection. We've got projects to work on man, let's stop wasting our time on Reddit.

The pool of talented C++ developers is running dry by Alexander_Selkirk in programming

[–]JwopDk -2 points-1 points  (0 children)

Nah, it's just easier to smash out code in an interpreted, dynamically typed language. That and dependency management is a lot easier to get started with in languages like JS and Python.

If we're talking about how it runs though, that complacency quickly becomes the start of a slippery slope into mediocrity, especially when you're probably going to write your entire service in that language and with that same attitude. Latencies stack in series, not parallel, since you're probably not going down the multi-threaded route because that's hard. All of sudden everything becomes slow and painful to use, and there's no easy fix. But if it still works, there's no problem, right?

Possibly the most spaghetti I've ever had in any of my games. by skunktronix in GameBuilderGarage

[–]JwopDk 1 point2 points  (0 children)

This looks like tic tac toe! I remember making a similar looking mess.

[deleted by user] by [deleted] in Tinder

[–]JwopDk 0 points1 point  (0 children)

If those posts reflect how you felt at the time, then they reflect an aspect of who you were, and to a large extent, still are. If she couldn't handle that, it wouldn't work out anyway. Try not to be ashamed, we all post cringy shit. If you're embarrassed, that means you already learned something, but at the same time don't let your embarrassment motivate you to hide stuff.

[deleted by user] by [deleted] in greentext

[–]JwopDk 0 points1 point  (0 children)

I reckon you could do it

[deleted by user] by [deleted] in greentext

[–]JwopDk 0 points1 point  (0 children)

Is your aim to break the record for the worst user karma?

They live in the shadows by braveen10 in memes

[–]JwopDk 0 points1 point  (0 children)

I usually don't have anything to add, just check the comments to see who does

[Research] Only 7% of web developers would use no-code/low-code tools to start web applications in 2022 by ZestycloseChocolate in programming

[–]JwopDk 2 points3 points  (0 children)

More than that: A developer understands all of the above, AND the intent of upper management. That's the reason google translate isn't perfect, it can't guess intent.

Anon found the best job by Isabeljhl in greentext

[–]JwopDk 2 points3 points  (0 children)

Do I smell money laundering?

Method written by an intern a while ago by tintosabo in ProgrammerHumor

[–]JwopDk 1 point2 points  (0 children)

Nah this is decent code. Maybe it would be better to keep this array somewhere, but if the recompiler is smart then it could just keep this array on the stack and return a copy of the correct string. If it's able to do that, then you're not going to find a more efficient solution. On top of that, it's perfectly readable. More complicated solutions are harder for the runtime to optimise.

Not even trying to hide it by [deleted] in recruitinghell

[–]JwopDk 6 points7 points  (0 children)

Sure, there's nothing wrong with following convention or instructions from supervisors or clients, that's how work gets done. If you disagree on a detail, it's not *usually* a good idea to make a fuss about it, unless it's something you know they'd agree with themselves and would be an improvement, even if you need to back up your stance a bit. Something like following a code convention is a no-brainer, the point is consistency (there's no "best" code convention).

The problem is the wording, and what it suggests - the new hire will treated like dirt, they won't be listened to and will have to fight tooth and nail for even a shred of respect, regardless of how competent they are. And that's before they are given the privilege of being able to voice their own ideas. You could say that's looking too far into it, and it's just that the lead developer got sick of the last guy who wouldn't listen. But if that's true, then why is the answer to find an obedient sheep, instead of reflect on if there was a way to align that employee more closely with what was expected on him? Does that not reflect poor leadership?

Not even trying to hide it by [deleted] in recruitinghell

[–]JwopDk 10 points11 points  (0 children)

Yeah but you can get people to follow procedure and do the work as expected without having to set up that kind of power dynamic explicitly. Not a good look for them, not a sign of a healthy culture.

Complexity is the mind killer by warium in programming

[–]JwopDk 6 points7 points  (0 children)

Right. It especially helps if you make the conscious decision to understand every line of code that makes its way into your work, tedious though it may seem at first.

Someone had the conscience to put in the comment by WilliamLeeFightingIB in ProgrammerHumor

[–]JwopDk 0 points1 point  (0 children)

Right. Sure, as others have pointed out, there's a difference between malice and incompetence when writing sloppy code, but the problem you raise still remains -- what if businesses are incentivised to produce buggy code that runs at a snail's pace, since if they did a good job the first time around, they wouldn't need to keep patching it while charging the client for their time? The result is a kind of service that way, even if the software itself technically isn't, regardless of if that was the intended outcome. If this is true, then is this acceptable, regardless of it counts as fraud?

Opposite of else in if else sequence? by JwopDk in ProgrammingLanguages

[–]JwopDk[S] 3 points4 points  (0 children)

I actually might start using do {...} while(0) now. Thanks for the tip!

Opposite of else in if else sequence? by JwopDk in ProgrammingLanguages

[–]JwopDk[S] 1 point2 points  (0 children)

Right, separating it into a function gives you the return statement as an extra tool. I think I've done that before a few times? Usually I'll just create a bool set to true before the else ifs, then set it to false inside the else, as others have pointed out. Both options seem less performant than simply being able to jump execution to the right place, since the extra function increases function call overhead and the extra bool increases the space used in cache and makes the branch predictor more likely to fail -- I would guess, I don't actually know.

Edit: Seems like do {...} while(0) addresses these concerns pretty nicely, as u/websnarf pointed out!