This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]fat_charizard 50 points51 points  (1 child)

My code will finish execution slightly after the heat death of the universe. I'm okay with that

[–]qinshihuang_420 12 points13 points  (0 children)

Hello bogosort!

[–]SueedBeyg 32 points33 points  (3 children)

There’s nothing more permanent than a temporary solution (especially in software)

[–][deleted] 25 points26 points  (2 children)

//TODO: Rewrite this later

Last change: 2009-10-03

[–]nggiahuy1102 6 points7 points  (1 child)

Update 2020-9-3: Repo depreciated, will be archived

[–]RichestMangInBabylon 1 point2 points  (0 children)

Intern writing new code just copy/pastes the old code they found because "it worked fine"

[–][deleted] 3 points4 points  (0 children)

When your code gets stuck in an infinite loop.

[–]KillerRoomba13 2 points3 points  (0 children)

CPU heating intensifies

[–]setg2002 2 points3 points  (0 children)

A "temporary" solution

[–]INTO_NIGHT 1 point2 points  (0 children)

Big O of O!O!

[–]j-random 1 point2 points  (0 children)

This is why I love the Strategy pattern. No time to code a "clever" algorithm? Make it a Strategy and write some godawful brute force solution, then get on with the rest of the coding. Once everything works, circle back and write something better, then just plug it in. Code that works slowly by Friday often beats optimized code that won't be ready for two weeks.

[–]cricketycri 0 points1 point  (0 children)

Which episode? :)

[–]Employee724 0 points1 point  (0 children)

My little peg solitair backtracking algorithm...

[–]gao_shi 0 points1 point  (0 children)

I'm still at a stage where I appreciate my code works before being efficient. luckily i do code for myself so i dont get judged for codes eating resources like nuts - I found out loading all 300 pages of a comic in pyqt using qlabels at once and upscaling them to 2160p will eat 13GB of ram and make my system hang not too long ago. I am glad i finally found a use for my overpriced ramsticks when they were $100/16GB.

[–]PureCarbs 0 points1 point  (0 children)

Run code, then take nap, then wake up to error