News for hackers. Stuff that matters.

typescriptfan1

Re:Monolith First (2015) on Friday February 19, 2021 @01:18PM (#26196088)
Lack of engineering talent + accessibility of the cloud + buzz words got us here. Looking forward to the end of this cycle.

This is somewhat reminiscent of the abuse of higher level languages and the mindset computers are so powerful there's no need to think too hard. However, the consequences are no longer limited to a slow and buggy program but many slow and buggy programs and a large AWS bill too!

Re:Chinese 5G Not Living Up to Its Hype on Friday October 23, 2020 @11:18AM (#24870373)
It's funny to hear people, typically those with some stock involved, talk about how revolutionary 5G will be. Poor range and interference almost negate the benefits of increased speed. I can't think of any app, etc. that is is currently inhibited due to the lack of 5G. Can anyone name something that 5G actually makes possible (other than giving companies like AT&T an opportunity for a marketing gimmick)?
Re:What's New in C# 9.0 on Thursday September 10, 2020 @04:05PM (#24436012)
Not sure pattern matching will age well. It seems to promote anti-OO design, may cause the switch statement to devolve into if/else, and creates another way to do the same thing.
Date is actually pretty good.

* If you're reading UTC dates from the backend and displaying them in local time, new Date(year + 1900, month, day, hour, minute, second) works great.

* It's also easy to calculate repeating intervals in local time by using that constructor with getYear(), getMonth(), etc.

* Send it back to the server with .toISOString(). Add a .replace('Z', '') on that so .NET binds a DateTime with the right Kind.

Re:Ask HN: STEM toy for a 3 years old? on Tuesday March 03, 2020 @04:36PM (#22478931)
Rokenbok
Re:Subtle expectations for everyday things on Monday March 02, 2020 @12:04PM (#22466251)
I was looking for an apartment this weekend in NJ and found myself in an unfamiliar building with destination dispatch elevators. What would you personally press to exit?
Re:Alabama blocked a man from voting because he owed $4 on Thursday February 27, 2020 @04:10PM (#22437923)
Even babies? (To illustrate the extreme end of the spectrum.)
Re:Windows 10 live tiles reportedly getting killed by Microsoft on Tuesday February 25, 2020 @02:03PM (#22416118)
I'll go on... the 95/XP UI was meticulously crafted. It solved some real usability problems by drawing on metaphors to aid discovery. It was close to a language. I think what happened was eventually the designer types got their hands in there and started making changes here and there to make specific things look good. Now we're here.
Re:Windows 10 live tiles reportedly getting killed by Microsoft on Tuesday February 25, 2020 @01:56PM (#22416027)
Bring back the classic start menu and UI and call it a day. The Windows UI is so inconsistent, tedious and un-metaphorical today.
My olde PHP sites are still running just fine.
I love the cool images they seem to always put together when they do this.
Re:Problems with TypeScript on Wednesday January 15, 2020 @04:15PM (#22058677)
It's interesting that someone who is primarily using JavaScript in the backend is criticizing TypeScript's type system. There is a simple reason why TypeScript's type system is how it is... TypeScript is additive which works well in practice.