r/badcode • • Apr 07 '21

java Apparently Java can only handle 255 parameters in a constructor...

Post image
4.0k Upvotes

249 comments sorted by

View all comments

Show parent comment

0

u/Lost4468 Apr 07 '21

Issue 1: someone else is testing on it...

Which means you haven't designed your setup properly. Again no excuse.

Issue 2: ... And they kill the device..

This is a ridiculous thing to say. How do they kill the device? That's not how this works.

These excuses are what i could think of, not good excuses, but excuses none the less...

As I said, if you're setup like this then it's a huge mistake. There's no justification for it, it means the company doesn't know what they're doing and they're going to set development time back significantly and cause all sorts of other problems.

There's no excuse for this with the exception of a few very specific circumstances, e.g. an ASIC is being designed and fabricated, but that ages to do so for now there's no real hardware to test on. And even in that situation you don't just not test, you just test in a simulated environment. As far as not testing at all, I'd go so far as to say there's never an excuse for that.

E.g. what if you're designing software for a rocket? Obviously you can't just test it on a rocket every time. Does that mean you just program away and then after a while test it on a rocket and hope it works? No that's ridiculous. You write a simulated environment to test it in, then test all your code in there.

1

u/echosalik Apr 07 '21

Those were stupid excuses I know... I aimed for those... but yeah there are no actual excuses, besides, well, the first one. We had a case where we had to do testing on an hardware (RPi) but that was in use by other team.

We only had one of it coz we never deployed to that hardware. It was an experiment. We just had to verify that code would work on that arm arch and that was not even a requirement. More like, hmmmm i wonder if we can put this on a RPi like hardware and see the performance.

1

u/Lost4468 Apr 07 '21

That's not really developing for a pi then, that's just research. If you're actually targetting the Pi then every dev should have access to one.

1

u/echosalik Apr 07 '21

Yeah I know. I could/should have worded it properly. I'd say English isn't my first language, but I use it more than my own language.