ProgrammerHumor

beholdTheProgrammingGuru

beholdTheProgrammingGuru
https://i.redd.it/5xq3ck6o02df1.jpeg
Reddit

Discussion

ClipboardCopyPaste
:js::cs:

setTimeout(()=>{...}, 8000) ➡️ setTimeout(()=>{...}, 8)

7 hours ago
MGateLabs

It does feel god like to take a method that was taking 36-72 hours and after rewriting it, it takes 2 hours. Faulty logic was causing it to perform a lot of full table scans.

7 hours ago
chico_valerio OP

especially when it wasn't your dumbass past self who made the faulty logic in the first place

7 hours ago
BellacosePlayer
:cs:

I will admit, making a report go from 40 minutes to instant as a year one junior made me feel smug as shit

5 hours ago
anotheridiot-
:g::c::py::bash::js:

Optimization -> brain activation

23 minutes ago
VictoryMotel

What are you doing that a single method would take 72 hours?

2 hours ago
MGateLabs

Calculating the time it takes a crew to fix a power outage caused by a squirrel, that happens during a weekday that involves the late shift. It had like billions of possible combinations.

2 hours ago
VictoryMotel

They could be done by the time that finishes, was it python?

2 hours ago
MGateLabs

C#, and this was to pre-calculate for the estimates, not live time

2 hours ago
WorldWorstProgrammer
:cp::j::bash::hsk::py:

And you should feel that way.

Regardless of how you look at it, if you can and have dramatically improved the execution speed of your own code, that means that you have improved your programming skill! You are better than you were before, which is the only comparison that really matters.

Go you!

5 hours ago
JazzlikeDamage6351
:cp:

I felt like that when parsing JSON with SIMD. Felt like I just discovered fire. 8x sync speed.

Then I wasted 2 hours because I forgot to exec the prepared statement. Good times.

7 hours ago
SearingPhoenix

The secret was probably hashtables.

7 hours ago
damngoodwizard

I feel like that when i optimize SQL queries.

7 hours ago
Neither_Nebula_5423

Model training script optimization 🚬

6 hours ago
Cautious-Respect5925

Best feeling ever) even if the code still looks like spaghetti

6 hours ago
Giocri

That's how i felt making iterators to actually iterate over stuff instead of the 700+ lines of for loops scattered around the codebase all to do the same basic interations on the same type

5 hours ago
dosadiexperiment

You only get to pose like that when you make someone else's shitty script run 1000x faster.

4 hours ago
critical_patch
:py:

My team has been rewriting some of our workflows from our ticket system’s no-code orchestration editor into python scripts, and reducing runtimes from 2ish hours down to seconds. It’s pretty exciting

2 hours ago
Alex_NinjaDev

It still crashes, but it crashes FASTER. The true guru motto 😂

1 hour ago
Snezhok_Youtuber
:rust: :py: :ts: :c: :g:

By rewriting it from Python to Rust... (Don't throw rocks at me, is just reality, many tools switch from interpreted languages to Rust so they get blazing fast speed)

7 hours ago
Tohnmeister
:cs::cp::kt::j::rust::py:

In my experience most of the lack of performance isn't the result of the programming language, but rather really shitty programming. As if there were some sorta competition who could create the worse complexity algorithm.

7 hours ago
Snezhok_Youtuber
:rust: :py: :ts: :c: :g:

Definetily is, but still, the interpreted language requires much more CPU clocks than just compiled native code and therefore is anyway slower. Even with I/O scenarios.

6 hours ago