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…
> This is a false sense of security. “Compiling” without errors just tells me I did not do something dumb like assign a string to an int. Is this really the main issue devs have? From what I have seen no… Devs usually…
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'm pretty skeptical about lock in. If I couldn't use tailwind tomorrow, I think I could rewrite the few dozen minimal utility classes I need in a matter of hours. IMO the implementation is a convenience.
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…
They're both libraries for building user interfaces. They're related because they both solve the same problems. They also share a lot of core ideas (one way data flow, reusable components, declarative UIs, etc). I'm…
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.
Making await implicit would make it difficult to manage parallel promises. You would either have to make an exception for Promise.all or add new syntax. It's also not unheard of to have hanging promises (fire and…
Top level await does more than remove a main function. If you import modules that use top level await, they will be resolved before the imports finish. To me this is most important in node where it's not uncommon to do…
The other day I was stopped on the sidewalk by someone who told me they worked for a large environmental non profit that helps save endangered species. He asked if I would subscribe to help. I offered to make a donation…
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,…
Sitting for too long is the problem not devices. I agree a timer would probably work just as well, but the number of devices has nothing to do with fixing the problem of sitting too much (especially a device intended to…
What's not to understand? Op uses a Fitbit to keep track of how much time they spend sitting to help avoid injury. Not sure how devices or privacy have anything to do with the problem.
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…
Seems like the key is "performance critical regions of code". Yeah optimize code that is performance critical. Don't optimize the other 99%.
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…
That's why I said "majority". Obviously you should optimize code that is run frequently. I could be wrong, but last time I checked most applications don't involve even "simple machine learning" and when they do it's in…
> 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…
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…
> This is a false sense of security. “Compiling” without errors just tells me I did not do something dumb like assign a string to an int. Is this really the main issue devs have? From what I have seen no… Devs usually…
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'm pretty skeptical about lock in. If I couldn't use tailwind tomorrow, I think I could rewrite the few dozen minimal utility classes I need in a matter of hours. IMO the implementation is a convenience.
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…
They're both libraries for building user interfaces. They're related because they both solve the same problems. They also share a lot of core ideas (one way data flow, reusable components, declarative UIs, etc). I'm…
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.
Making await implicit would make it difficult to manage parallel promises. You would either have to make an exception for Promise.all or add new syntax. It's also not unheard of to have hanging promises (fire and…
Top level await does more than remove a main function. If you import modules that use top level await, they will be resolved before the imports finish. To me this is most important in node where it's not uncommon to do…
The other day I was stopped on the sidewalk by someone who told me they worked for a large environmental non profit that helps save endangered species. He asked if I would subscribe to help. I offered to make a donation…
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,…
Sitting for too long is the problem not devices. I agree a timer would probably work just as well, but the number of devices has nothing to do with fixing the problem of sitting too much (especially a device intended to…
What's not to understand? Op uses a Fitbit to keep track of how much time they spend sitting to help avoid injury. Not sure how devices or privacy have anything to do with the problem.
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…
Seems like the key is "performance critical regions of code". Yeah optimize code that is performance critical. Don't optimize the other 99%.
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…
That's why I said "majority". Obviously you should optimize code that is run frequently. I could be wrong, but last time I checked most applications don't involve even "simple machine learning" and when they do it's in…
> 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…