« first day (4953 days earlier)      last day (11 days later) » 

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.
 
 
7 hours later…
12:22 PM
can anyone explain this lol
in Sandbox, Jul 10, 2019 at 14:17, by Captain Obvious
For future sandbox visitors: Post the following in a message for a good time:
<\s*a[^>]*>(.*?)<\s*/\s*a>
i love how sketchy it is haha human beings really have a taste for the morbid
coupla good services
download-directory • github • io download-directory.github.io not sure who the author is at the mo
 
12:45 PM
Mac mini, macOS are trademarks of Apple Inc., registered in the U.S. and other countries and regions. IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used by Apple under license
iOS (formerly iPhone OS) is a mobile operating system developed by Apple Inc. exclusively for its smartphones. It was unveiled in January 2007 for the first-generation iPhone, launched in June 2007. It is the operating system that powers many of the company's mobile devices, including the iPhone. It was also used on iPads (introduced: January 2010; availability: April 2010) until iPadOS was introduced in 2019, and on the iPod Touch devices, which were discontinued in mid-2022. It is the world's second-most widely installed mobile operating system, after Android. It is the basis for three other...
MacDailyNews : Analyst estimates Apple paid Cisco between $25-50 million for ‘iPhone’ name macdailynews.com/2007/02/23/…
 
1:05 PM
hmm
Mar 3 at 22:44, by matt richards
when you post a link to the nodejs documentation it always seems to go to the wrong place within the document
Mar 3 at 20:20, by matt richards
filehandle.read(buffer,[options]) https://nodejs.org/api/fs.html#filehandlereadbuffer-options
so now i can post my nodejs links correctly haha albeit for some browsers
filehandle.read(buffer,[options]) nodejs.org/api/…
 
 
2 hours later…
3:11 PM
no its doing it again, its very annoying
 
 
1 hour later…
4:14 PM
the ai copilots are quite good for producing regex's, im terrible at them
also regex's should really be used for finding text in strings not for parsing user input etc, imo
 
 
2 hours later…
5:53 PM
@ParkingMaster indeed. they are error prone and harder to debug
...in the same way, the single if statement seems unnecessary
i propose that this works:
conditionOrIsBoolean{
    // do thing
}
because we have arrow functions now with the same formatting. if the arrow function works then the condition block should work
()=> { }
() {}
 
6:08 PM
Are external components possible yet?
for example, I have an html element that I use as a item renderer in a list. I have a hidden instance of it on the html page. when I want to make a list, I get that element and clone it and update the details and then add it to the list. the html element is in the page html. is it possible to make that external?
for example:
<div class="myitemrenderer"><img class="icon"><label class="label">Item 1</label></div>
 
 
1 hour later…
7:31 PM
how you mean external exactly, you could use a template, you could fetch the string, you could embed the string in js, you could set display:none on the element, any one of a number of different other ways, what you cant do ( yet ) is include one html file inside another like you would be able to do with js
the condition { ... is a syntax error
 
 
4 hours later…
11:15 PM
Installing npm packages and running bin scripts exploringjs.com/nodejs-shell-scripting/…
npm: How To Install A Specific Version of Node.js Package mend.io/free-developer-tools/blog/…
 

« first day (4953 days earlier)      last day (11 days later) »