« first day (4996 days earlier)      last day (174 days later) » 

01:41
--- windoze strikes again ---
work deleted becuase of update in the middle of night
02:32
"you shouldn't use windows" - Parking Master 2023
 
4 hours later…
06:04
what is the difference between tab and space when we writing which one we prefer in js
@PratikPrakashBindage Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@PratikPrakashBindage Tabs are wider and take up more visual space. You can adjust how wide a tab is. This is measured in spaces (as in space characters). Typically the size is set to 4 spaces but other common values are 8 spaces or 2 spaces, occasionally 6 spaces. All editors should allow to define how wide a tab character is with a custom value.
Spaces are just normal space characters. Their width doesn't vary (except by the font but it's still same size within the same font).
@VLAZ thanks for reply
https://medium.com/mintbean-io/tabs-or-spaces-for-practical-javascript-developers-the-answer-is-clear-f66c0458aa1e

this answer gives us more clearity
06:14
Ugh, the article is wrong.
Anybody who tells you its perfectly clear which to use between tabs and spaces is either wrong or trying to sell you something.
In fact, I'd argue that the article got the relationship completely the wrong way. It says that inexperienced developers use tabs, experienced developers just use the defaults in ESLint. IMO, an experienced developer would not use the defaults but know they can be changed and would have opinions on what to change them to.
From observation, it's inexperienced developers who have no clue how to deal with ESLint.
2
Also, from observation - inexperienced developers write the most Medium articles. Especially ones arguing "simple" solution to some long debated topic exists.
2
clearly understood and completely agree with ur points @v
 
6 hours later…
12:20
I have never used tabs for writing code in my entire life.
That's not a joke. That's just how much I hate tab indents :D
12:35
-ParkingMaster why not? i use spaces, 2 o'em i had a wonderful reason for doing so, but cant for the life of me remember what is was now haha
 
1 hour later…
13:50
a baby monster, try to break me please
                                                                                console.clear();
        var tabs   = [

              {name:'main',txt:`
                    console.log('main')
                    // [tab:more]
                    // [tab:test]
                    // [tab:extra]
              `},
              {name:'test',txt:`
                    console.log('test');
                    // [tab:more]
                    // [tab:extra]
              `},
              {name:'more',txt:`
well when i say break, i mean within the limits of the program
That's some awful looking code
oh right, why?
Inconsistent and unreadable among other things
yeah ok, why?
i dont think its that bad haha, i tidied it up haha
i am half asleep though
i dont think its unreadable
inconsistent?
Variable re-use, two letter function names, a fair few parts can be replaced with already established JS methods
Mixing global variables
Your rd function could be dumbed down to something like
function rd(name) {
      return txt.find(t => t.name === name).txt;
}
Like I understand what you're going for
14:05
i am quite lazy with my vars i suppose lol
i cant even be bothered to type out const haha
its not so much i cant be bothered, i think its an ugly keyword for a start
It's also functionally very different from var
the read function is actually part of a bigger find function, i stripped it for this example
it looks a bit more like this in the main code
ear muffs at the ready haha
        list.view.find=function(view,v,rtype){

              var n   = view.tabs.length;
              for(var i=0;i<n;i++){

                    var tab   = view.tabs[i];
                    var f     = false;
                    if(v===tab.node)f   = true;
                    if(v===tab.name)f   = true;
                    if(f){
                          switch(rtype){
                            case 'index'    : return i;
                          }//switch
                          return tab;
Fair, but we have so many utility methods that don't need re-inventing 😛
14:11
little bug there
i dont know whether to allow tabs to be inserted like this example, or simply restrict it to appending one after the other
so its like a multi tabbed text editor, where a file can be split into multiple tabs, then to rebuild the original js, i can either allow tabs to be inserted near anywhere in the code, or simply build a single js file by appending tabs one after the other, that probably doesnt make sense lol
i did start at 2:30 in the am this morning
Haha I think I get you, so you can break out a bit of text into a new tab, but it will hold its place in the original document?
yes, you have to include the marker [tab:<name>] and it'll insert the text wherever it comes across that marker, if no marker exists for a tab it just appends it to the main file
well i should say the marker is actually // [tab:<name>]
so
        var tabs   = [

              {
                    name:'main',
                    txt:`
                          test();
                          more();
                    `
              },
              {
                    name:'test',
                    txt:`

                          function test(){

                                for(var i=0;i<5;i++)
                                      console.log('test',i);

                          }//test

                    `
              },
would become
                          test();
                          more();


                          function test(){

                                for(var i=0;i<5;i++)
                                      console.log('test',i);

                          }//test



                          function more(){

                                console.log('more');

                          }


/* node-js-tabs
{"names":["main","test","more"],"info":[["main","test",89,314,"append"],["main","more",403,247,"append"]]}
ok enough already lol
14:37
posted on June 20, 2024 by Ben Mason

Hi everyone! We've just released Chrome Beta 127 (127.0.6533.15) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Erhu Akpobaro Google Chrome

 
1 hour later…
15:55
posted on June 20, 2024 by Ben Mason

Hi everyone! We've just released Chrome Beta 127 (127.0.6533.16) for iOS; it'll become available on App Store in the next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Erhu Akpobaro Google Chrome

 
6 hours later…
22:10
i thought about it and i think tabs are the proper way to go
think about it, they both have purposes. a space is character or glyph for making a space between words. a tab is a character or glyph for indentation. when writing code the author is choosing to indent. that is what a tab exact purpose - to indent. there used to be tab stop in old word processors
you could mark the amount of indentation using a tab stop
HAMMERTIME!
that you can't easily change the tab indentation in code editors or other code viewers is a presentation problem. the argument for the use of spaces is that space size is consistent but that's only true if you have fixed width fonts in the presentation
anyway, don't fight me about it. it seems less an issue today than in the past
posted on June 20, 2024 by Ben Mason

The Beta channel has been updated to 127.0.6533.17 for Windows, Mac and Linux. A partial list of changes is available in the Git log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Daniel Yip Google Chrome

22:36
why come google chrome releases are so often and why are they posted here?
23:06
I think github should have a "Publish this repo to npm" option.
then when you make a commit to github (or maybe update a version tag) it publishes on npm
Is there a way to put the compile time into the javascript document that is compiled from typescript?

« first day (4996 days earlier)      last day (174 days later) »