Hacker Newsnew | past | comments | ask | show | jobs | submit | azangru's commentslogin

Remember the top comment to this Hacker News thread? https://news.ycombinator.com/item?id=48016880 "This is an overreaction." "302 comments about code that does not work." "We haven’t committed to rewriting." "There’s a very high chance all this code gets thrown out completely."

Well. That was about a week ago.


I know it doesn't matter, but...

...who invented this letter-casing convention?

    import (
        "embed"
        "html/template"
        "net/http"
    )

    //go:embed templates/*.html
    var files embed.FS

    var tmpl = template.Must(template.ParseFS(files, "templates/*.html"))
why is the name of a module lower-cased

but the names of functions accessed via its namespace upper-cased?

how does this make sense?


Upper case symbols in a module are exported. Everything else should be lower case.

Oh; in that case the lowly Javascript/typescript does this so much cleaner with the explicit `export` keyword. "Explicit is better than implicit."

Go language is explicit: identifiers starting with a capital letter are exported.

https://go.dev/ref/spec#Exported_identifiers


I find “locality of scope” to be extremely significant fact about a variable, and so I like seeing signs of it at one glance. The . as well for everything tied in a class and the go convention of shorter names for function locals also support this awarenes.

> Why use a browser from Google or Microsoft in 2026? Why in the world?

There are only three major browser rendering engines. One is Gecko, by Mozilla. One is Webkit, currently tended to by Apple. And one is Blink, which is Google/Microsoft. Of those, Blink is the most featureful. That's why.


> Blink is the most featureful

It’s not a waste of bandwidth and disk space, it’s a feature!


One goes to youtube and searches for cs336?

> AI has the potential to significantly improve many aspects of society.

...as well as the potential to significantly worsen many aspects of society


I am puzzled by this sentence, which combines nationality, psychosis, and intelligence into one. What if the parent commenter is Vietnamese? Or Hungarian? Or Turkish? Will this fall into the "or" clause?


> weaponized robots roaming the streets to ensure everyone is "at work" and not "at leisure activities"

But I thought everyone was going to lose their jobs...


No, you see, if you lose your job you are poor. And in America, the poor don't deserve leisure. And any work they do has to be as punishing as possible, no matter how little effect that cruelty has on the bottom line

If there's no work to do, we can always invent more work. We just have to figure out who pays for it. Enjoying life is for those "communist" Europeans /s


A totally unrelated comment; but — there is an animation on that page that moves practically everything on the page about 20 pixels down over the course of 1 second.

I thought that would completely trash the Cumulative Layout Shift core web vital. Because, hey! the layout is shifting in front of my very eyes. But no, the CLS on the page is 0.

Is CLS a misleading metric then?


It's happening as a result of a deliberate animation. The CLS metric relates to initial render. So yes, there is layout shift, but it's not CLS per se.


> The CLS metric relates to initial render.

The CLS measures the total sum of layout shifts over the entire lifespan of a page, not just during initial render.


The layout isn't shifting, so it's not a layout shift.

And it's not unexpected, because it comes from a css transition.


Sure.

It's just that the spirit of Google's core web vitals has been to measure the properties of a web page that have the most impact on users. How quickly content appears on a page, how visually stable the content is, and how long it takes the page to respond to an interaction.

In the case of this page, I don't think it can be considered visually stable at all in the first second after it's loaded.

And yet, core web vitals cannot demonstrate this.


> Axios, like Express, is something I'm shocked to see used in any modern codebase

I am totally with you on axios; but why is express shocking, and what do you expect to see in its place? Fastify? Hono? Node:http?


Text is still hard

screenshot: https://images2.imgbox.com/ff/84/j2FCxyrD_o.png - top right callout


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: