With physics, but paused while coding. It only comes crashing down when the code gets executed.

We can add caching so numbers that have been checked once can be quickly looked up from an inMemory database.

[-] coloredgrayscale@programming.dev 28 points 2 years ago

Sounds like they are the product owner :)

[-] coloredgrayscale@programming.dev 27 points 2 years ago

Even without algorithm knowledge it should be fairly obvious that you can just fast forward several minutes and check if the item has gone missing.

Not the most efficient solution, but beats watching the entire tape in real time.

[-] coloredgrayscale@programming.dev 15 points 2 years ago* (last edited 2 years ago)

Just npm install isWeekend for the required locales.

Depends on: isMonday, isTuesday,...

[-] coloredgrayscale@programming.dev 13 points 2 years ago

Tilted 22 degree to maximize the potential line length that can be displayed.

https://gigazine.net/gsc_news/en/20211203-ideal-monitor-rotation-for-programmers/

[-] coloredgrayscale@programming.dev 23 points 2 years ago
import codegolf
codegolf.challenge1() 
[-] coloredgrayscale@programming.dev 12 points 2 years ago

Assembly would be lower. You have more complex / direct instructions in assembly. Brain fuck is pretty much just a pure turing machine, and has 8 instructions.

X86 has ~ 1000 + variants. Even ARM with a smaller instruction set has 232 instructions.

In brain fuck to set a number you'd have to count up (or down - underflow) to that number. In assembly you just set it.

Somewhere I've read that current assembly code with Makros should be similar to writing C.

[-] coloredgrayscale@programming.dev 12 points 2 years ago

"too many comments".

[-] coloredgrayscale@programming.dev 19 points 2 years ago* (last edited 2 years ago)

300 nested if statements, (...) added another 5000 nested if statements.

At this point I want to doubt that they actually wrote it themselves, vs writing a metaprogram to generate the code.

[-] coloredgrayscale@programming.dev 19 points 2 years ago

The solution is obviously to replace the mods by bots, to fight other bots.

Battle bots, but virtual XD

[-] coloredgrayscale@programming.dev 32 points 2 years ago

You poor soul.

clicks scrollbar with mouse and drags it, instead of using the scroll wheel

view more: next ›

coloredgrayscale

joined 2 years ago