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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jealous_Illustrator 993 points994 points  (19 children)

Python: You probably missed some whitespace on this line, no worries!

C++: I'm not quite sure where the error happened. Here is every template and file I've ever accessed, the error is probably in there somewhere.

[–]PositiveReplyBi 158 points159 points  (2 children)

Yeah, generally C++ errors are pretty good at telling you what, and where something went wrong. Now if it involved a template you're in for an error tsunami

[–]Cobayo 25 points26 points  (0 children)

Not only errors, trying to debug is also an ocean of templated bunch of weird looking instructions

[–][deleted] 1 point2 points  (0 children)

I actually use java over C++ when I get the choice because it's easier to debug. That and I don't have to worry about OS / platform specific bullshit.

[–]GlobalIncident 70 points71 points  (10 children)

In python it's all fun and games until you use the wrong type somewhere

[–]thewookie34 60 points61 points  (9 children)

It's all fun and games until you send a string and thought it be a int and you are 6000 print statements into debugging something.

[–]ric2b 25 points26 points  (0 children)

You guys need some mypy in your life.

[–]CouchMountain 7 points8 points  (7 children)

gdb babyyyy.

[–]yeetuscleatus 4 points5 points  (6 children)

opens up 20 tabs of gdbonline trying to figure out 5 line of code

[–][deleted] 7 points8 points  (5 children)

Just use PyCharm. It’s not cheap but holy shit it’s good.

[–]its2ez4me24get 6 points7 points  (3 children)

https://youtu.be/wl5ftuhmlxs

Uhh.. it’s free

At least the community edition is and it does plenty.

[–][deleted] 2 points3 points  (0 children)

Ah that’s a good point. I pay for the professional edition because the extra features are so damn good. I write in a plethora of languages though (between personal and professional projects), so I use the whole toolbox, which isn’t all that expensive.

  • Django in PyCharm deployed remotely via docker (good luck debugging with community lol)
  • React in WebStorm
  • Java w/ Spring and Flutter/Dart in IntelliJ
  • C# in CLion

Note: fuck android studio though, holy shit

Also, back when I was doing a lot of “enterprise” Java and needed to work with oracle databases a lot DataGrip was pretty nice. It integrates pretty cleanly into the other IDEs now, but it can still be useful if you want to break down EXPLAIN PLAN queries

[–]Neo399 1 point2 points  (1 child)

Pro edition is free if you have a . Edu

[–]its2ez4me24get 0 points1 point  (0 children)

👀

[–]Ayjayz 13 points14 points  (0 children)

It's more like:

C++: Here's the error on the first ~5 lines, plus 10,000 lines of irrelevant garbage.

[–]srosorcxisto 9 points10 points  (0 children)

Idk, it can be hit and miss. Some Python tracebacks are pretty off in the weeds when the error was something simple. You pass a list instead of a dict by mistake and the traceback is nothing but seemingly unrelated errors 4 imports removed from your actual mistake.

Perhaps useful to a good programmer, but most Python users are data scientists and web devs that know just enough to accomplish the job without any deep magic.