▲ | zarzavat 5 days ago | ||||||||||||||||
Even print debugging is easier in a good debugger. Print debugging in frontend JS/TS is literally just writing the statement "debugger;" and saving the file. JS, unlike supposedly better designed languages, is designed to support hot reloading so often times just saving the file will launch me into the debugger at the line of code in question. I used to write C++, and setting up print statements, while easier than using LLDB, is still harder than that. I still use print debugging, but only when the debugger fails me. It's still easier to write a series of console.log()s than to set up logging breakpoints. If only there was an equivalent to "debugger;" that supported log and continue. | |||||||||||||||||
▲ | b_e_n_t_o_n 5 days ago | parent [-] | ||||||||||||||||
> JS (...) is designed to support hot reloading no it's not lol. hmr is an outrageous hack of the language. however, the fact JS can accommodate such shenanigans is really what you mean. sorry I don't mean to be a pedantic ass. i just think it's fascinating how languages that are "poorly" designed can end up being so damn useful in the future. i think that says something about design. | |||||||||||||||||
|