News for hackers. Stuff that matters.
Re:Combining Golang and PHP can solve real-world development... by smt88 on Monday December 10, 2018 @04:59PM (#18651510)
Most people aren't working on distributed systems though, so debuggers work fine for them
Re:Combining Golang and PHP can solve real-world development... by merb on Monday December 10, 2018 @05:36PM (#18651719)
well it's hard to find a race condition with a debugger. sometimes it would just work with the debugger since you slow down the program or maybe halt on the wrong places.
Re:Combining Golang and PHP can solve real-world development... by singlow on Tuesday December 11, 2018 @10:44AM (#18656033)
The point is that the debugger is an essential tool for debugging because in most cases it will do what you want and is faster. Most coding errors are not race conditions. I don't know why everyone must pipe in with the edge cases where a debugger might not work. In 99% of scenarios where you want to test some code in a development environment, setting breakpoint is the quickest way to see what is wrong. Log output is useful too, and you will probably use both. But, if you are a developer and don't have the ability to step through your code in a debugger, many problems will take much longer to fix.
Re:Combining Golang and PHP can solve real-world development... by teh_klev on Tuesday December 11, 2018 @05:38AM (#18654395)
Sure, but I'd argue that most developers aren't working with code day in and day out where race conditions are a concern.
Re:Combining Golang and PHP can solve real-world development... by merb on Tuesday December 11, 2018 @08:46AM (#18655241)
well it depends, I mostly try to create my code so that things can run in parallel.

I also barley use a debugger, even for code that does not run in parallel, mostly because I'm used to make logging calls at the right places so that I can find issues way faster than with a debugger (most often I'm only run into hard issues or issues where a debugger will fail, i.e. build scripts -_-)