« first day (4953 days earlier)   

12:06 AM
silly question: Is it possible to debug client side js in vscode?
 
 
2 hours later…
2:15 AM
well there's this visual studio code debugging code.visualstudio.com/docs/editor/debugging
not tried it myself personally, i avoid visual studio code, until they sort out the tab key it just annoys the hell out of me haha, i think all these extensions, colors fonts, intelli sense and they havent even got the basics right haha
with regard to the clear, maybe others will know better but i'd say not really
aside from the obvious
clear && single_statement;
or refactoring to
(()=>{
  if(clear)return;
  //some code
})();
 
@matt Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
personally i would stick to the if
if its too ugly for you just write it quick then never look at it again haha you'll soon forget about it
@ardacarofficial, can you talk us through your links-website, a lot of stars and forks there
 
 
2 hours later…
3:58 AM
I used to write conditionals using "&&" and "?:" operators. Then I realized it's ugly, more error prone, and useless in general. After that realization, I never used "&&" or "||" ever again 😂
The point of using it back then was because I was too lazy to write an if statement. I also wanted to save space in the file but it didn't make much of an impact on storage.
 
 
2 hours later…
5:31 AM
@1.21gigawatts Yes, but I've never tried it. It should work, though. I just prefer the browser debugging tools.
@matt Yes.
 

« first day (4953 days earlier)