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 4y ago · link · parent

You can do it in Node, but it requires

1. Something to track the dependency graph 2. A way of determining if a module has side effects (which really requires ES modules)

comment 4y ago · link · parent

Long-s predates short-s.

It entered usage because we needed a lower case S when Carolingian monks first developed cased letters in the eighth century, and the Romans already had a similar shape (the "medial S"). For a long time "S" was only used in the capital form; small "s" came later.

Here's what Carolingian miniscule looked like, note the r-like s: https://en.m.wikipedia.org/wiki/File:Carolineminuscel.jpg

And here's Old Roman cursive for comparison: https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Cu...

Small-s starts taking off around the 12th century or so, coexists with long-s for a while, before eventually replacing it.

comment 4y ago · link · parent

Is email itself broken? What could replace it, that isn't a "platform" like WhatsApp?

comment 4y ago · link · parent

No! That's not how it is. The way it is, is

- every app more complex than how I like to do things, is an overengineered mess

- every app less complex than how I like to do things, is an offensive relic from the distant past

comment 4y ago · link · parent

Forget about rendering, just doing the layout would be extremely challenging.

comment 4y ago · link · parent

Mermaid has heaps of problems. I discovered this when I tried extending it myself.

Firstly, neither its parser and its visualiser can be extracted from the library. You can't process a grammar on a backend and then render out an SVG. You can't generate an SVG as part of a CLI tool - not without spinning up a web browser in automation mode.

Secondly, the grammar is messy. Really really awkward. Flowcharts are OK because they were the first Mermaid usecase, but other grammars are quite weirdly written, brittle, and try to be a mismash of other DSLs. Which in turn leads to very awkward token choices to avoid stepping on the toes of parts that are UML-like, parts that are DOT-like, etc etc

My impression reading Mermaid's issues is that it was built from scratch by a JS developer who hadn't any previous experience with DSLs, parsers, or language design, and largely learned as he went along. That's acceptable for a proof of concept. But as a finished product Mermaid is a lumbering mess

comment 4y ago · link · parent

I absolutely cannot agree with this.

It's true that after five years in a startup, you'll have seen lots of systems. But being a senior practitioner requires deep experience as well as breadth, and enough time in the industry to recognise larger trends.

There is no magic mark for this, and it's quite possible to reach ten years and still be a weak practitioner, because you were exposed to a narrow range of problems and were never around to see your bad decisions bear bad fruit.

However, the opposite does not hold. It doesn't matter how intelligent you are, you can't short circuit repeated experience and the mix of breadth and depth required. People want to. I wanted to. But I didn't: all I became was an overbearing mid who had the rhetoric (and the OSS contributions!) to convince others I knew what I was doing. There is absolutely no comparison between myself in 2017 and myself in 2022, but we both have a job title of "Senior Engineer".

In fact, I think that in the long term the trend is for the senior bar to get _higher_. This is pushed by two things: firstly, that the technical domain gets harder, software becomes more abstract, our expectation of engineers increases particularly in "left shifted" environments where every IC must do everything from frontend to microservices to infra to security to testing.

The second force is demographic: as IC salaries have increased, there has been less pressure for senior engineers to exit in favour of the management track. That means more experienced engineers on average. Industry needs a way to describe these practitioners, beyond "very senior", and overall the range of skills of ICs will widen. Under those conditions the definition of senior engineer gets more exclusive, not less.

comment 4y ago · link · parent

She was a Staff Engineer at Stripe. She wrote a great primer on SQL too.

https://jvns.ca/ is a treasure trove

comment 4y ago · link · parent

There should be a body of these "koans", little program specs to implement to explore various technologies.

comment 4y ago · link · parent

Hey Mark, I’m actually currently looking at a similar problem.

I’m writing a HTTP client based on composition. The exact details aren’t important, but one of the goals is to have a strong type system for describing a valid pipeline of things like response parsers. Imagine something like

Doing “type tests” alone isn’t too hard - we can just use conditional types and the extends keyword. If the code compiles, fine.

But the harder part is negative type tests. “Given this code, the developer should get this error from TSC”. But this is just as important a part of the API; your types are there to convince the consumer that they can call a type-checked API with confidence.

In theory it should be plausible to run TSC programmatically. The issue is that TypeScript’s ScriptProcessor API really wants to be called with files on the filesystem rather than source text. So I am having to do some bodging. If I can get something sorted I may write a repo to demo it, I think it is a common problem.

comment 4y ago · link · parent

I fear that WFH is becoming one of those hot topics divided down cultural lines: workers who enjoy a life without commuting, bosses and older employees who are suspicious of it.

I'm happy to work from home and it's a big benefit to me, but I won't deny it sometimes has its drawbacks. I just think the balance lies more in favour of remote work than colocation.

Hopefully there's a way to express that, yes, junior employees might benefit from some face to face support, but in such a way that doesn't imply everyone else must be chained to a desk forty hours a week.

comment 4y ago · link · parent

Can you explain why you skipped over these?

> management has worked to isolate pro-union workers and threatened to relocate the warehouses if unionization succeeds.

> One worker said his life has become miserable since he uttered the word “union” at work. “Every coworker who talks to me, after a few seconds, they are interrogated by the manager. When they do that, people don’t want to talk to you anymore. I’m being isolated,” he said.

comment 4y ago · link · parent

This is great! Thanks for sharing, it's added to my bookmarks

comment 4y ago · link · parent

They wouldn’t have a single deployment but exist in one bounded context.

comment 4y ago · link · parent

I don't think I've been pleasantly surprised by an Amazon purchase in well over five years.

I find I can only trust them with fairly basic items, things with simple manufacture. Or, obviously, books.

I used to rely on them for clothes, but this month I've tried buying and returning the same pair of shoes no less than four times. Each time they got something wrong. This included both first party and third party distribution.

In 2020 I spent a bunch of money on a webcam that simply didn't work. It seemed like the vendor had swapped the item being sold on the same listing, but had kept the earlier reviews. When I remonstrated I was offered a gift voucher to provide a five star review.

There's a whole cottage industry devoted to making money on Amazon through dodgy tactics - brushing scams, sending faulty equipment, or just plain old counterfeits.

From the perspective of this consumer at least, Amazon just aren't a trusted brand. The shoe thing was the last straw. I have no faith in any listings; it's just full of tat from China

comment 4y ago · link · parent

It also belches carbon into the atmosphere and inceintivises bad actors to run grifts and Ponzi schemes. It's the negative externality to end all negative externalities.

comment 4y ago · link · parent

> 1 repo == 1 bounded context == 1 isolated unit of deployment.

The most obvious counterpoint: many systems of record need to scale command operations (writes) and query operations (reads) separately.

So you absolutely would have separate programs, ASGs etc for those two roles

comment 4y ago · link · parent

From my experience, the off the shelf tooling works poorly with monorepos. Everything is still optimised for the polyrepo microservice craze of 2017.

There are tools out there, but they're not free and they involve some level of vendor lock in. I've worked on some monorepo build scripting myself.

649.

Show HN: Trkl, a tiny observables library, 383 bytes(github.com ↗)

2 points · by zero_shift · 4y ago · discuss

comment 4y ago · link · parent

You might also be interested in my microlibrary trkl.js, a Knockout-like observables library that's just 383 bytes minified and gzipped:

https://github.com/jbreckmckye/trkl

I've used this for production sites where bytes down the wire is a hard constraint.

comment 4y ago · link · parent

Made me smile, have my upvote

comment 4y ago · link · parent

grugspeak imply that message self-evident and that complexity is not really in world but invented by badspeakpeople

but world is complex, and babytalk is denial

comment 4y ago · link · parent

Please stop the grugposting, it is impossible to read.

comment 4y ago · link · parent

Unfortunately, you don't have to work with bad PMs very often, to occasionally experience a year or more of misery due to their ineptitude.

Good PMs are a bit of a paradox. They are immensely impactful and bring value to every project they touch. Yet they are also far overqualified for what is often a thankless job.

I also have come to the view that even good PMs will rarely allocate the work that is truly impactful. Some of the best work of my career has been when I've gone off piste and prototyped something that has surprised my managers or disrupted the way a team thought they had to work.

You can't go rogue often, and you have to expend your political capital carefully. But you will never do the best work of your career waiting for someone to assign you it in JIRA.

comment 4y ago · link · parent

If it's so bad, you're welcome to write your applications in vanilla JavaScript, with no shims, in flat files without modules calling 1998 era DOM APIs.

There's a reason most people don't, however.

comment 4y ago · link · parent

It's a question of incentives and accountability.

PMs aren't usually accountable when their shortcuts come and bite the team further down the line. Developers feel the pain instead.

PMs won't be honest with the business that they sold an undercooked product. Need to suddenly scale up that "pragmatically" designed database? I know in my heart that too many PMs will _never_ manage expectations with their superiors if they can harangue developers into overtime, out-of-hours alerts or death marches. It’s asymmetric risk.

Don't take that personally. I’m sure you, individually, do the right thing. But my experience is that PMs / POs / team leads as a group can be bad actors. It's just the way incentives are structured for middle managers. By the time the problems of your "pragmatic" architecture have emerged, your typical PM / EM / team lead will either be working on another team, doing another job, or talking about "tech debt" as "just one of these things", a mysterious natural force, visiting your team stochastically like a freak summer snowstorm or an outbreak of measles.

_That_ is why developers are cautious. Do you _seriously_ think that you are the only person in your team who understands "commercials" or "cost benefit analyses"?

Experienced developers do, which is why we've learned the best strategy in the long run is to avoid offering too many concessions to people without skin in the game.

comment 4y ago · link · parent

Doing anything like this through AWS just seems needlessly complicated.

I don't know what it's like on other cloud providers, however. Perhaps GitHub pages makes that niche too tough to monetise.

comment 4y ago · link · parent

Days employed as a "software engineer" (as in, where writing programs was your primary responsibility), divided by 365.

It's supposed to represent commercial experience.

comment 4y ago · link · parent

They do something with technology to either sell new kinds of insurance or sell certain kinds of insurance better.

That usually involves either

1. Coming up with a better pricing / risk model that lets them underwrite certain risks for less than their competitors

2. Coming up with a better way to provide / sell insurance to people, including better forms of brokerage (such as comparison services)

3. Selling things that do (1) or (2) to other businesses. Think of how post-Monzo a bunch of companies offer "challenger banks in a box".

When I worked in insurtech, we were doing all three.

1
212223
31