r/ProgrammerHumor • • Sep 12 '19

Library errors be like

Post image
26.0k Upvotes

179 comments sorted by

View all comments

Show parent comments

580

u/DmitriRussian Sep 12 '19

This is why source maps were invented!

0

u/[deleted] Sep 12 '19

[deleted]

218

u/DmitriRussian Sep 12 '19

0

u/[deleted] Sep 12 '19

[deleted]

76

u/CommunismDoesntWork Sep 12 '19

I love your username

0

u/[deleted] Sep 12 '19

[deleted]

142

u/commie_heathen Sep 12 '19

I don't like either of yours!

0

u/[deleted] Sep 12 '19

[deleted]

45

u/commie_heathen Sep 12 '19 edited Sep 12 '19

Filthy bourgeois!!

Edit: /s, c'mon people

0

u/[deleted] Sep 12 '19

[deleted]

→ More replies (0)
→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (3)
→ More replies (3)

4

u/mitwilsch Sep 13 '19

Thanks, saving for later. One of these things I always find annoying but doesn't come up enough to bother fixing 😁

7

u/Shulamite Sep 12 '19

Not until vue3 when template sourcemap is implemented.For now you had to deal with it or use render function instead

→ More replies (2)

2

u/TerrorBite Sep 13 '19

You can have Webpack output a source map, and the browser inspector will actually parse that source map and reconstruct the original file tree and source code in the inspector.

3

u/[deleted] Sep 13 '19

Not super helpful, but to let you know the tech works... I work with Angular a lot, and that transpiles typescript code to javascript code, which gets uglified and concatted into one massive unrecognizable pile of ugly. Yet chrome always tells me "Error on line 23 of SomeComonent.ts". It's lovely.

→ More replies (2)

55

u/Peechez Sep 12 '19

Jokes on you I write minified and obfuscated code as my source

52

u/stamminator Sep 12 '19

My code is so bad that everybody thinks it's obfuscated and I just haven't corrected them

36

u/[deleted] Sep 12 '19

Had an old coworker who used to patch the minified js from a library we used by hand. He just grabbed paper to make notes about what symbol was what variable and stepped through it. It was horrifying and amazing at the same time.

44

u/Dregre Sep 12 '19

You haven't seen true insanity yet. A former employee at the a former company I worked for more or less read byte-code for micro controllers. The guy was a wizard that could rip the compiled code no one knew and fix a bug without looking at the original source.

11

u/[deleted] Sep 12 '19

thats fucking insane.

6

u/[deleted] Sep 12 '19

Reminds me of the story of Mel.

http://www.catb.org/~esr/jargon/html/story-of-mel.html

These people are in a league of their own. I’m over here feeling good cause I know c# and js pretty good and people are editing compiled programs.

5

u/Y1ff Sep 13 '19

damn they made shenzhen i/o into a real thing šŸ˜‚šŸ˜‚šŸ˜‚

→ More replies (1)

2

u/DeeSnow97 Sep 13 '19

we code JS though, not perl

5

u/hylic Sep 12 '19

Russian bots beat me to the punch again!!

3

u/[deleted] Sep 13 '19

The source maps for my sass are fucked somehow so chrome tells me the styles for an element are in an unrelated partial

2

u/nick_lab Sep 13 '19

Lol doesn't stop angular from screwing it up

→ More replies (1)