[-] coloredgrayscale@programming.dev 12 points 3 months ago

Make those changes in an own commit, or keep it to files you already have to touch.

[-] coloredgrayscale@programming.dev 28 points 4 months ago

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

[-] coloredgrayscale@programming.dev 11 points 4 months ago

Why are you in programming related communities if you don't enjoy it?

[-] coloredgrayscale@programming.dev 20 points 5 months ago

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

[-] coloredgrayscale@programming.dev 29 points 5 months ago

Sounds like they are the product owner :)

[-] coloredgrayscale@programming.dev 28 points 7 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.

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

Just npm install isWeekend for the required locales.

Depends on: isMonday, isTuesday,...

[-] coloredgrayscale@programming.dev 13 points 9 months 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 10 months ago
import codegolf
codegolf.challenge1() 
[-] coloredgrayscale@programming.dev 12 points 10 months 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 10 months ago

"too many comments".

[-] coloredgrayscale@programming.dev 19 points 11 months ago* (last edited 11 months 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.

view more: next ›

coloredgrayscale

joined 1 year ago