[-] [email protected] 28 points 7 months ago

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

[-] [email protected] 20 points 8 months ago

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

[-] [email protected] 29 points 8 months ago

Sounds like they are the product owner :)

[-] [email protected] 28 points 9 months 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.

[-] [email protected] 14 points 10 months ago* (last edited 10 months ago)

Just npm install isWeekend for the required locales.

Depends on: isMonday, isTuesday,...

[-] [email protected] 13 points 1 year 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/

[-] [email protected] 23 points 1 year ago
import codegolf
codegolf.challenge1() 
[-] [email protected] 12 points 1 year 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.

[-] [email protected] 19 points 1 year ago* (last edited 1 year 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.

[-] [email protected] 12 points 1 year ago

Creating an array of the function calls, and joining those seems more readable in that case.

Plus you don't have to take care that you use the correct number of placeholders.

[-] [email protected] 14 points 1 year ago

That's the problem. It will confidently give you an correct sounding answer.

If it is actually true is a different topic. So don't just blindly trust it. Verify, or at least sanity check it.

[-] [email protected] 22 points 1 year ago

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

Battle bots, but virtual XD

view more: next ›

coloredgrayscale

joined 1 year ago