The code so bad you won't hire

Y'know, other stuff, Sinclair related.
User avatar
Sokurah
Manic Miner
Posts: 287
Joined: Tue Nov 14, 2017 10:38 am
Contact:

Re: The code so bad you won't hire

Post 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:
Website: Tardis Remakes / Mostly remakes of Arcade and ZX Spectrum games.
My games for the Spectrum: Dingo, The Speccies, The Speccies 2, Vallation & Sqij.
Twitter: Sokurah
equinox
Dynamite Dan
Posts: 1052
Joined: Mon Oct 08, 2018 1:57 am
Location: SE England

Re: The code so bad you won't hire

Post 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
User avatar
ParadigmShifter
Manic Miner
Posts: 670
Joined: Sat Sep 09, 2023 4:55 am

Re: The code so bad you won't hire

Post 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,
equinox
Dynamite Dan
Posts: 1052
Joined: Mon Oct 08, 2018 1:57 am
Location: SE England

Re: The code so bad you won't hire

Post 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]
User avatar
ParadigmShifter
Manic Miner
Posts: 670
Joined: Sat Sep 09, 2023 4:55 am

Re: The code so bad you won't hire

Post 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.
equinox
Dynamite Dan
Posts: 1052
Joined: Mon Oct 08, 2018 1:57 am
Location: SE England

Re: The code so bad you won't hire

Post 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
equinox
Dynamite Dan
Posts: 1052
Joined: Mon Oct 08, 2018 1:57 am
Location: SE England

Re: The code so bad you won't hire

Post 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
Post Reply