News for hackers. Stuff that matters.

0xb0565e487

Re:Ask HN: Do you use diagrams while developing software? on Thursday August 17, 2023 @09:05PM (#37170348)
Very rough pen and paper draft very rarely. Never for other people.

(solopreneur and someone that works in a 4 people startup)

Re:Just how hot was July? Hotter than anything on record on Tuesday August 15, 2023 @07:36AM (#37132661)
Why does that make your life barely enjoyable? Curious to know what kind of lifestyle or living you have that the weather would have such a big impact on you.
Re:TypeScript please give us types on Saturday July 08, 2023 @09:45AM (#36644337)
Awesome, thanks for the pointers!
Re:TypeScript please give us types on Friday July 07, 2023 @07:22PM (#36639571)
Thanks :)
Re:TypeScript please give us types on Friday July 07, 2023 @07:10PM (#36639467)
Interesting, thanks!
Re:TypeScript please give us types on Friday July 07, 2023 @06:34PM (#36639146)
I'm relatively new to programming and had a question about TypeScript's functionality. Is there any specific reason why TypeScript doesn't allow for the creation of custom and intricate data types? For example, I'm unable to define a number type within a specific range, or a string that adheres to a certain pattern (like a postal code).

I'm imagining a language where I could define a custom data type with a regular function. For instance, I could have a method that the compiler would use to verify the validity of what I input, as shown below:

function PercentType(value: number) { if (value > 100 || value < 0) throw new Error();

    return true;
}

Is the lack of such a feature in TypeScript (or any language) a deliberate design decision to avoid unnecessary complexity, or due to technical constraints such as performance considerations?

Re:Switching from QWERTY to Colemak and Back on Friday May 19, 2023 @04:29PM (#36006503)
I switched from QWERTY to Colemak about 5-10 years ago for a solid year or so.

My WPM decreased by around 25% and I actually found Colemak to be rather uncomfortable; with QWERTY (and DVORAK) you tend to alternate stroke between hands. Even if there is more finger travel, it just feels right to me.

Also, having a different layout than the peers around you is an absolute pain.

My conclusion is that having an alternative layout is not worth the marginal improvements if any it may offer. If I was forced to try another layout though, I would try DVORAK.

Re:Superhuman: What can AI do in 30 minutes? on Sunday March 26, 2023 @08:03AM (#35313568)
I’m not worried. There’s much more to the job than pedantic code reorganizing. As a matter of fact, it seems to be good at what I’d like not to do as a frontend dev.
Beware of assumptions. You arrived at a funny conclusion here.

Did the author express that his intent was to capture browser marketshare? If not, he may not be delusional :)

Re:Maybe people do care about performance and reliability on Tuesday February 14, 2023 @12:17PM (#34792578)
As a "one of these day devs" I only care about performance when it starts becoming a problem and I see nothing wrong with the way I'm going about this.
Re:The Problem with Dependency Injection Frameworks on Sunday January 08, 2023 @04:23PM (#34303287)
function something(deps, params, ctx) { // put something here }
Re:The State of HTTP in 2022 on Saturday December 31, 2022 @10:47PM (#34203389)
Just send a POST request lol
Re:Meta is now the worst performer in the S&P 500 this year on Friday November 04, 2022 @10:06AM (#33466904)
And why couldn't a giant company decide to own "a more fragmented landscape of specialized services"?
Re:GlueSQL: A SQL database engine written as a library in Rust on Saturday October 22, 2022 @09:26PM (#33303701)
What's the selling point here?
Re:The self-taught UI/UX designer roadmap (2021) on Saturday October 01, 2022 @11:23AM (#33047255)
I can't read this they want me to sign up, but it looks interesting.
One thing I've noticed is that almost all new web frameworks I come across nowadays seems to be catered towards search engine optimization (i.e.: getting 99/100 on Google PageSpeed Insights).
Memorization is most often useless. Focus on understanding instead.

You need to only retain information that can help you derive useful conclusions, and your mind is most likely smarter than you at that.

Re:A tiny Docker image to serve static websites on Tuesday April 12, 2022 @01:11PM (#31005458)
I don't know why there is a big fish at the top of your website, but I like it a lot.
Re:A quick and simple editor for cron schedule expressions on Monday August 30, 2021 @06:24PM (#28361626)
I have 0 knowledge of systemd-timers. Is it fully interoperable with cron and available on every system that has cron?

If not, I think your comment is pretty irrelevant since there are still scenarios where you'd need to use cron.

Re:Reflections on 10k Hours of Programming on Friday August 06, 2021 @12:36PM (#28089545)
It complicates code until it makes it easier, sometimes.
Re:The global threat from plastic pollution on Saturday July 10, 2021 @04:49PM (#27796360)
Drinking from a paper straw is unpleasant.
Re:The Evolution of Jamstack on Tuesday May 04, 2021 @09:42AM (#27037475)
I've been working for a company that heavily caters toward the "JAMStack ecosystem" for a while now.

From my point of view, the "JAMStack" is nothing more than a piece of jargon used to aggregate various "good" ways of building and deploying web applications to trick non-technical business people or entry-level developers into using their services.

There's an absurd amount of money and effort currently being spent marketing this term.

Whatever it is, it's ephemeral, and I recommend anyone to avoid spending time on this unless they want to fall into another marketing funnel.