« first day (5134 days earlier)      last day (33 days later) » 

01:39
The only use case I've ever needed to do that is with formatting time. I usually just use number < 10 ? "0" + number.toString() : number.toString()
Didn't know there was a built-in function to do this though
 
5 hours later…
06:39
@1.21gigawatts Numbers are numbers, they don't have a format. If you need a number that looks any different than the default, you want to format it as string.
 
4 hours later…
10:57
AGAIN!
I'm having to setup this once more in our project. Because somebody removed it. And it's a right PIA to do. I can get the test to work...if it doesn't actually test anything. If I import anything in the test file it stops working. It can't resolve the TS paths. And if I add the tsconfig-paths module then it starts claiming it can't use that.
 
2 hours later…
12:36
It's great, I tell you what. I tried to follow the steps exactly as described by ts-mocha. Doesn't work. I download the repo where they have a sample implementation. I run the tests (that showcase how ts-mocha Just Does Itâ„¢) and they fail for some different reason now.
OK, I think it actually fails because I run it under Windows...and it'd be a pain to run it via WSL on this machine (weird proxy setup here).
...yep, when you un-Linux-ify the comment it runs. *sigh* now let's find out why it doesn't in my project.
13:23
It works! Now I have to figure out which of the many changes I did causes it to work.
 
6 hours later…
19:03
posted on November 05, 2024 by Ben Mason

The Dev channel has been updated to 132.0.6811.2 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. Srinivas Sista Google Chrome

posted on November 05, 2024 by Daniel Yip

The Stable channel has been updated to 130.0.6723.116/.117 for Windows, Mac and 130.0.6723.116 for Linux which will roll out over the coming days/weeks. A full list of changes in this build is available in the Log. The Extended Stable channel has been updated to 130.0.6723.117 for Windows and Mac which will roll out over the coming days/weeks.  Security Fixes and Rewards Note: Access to

19:24
@VLAZ yes but occasionally and especially on the web those numbers do need to be displayed and that is where they become strings
@VLAZ what is ts-mocha and why is it so great
@1.21gigawatts Yes. But there is no middle step there. You either have a number, and no specific format, or you have a string with format.
@1.21gigawatts mocha is a testing library for JS but doesn't natively support TS. There are a lot of config and plugins you have to do to enable mocha to run .ts files. This is where ts-mocha comes in and handles all of this integration for you.
But the "great" part was sarcasm. It didn't work at first. And most the setup I saw online was weirdly for differently shaped projects. With no indication what exactly needs to be amended to enable a particular change.
I mean, if you start a project from scratch you can set up the tests easily. Not as easy with an existing project where you have to coordinate all the other stuff already there.
20:04
I feel that way about tsconfig.json settings
I just saw yesterday that none of my tsconfig changes were applied after changes. I restarted the tsserver and all of a sudden they were applied. about a few days of testing config options were probably meaningless bc not knowing if restarting the tsserver was needed or not (some changes would make a difference, others didn't)
20:39
What do you think of adding types to JS?
If I'm reading code typed makes a lot more sense to me than this
class test {
   handleRes(req, res) {}
}
class test {
   handleResponse(request: Request, response: Response) {}
}
Supposedly the TS guys are working with TC39 to introduce types to JS.
good news
It can work. It's not too far off Python. It didn't have explicit types. But later it did. Very similar syntax to TS, too: def fn(a: int, b: float, c: str) -> bool
(the -> marks the return type)
You can add or omit the type. Both work.
JS can introduce a directive to enforce the typings at runtime. Similar to "use strict";. It'd be a good step forward for the language.
that would be nice
21:27
posted on November 05, 2024 by Erhu Akpobaro

  Hi, everyone! We've just released Chrome 130 (130.0.6723.102) for Android to a small percentage of users. It'll become available on Google Play over the next few days. You can find more details about early Stable releases here. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue,


« first day (5134 days earlier)      last day (33 days later) »