I use TS every day on multiple projects. 1 is almost a non issue. Most libraries have decent types and TS has features for adding types yourself in your project. 2 - I've never had to disable strict mode to get a…
What do you do with that snippet when you realize some elements arbitrarily need more or less spacing than others because the designer decided it looks better? Repeating yourself isn't the end of the world, and on…
I usually use github gists for this. Though I'm probably in the minority preferring markdown over wysiwyg.
Runtime type checking is necessary to ensure data received from untrustworthy sources matches compiletime types.
Not op, but I've written several apps with a similar setup to what was described. Both email verification and password resets are pretty simple to implement yourself. For password reset, you just create a record with a…
I'm not sure how they're handled internally, but async functions are no longer generators. For a while after generators and before async/await, generators were used as a polyfill.
My biggest problem with this claim is typescript doesn't include any support for runtime type checking. My experience with TS has been great until I need to deal with data that comes from an external system (API,…
Why is this such a common thing? Just about every bank I've used has had one of these issues on their website: - Password can't be long - Password can't be pasted - Password must contain symbols - Password can't contain…
It bugs me too. When found that link to post, the first thing I thought was "I'm gonna get a comment about this shitty forced signup". It's a good guide though. In a few hours I went from knowing very little about next…
Both of these seem like cases where you would know you're in a hot loop. I wasn't really clear in my comment that of course you should optimize loops that you know get run millions of times. I was saying: pick your…
> emulation and scripting language byte code engines You get that these are outliers right? The majority of software doesn't need to concern itself with these problems. They're examples of software that deals with…
It's also trivial to come up with countless "80s-level" examples that never iterate more than 100 times. Iterating over a megapixel image isn't a common scenario unless you're processing a lot of large images. Obviously…
I was replying to a comment about the performance implications. If you decide on one method over another for performance reasons, I think it's an optimization. > But is not more readable or even more maintainable. Both…
For sure. That's what I meant by "it's not in the budget". I would probably choose to rewrite most projects I work on, but I know it's completely unreasonable for most non-trivial projects. I just meant I naturally…
> Adapting mature software to new circumstances tends to take more time and effort than writing new software from scratch. Software people don’t like to admit this, but the evidence is clear. Software people love…
> another commenter ...commented that performance doesn't matter - they are wrong, a switch can be nested in a hot loop ran millions of times and they do matter I'm curious how often you find yourself dealing with loops…
The nextjs website has a tutorial that I found very helpful: https://nextjs.org/learn/
I don't really understand how headlines like this are helpful. Is there an ideal number of dependencies? How do we decide that 1568 is too high? Is it better or worse than 156 dependencies that each have 10x the LOC?…
I'm probably in the minority, but I just expect web sessions to persist regardless of what checkboxes I check. If I have to login to anything on a computer that isn't mine, I just open a private session (usually…
I've been playing around with a similar idea using nextjs. My idea was to create some kind of RPC interface with typescript that works seamlessly between server/client rendering, so during server rendering, RPC calls…
The few times I've seen this (Google and Amazon I think), my password manager (Lastpass) has had no problem, but I've run into several sites where simple two input and a button login forms don't autofill correctly.…
I hope React Native matures into a powerful and ubiquitous tool. I love React, but my experiences with React Native have been incredibly frustrating. If a client wants a multi-platform app, I can get a smoother more…
I wonder what this says about Gab's reaction. Why would they give Little the option to delete his posts instead of banning him and removing the posts themselves? If I was in their position, it wouldn't even be a…
I've been happily using Objection.js (https://vincit.github.io/objection.js/) for my last couple projects.
> The fascination with 1 codebase doing multiple things is funny. Isn't it baked into most programmer's best-practices? Don't repeat yourself? Writing two programs that do the same thing doesn't sound very DRY.
I use TS every day on multiple projects. 1 is almost a non issue. Most libraries have decent types and TS has features for adding types yourself in your project. 2 - I've never had to disable strict mode to get a…
What do you do with that snippet when you realize some elements arbitrarily need more or less spacing than others because the designer decided it looks better? Repeating yourself isn't the end of the world, and on…
I usually use github gists for this. Though I'm probably in the minority preferring markdown over wysiwyg.
Runtime type checking is necessary to ensure data received from untrustworthy sources matches compiletime types.
Not op, but I've written several apps with a similar setup to what was described. Both email verification and password resets are pretty simple to implement yourself. For password reset, you just create a record with a…
I'm not sure how they're handled internally, but async functions are no longer generators. For a while after generators and before async/await, generators were used as a polyfill.
My biggest problem with this claim is typescript doesn't include any support for runtime type checking. My experience with TS has been great until I need to deal with data that comes from an external system (API,…
Why is this such a common thing? Just about every bank I've used has had one of these issues on their website: - Password can't be long - Password can't be pasted - Password must contain symbols - Password can't contain…
It bugs me too. When found that link to post, the first thing I thought was "I'm gonna get a comment about this shitty forced signup". It's a good guide though. In a few hours I went from knowing very little about next…
Both of these seem like cases where you would know you're in a hot loop. I wasn't really clear in my comment that of course you should optimize loops that you know get run millions of times. I was saying: pick your…
> emulation and scripting language byte code engines You get that these are outliers right? The majority of software doesn't need to concern itself with these problems. They're examples of software that deals with…
It's also trivial to come up with countless "80s-level" examples that never iterate more than 100 times. Iterating over a megapixel image isn't a common scenario unless you're processing a lot of large images. Obviously…
I was replying to a comment about the performance implications. If you decide on one method over another for performance reasons, I think it's an optimization. > But is not more readable or even more maintainable. Both…
For sure. That's what I meant by "it's not in the budget". I would probably choose to rewrite most projects I work on, but I know it's completely unreasonable for most non-trivial projects. I just meant I naturally…
> Adapting mature software to new circumstances tends to take more time and effort than writing new software from scratch. Software people don’t like to admit this, but the evidence is clear. Software people love…
> another commenter ...commented that performance doesn't matter - they are wrong, a switch can be nested in a hot loop ran millions of times and they do matter I'm curious how often you find yourself dealing with loops…
The nextjs website has a tutorial that I found very helpful: https://nextjs.org/learn/
I don't really understand how headlines like this are helpful. Is there an ideal number of dependencies? How do we decide that 1568 is too high? Is it better or worse than 156 dependencies that each have 10x the LOC?…
I'm probably in the minority, but I just expect web sessions to persist regardless of what checkboxes I check. If I have to login to anything on a computer that isn't mine, I just open a private session (usually…
I've been playing around with a similar idea using nextjs. My idea was to create some kind of RPC interface with typescript that works seamlessly between server/client rendering, so during server rendering, RPC calls…
The few times I've seen this (Google and Amazon I think), my password manager (Lastpass) has had no problem, but I've run into several sites where simple two input and a button login forms don't autofill correctly.…
I hope React Native matures into a powerful and ubiquitous tool. I love React, but my experiences with React Native have been incredibly frustrating. If a client wants a multi-platform app, I can get a smoother more…
I wonder what this says about Gab's reaction. Why would they give Little the option to delete his posts instead of banning him and removing the posts themselves? If I was in their position, it wouldn't even be a…
I've been happily using Objection.js (https://vincit.github.io/objection.js/) for my last couple projects.
> The fascination with 1 codebase doing multiple things is funny. Isn't it baked into most programmer's best-practices? Don't repeat yourself? Writing two programs that do the same thing doesn't sound very DRY.