r/shittyprogramming • • Mar 21 '16

“it worked if it ends with ok”

Post image
301 Upvotes

27 comments sorted by

2

u/abermea Mar 22 '16

I am a little more suprised about seeing "<3" instead of "#" or "$" in the terminal

4

u/jaseg Mar 22 '16
function fish_prompt
    printf "\e[37m%s\e[96m%s" (hostname) (prompt_pwd)
    if test $VIRTUAL_ENV
        printf " \e[37m(%s)" (basename $VIRTUAL_ENV)
    end
    printf " \e[91m<3\e[0m "
end

2

u/kevincox_ca Mar 22 '16

Default shell prompts should really show exit code.

1

u/jaseg Mar 22 '16

It does, right-aligned outside the screenshot area.

78

u/JamiesWhiteShirt Mar 21 '16

gyp info not ok

It worked!

89

u/Pouper Mar 21 '16

ok

33

u/[deleted] Mar 21 '16

We did it Reddit!

6

u/Neebat Mar 21 '16

ok

8

u/romulusnr Mar 21 '16

How do we get it to stop working?

12

u/dynoraptor Mar 21 '16

Press the F15 key

9

u/romulusnr Mar 21 '16

ok

edit: Dammit!!!

5

u/LpSamuelm Mar 21 '16

Come on, guys, stop ending the thread with things other than "ok".

ok

2

u/GaussWanker Mar 21 '16

Roger roger, ok over.

0

u/[deleted] Mar 22 '16

[deleted]

3

u/thirdegree Mar 22 '16

// your semicolon has no power over me.

→ More replies (0)

23

u/imranilzar Mar 22 '16

Scary error messages in red may appear during install. Ignore them. The install will succeed.

Angular npm-related install tutorial...

Install did not succeeded.

1

u/[deleted] May 12 '16

Shit, don't time travel.

11

u/[deleted] Mar 22 '16

node-gyp is the bane of my existence. Jesus Christ is it horrible.

6

u/ChemicalRocketeer Mar 22 '16

Seriously. In all my software development, gyp is some of the shittiest shit I have ever had to wade through.

3

u/skulgnome Mar 22 '16

Do you feel... gypped?

8

u/romulusnr Mar 21 '16

It ended with OK, that is until about 1950 when HI and AK were added.

4

u/Riverthief Mar 21 '16

All's well that ends ok. So I'll end -this shit- with a fuck you but have a nice day.

2

u/senntenial Mar 22 '16

Node, what a surprise!

2

u/tusksrus Mar 21 '16
return 0;

25

u/[deleted] Mar 21 '16
return 0k;

4

u/mr_smartypants537 Mar 22 '16

#define OK return 0;

1

u/romulusnr Mar 28 '16

As an SDET, I see a lot of this mentality when it comes to test cases. If it's green, it's good.

Never mind if it actually tests anything. It's green. Shut up and do something useful.