Page 6 of 6

Re: The code so bad you won't hire

Posted: Sat Jan 27, 2024 11:26 pm
by Sokurah
Psh, you and all your complicated code. Surely it doesn't get much worse than this?

Code: Select all

10 GOSUB 10: RETURN
Not only will it grow the stack and give an error, but the RETURN isn't even needed :lol:

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 8:42 pm
by equinox
Einar Saukas wrote: Sat Jan 27, 2024 11:29 am The answer is, this routine will generate a list of elements in pseudo-random order
sorting by null (or by RAND() ?). that's very Hofstadterian

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 8:47 pm
by ParadigmShifter
I just find it odd that professional programmers would try and implement their own algorithms and be ignorant of stuff like Array.sort or whatever it is called in Java,

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 8:50 pm
by equinox
ParadigmShifter wrote: Sun Jan 28, 2024 8:47 pm I just find it odd that professional programmers would try and implement their own algorithms and be ignorant of stuff like Array.sort or whatever it is called in Java,
"hackernews" taught them that you only need to know two things: 1. how to write a red-black tree on demand in 10 minutes, and 2. [censored, you know what it is though]

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 8:55 pm
by ParadigmShifter
Red-black tree is just std::map in C++ though. Plus all the code is in headers so you can rip it off if you like.

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 9:01 pm
by equinox
ParadigmShifter wrote: Sun Jan 28, 2024 8:55 pm Red-black tree is just std::map in C++ though. Plus all the code is in headers so you can rip it off if you like.
congrats ur hired

Re: The code so bad you won't hire

Posted: Sun Jan 28, 2024 9:01 pm
by equinox
ParadigmShifter wrote: Sun Jan 28, 2024 8:55 pm Plus all the code is in headers so you can rip it off if you like.
this is what open source gets us