Better HN
topnewbestaskshowjobs
Log inSign up

zero_shift

4,017 karma · joined Mar 10, 2017 (9y ago) · 930 submissions

I really like computers!
Submissions

comment 1y ago · link · parent

Would it not be the opposite? I always had the impression Swisher was quite boosterist, very enthusiastic about the industry. I don't know her work too well though

comment 1y ago · link · parent

I think he sees the weakness more in the model/product/IP holding companies than the infra/hardware/commodity compute side

comment 1y ago · link · parent

I'm sure I've read somewhere - and it annoys me immensely that I can't recall the source - that SWEs perceive they are more productive with AI, but the measurements say they aren't.

comment 1y ago · link · parent

This journalist, Ed Zitron, is very skeptical of AI and his arguments border on polemic. But I find his perspective interesting - essentially, that very few players in the AI space are able to figure out a profitable business model:

https://www.wheresyoured.at/core-incompetency/

comment 1y ago · link · parent

Could you name any of these "150 major web frameworks"?

comment 1y ago · link · parent

It doesn't. It's just a meme. React has been around for eleven years now, and complaints about frontend churn started with the Angular 2 announcement (in late 2015)

comment 1y ago · link · parent

I'm not aware of any indication that class components will be deprecated.

comment 1y ago · link · parent

How do you mean?

comment 1y ago · link · parent

Yes, you can use `--loc="12.34,56.78"` where the values are longitude and latitude.

You can also override the Timezone with `--timezone` (passing an IANA timezone e.g. America/New_York).

comment 1y ago · link · parent

It _is_ possible to use native OS APIs for location lookup, but these all seem to rely on cgo. Which was a bit intimidating for a "let's learn Golang" project

(Probably not the nicest code and no doubt I've broken a lot of Go idioms, but it was a good learning exercise)

IPInfo is a good service and their developer relations were surprisingly relaxed about me (mis)using their API this way

comment 1y ago · link · parent

It gets your latitude/longitude from an IP lookup service, then does a geometric calculation locally

comment 1y ago · link · parent

Thanks! (Don't have a Windows machine right now so that's very helpful)

comment 1y ago · link · parent

Really interesting, I wonder how fast this parser is.

What are the contexts where I need a MISRA C package for parsing JSON? Just embedded systems or can you see a wider usecase?

404.

Show HN: Daylight – track sunrise / sunset times in your terminal(github.com ↗)

79 points · by zero_shift · 1y ago · 19 comments

comment 1y ago · link · parent

It's a long list. It might be more productive to start with just one example: OpenAPI validation.

In large orgs with customer-facing APIs, it's imperative that you can validate and enforce OAS specifications against all routes. Customers need to know exactly what auth mechanisms they can use and shouldn't be enabled to call undocumented capabilities. It's also important from a practical perspective that developers can scaffold up new routes that are always-already bound to a specification. Depending on the context you either need to do "contract first" specification or "code first" generation based on type system introspection.

Go can let you knock something together yourself but as your team gets larger, the overhead of reviewing and marshaling your team's practices gets more and more difficult.

It's like the problem you have with NodeJS. It's very possible to assemble something that has easy to scaffold routes with strong type-to-spec validation, authn/z, no exposure of undocumented APIs. But without something like NestJS or Adonis each project becomes a special snowflake with no support for interop across repositories.

comment 1y ago · link · parent

I don't think Laravel is particularly GoF-ish, if that's what you mean. In terms of patterns it's mostly fairly simple.

> Why not use the actual language or framework your engineers like instead?

Go does not provide "enough" by itself to completely furnish my needs. And having a framework that uses common terminology and patterns allows you to get s__t done and not waste time bikeshedding.

"Microservices are cattle, not pets."

comment 1y ago · link · parent

That IS excellent - thank you

comment 1y ago · link · parent

I guess it's a variant of that, Jevon's Paradox being that increasing supply counterintuitively increases demand

comment 1y ago · link · parent

There must be a name for the self-balancing phenomenon where any improvement in productivity is soon swallowed up by an equal increase in waste

comment 1y ago · link · parent

I'm not surprised they would design a font but I am surprised they would distribute it so readily. Why would they want people to appropriate their graphic identity?

comment 1y ago · link · parent

Classical era philosophers weren't completely wrong about this. They lived in a more oral literary culture where performers could recite entire works from memory.

I don't think anyone today could recite Beowulf from heart. But 1500 years ago that's exactly how it was enjoyed.

comment 1y ago · link · parent

We have a limited amount of attention to give and trust to offer, so we filter ideas with heuristics.

One of the heuristics is that if someone says something very left-field, does not qualify why it falls out of consensus, and it appears the same as arguments made by politically motivated actors, we trust it a lot less.

Especially when that person has no expertise in the area and is mostly famous for a completely different thing.

comment 1y ago · link · parent

It's "preserved" in the same way an atom bomb "preserves" your shadow if you're stood at ground zero.

Think more "something remained" than "some thing remained"

comment 1y ago · link · parent

I did some OBJ processing the other day, it's an easy format for working with PlayStation 1 3D models.

comment 1y ago · link · parent

I am hijacking this slightly to talk about something only partially related. I am very sleep deprived right now and probably won't do the idea justice, but it's bounced around my head for a while now.

It's that I find programming a fundamentally visual medium, even as text. It's an urge whenever I write a function, not simply to be "neat" and visually consistent but for the program text to embody a rhythm that provides a subtext.

Functions with lots of short branches have a bubbly fine grained texture. I see them performing lots of detailed operations and I know it's IO bound code. It's one reason Golang programs feel good to me when applied to this domain.

I see rigidity aligned segments and I sense this is programming as configuration. I know I'm supposed to... elide over the operational details as a reader and it's maybe even functional. I like authoring those sorts of functions in Haskell, I can line up my let / wheres and case matches to visually communicate "I am doing rules based programming here".

I wonder if other programmers interact with programs visually. It's one reason I kind of... dislike other contributions to my programs because they don't usually follow my visual subtext. I tolerate it, obviously but it makes me wonder how much of code readability really is common sense and what aspects are highly unique

comment 1y ago · link · parent

Data point of one: ChatGPT 3.5, even the free product, is so much better at answering technical questions than Google.

Some questions I had successfully answered recently:

> "I would like to animate changing a snippet of code. I'll probably be using Remotion. Is there a JavaScript library that can animate changing one block of text into another?"

> "In Golang, how can I unit test a http mux? How can I test the routes I've registered without making real http calls?"

> "Hello ChatGPT. I have an application using OpenTelemetry. I want to test locally whether it can collect logs and metrics. The application is running in Tilt. How can my local integration test read the logs and metrics from the OTel collector?"

1
131415
31