4 ms·
They don't make 'em like Sublime Text anymore
- 0x073 2mo agoLast time I used Sublime text with package control, the plugins created always after updates a new tab with changelog and some with textads. Pure sublime text is better, but still just a better notepad and no ide.
- spottedmarley 2mo agoI've never stopped using Sublime Text. There's no reason. It does everything and also nothing (in all the right ways). Welcome back
- monster_truck 2mo agoIt's still all I use. You know it's good because you can use it to crack itself
- deleted 2mo ago[deleted]
- aappleby 2mo agoSo what do you use for debugging?
- yurishimo 2mo agoPrintf works just fine in a lot of languages and domains. Not everyone likes to use a step debugger.
- not_kurt_godel 2mo agoI would estimate print debugging is usually twice the work for 30% of the effectiveness of step debugging. It's the screwdriver to step debugging's drill. Fundamental and absolutely necessary sometimes but not the first tool you should be reaching for unless there's a specific reason.
- tonyedgecombe 2mo agoIt feels like the option for people who are too lazy to learn their tools to me.
- tstrimple 2mo agoThe specific reason I reach for print debugging first is it works literally everywhere across all technology stacks. I regularly work with different projects written in different languages. Printing works across all of them and the logs are easy to aggregate across different parts of the stack (microservices or other service composition patterns) giving you a broader range of data than you typically get from a step debugger. I've personally found that step debuggers are more likely to create Heisenbugs. Especially in multi-threaded applications or dealing with race conditions.
- not_kurt_godel 2mo agoStep debuggers don't "create Heisenbugs", you're just much more likely to notice race conditions while step debugging than print debugging. If anything, print debugging creates more bugs because you're altering the code you're trying to test by definition.
- tstrimple 2mo agoStep debuggers can 100% cause or hide race conditions that are exposed via other mechanisms. Especially in multi-threaded apps as I stated. If you've never encountered it, I'd suggest you've never debugged really nasty race conditions or serious bugs.
- not_kurt_godel 1mo agoI have encountered the behavior you are describing too many times to count and then some. Of course step debuggers are going to expose and hide race conditions. In fact, exposing them is often the explicit purpose of using a step debugger in the first place. If you don't have a mental model of your code that includes conceptually separating the actual system behavior from the artificial debugging conditions, then you are correct, a step debugger is not going to be much use to you. Print debugging will help you limp along by virtue of letting you stab a little more accurately in the dark, but ultimately it's usually just punting the actual bug down the line until someone who understands the code more deeply is forced to fix it properly.
- not_kurt_godel 2mo agoVS Code is not fit for professional software development. JetBrains products are far and away superior. Sublime Text is nice as a notepad, extended clipboard, and quick file editor.
- pkphilip 2mo agoI have been through this myself - and after trying out a lot of stuff, I finally settled for Ecode. Very lightweight and extremely fast. Not perfect but not laggy and memory hungry like a lot of editors these days. NOTE: I am not associated with this project or its founders in anyway. https://github.com/SpartanJ/ecode https://github.com/SpartanJ/ecode
- _mjk 2mo agoCheck out sublime merge, too. All the goodies from sublime text for a git frontend!