Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dmitriid
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
dmitriid
4y ago
Datascript is the open source analog for Clojure, ClojureScript and JS: https://github.com/tonsky/datascript
122.
▲
by
dmitriid
4y ago
Don't forget that he's also shaming everyone for complexity while his own work brings untold complexity to the web platform through dozens of Javascript-only standards around Web Components.
123.
▲
by
dmitriid
4y ago
I just pulled in a class-based component into a modern React project. It just worked with no adjustment. Now that's commitment to backward compatibility (and they can't have it any other way, they won't rewrite half of face
124.
▲
by
dmitriid
4y ago
> Are 2010 skype and 2022 discord comparable in terms of functionality? Are 2000 winamp and 2022 spotify app comparable? The increase in resources available since 200s is measured in orders of magnitude. Are there similar increases in so
125.
▲
by
dmitriid
4y ago
> I think this downplays some of the work Valve/Steam has done for Linux Quoting myself: "the achievement is still nothing short of miracle" ;)
126.
▲
by
dmitriid
4y ago
Nice. Nuclear powered. Reminds me of Russia's nuclear-powered ice breakers: https://en.wikipedia.org/wiki/Arktika-class_icebreaker
127.
▲
by
dmitriid
4y ago
What Steam did for Linux is very similar to what Ubuntu did for Linux: made the actual work to make sure there's something for non-nerds to use. No one cared about the "non-nerd" until these two came along. Because sure "
128.
▲
by
dmitriid
4y ago
> Adopt language epochs so that the language syntax and semantics can be evolved without having to fight backwards compatibility. That's what Javascript got surprisingly right IMO: you can target the latest bleeding edge features, a
129.
▲
by
dmitriid
4y ago
This feature was proposed by Webkit years ago, but Chrome was "nope, Javascript all the way" https://news.ycombinator.com/item?id=34786257
130.
▲
by
dmitriid
4y ago
> I want to use HTML. I want standards. > Maybe in 4-5 years this will finally be a solved problem... Of course it won't. And of course it won't be HTML. Thing is, Webkit wanted to start with HTML and with all things declara
131.
▲
by
dmitriid
4y ago
> What does it really offer? While it really is bad, it offers things that need to be reimplemented by everyone from scratch if they go with Canvas, WebGL or WebGPU such as: - accessibility - text rendering (including proper font renderi
132.
▲
by
dmitriid
4y ago
> It’s like someone landed in 2020 and learned web development while being completely unaware of events in the preceding decade. To quote Rich Harris, the author of Svelte, on the whole web component saga: "It's almost as if c
133.
▲
by
dmitriid
4y ago
You don't need React to server-side render anything, including components. Besides, if you need components, web components are probably the last thing you want to reach for. Edit: Also, none of the major frameworks, and very few of the
134.
▲
by
dmitriid
4y ago
> Most likely hundreds. Not likely > Each individual external service will easily have tens of conditions You will likely not propagate those to the end user, but log and return a single error for many of those cases > A common mis
135.
▲
by
dmitriid
4y ago
> Even in the simple example given, there are probably hundreds of different failure cases to account for. Definitely not hundreds. But yes, they need to be tested > The successful case is usually the most understood behaviour, most v
136.
▲
by
dmitriid
4y ago
> Just pick some small attribute that you expect to observe. The expected "attribute" is correct data being returned. > Hell, you can likely not even bother testing the so-called "happy path" because, really, who c
137.
▲
by
dmitriid
4y ago
> But you should know this from your functional requirements, right? Functional requirements describe observable behaviour. You can't write any meaningful tests for that behaviour until a lot of your code is written. Yet somehow in
138.
▲
by
dmitriid
4y ago
He's also saying "I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence..." https://stackoverflow.com/questions/153234/
139.
▲
by
dmitriid
4y ago
> Are you writing many tests before you begin implementation? No. I usually write functional/integration tests after I've written most of the code. > TDD promotes that you start with just one. And that one will be absolutely
140.
▲
by
dmitriid
4y ago
> For trivial things, maybe, but then people start applying the 'rule' to non-trivial things "because it's easy" and they get it wrong. All I'm saying is that until you are a Kent Beck level expert it's
141.
▲
by
dmitriid
4y ago
> For the rest of us it's better to write too many tests than too few. You might waste some time That's a very bad attitude that is all but enforced by TDD proponents. It's very easy to see which tests are useless and whic
142.
▲
by
dmitriid
4y ago
There are also government sites which really need to support all browsers since time immemorial because many people will access them from old and outdated devices.
143.
▲
by
dmitriid
4y ago
The more I progress through my career, the more useless unit tests become. My requirements are in terms of observable program behaviour, and that is what needs testing. Not the hindreds/thousands of tiny one-off tests in between. And
144.
▲
by
dmitriid
4y ago
Kent Beck (yes, the Kent Beck): "I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence..." https://stackoverflow.com/questions/15
145.
▲
by
dmitriid
4y ago
The only reason dialog suddenly shipped is because browsers want to remove alert/popup/confirm. Until last year the spec for dialog was in such a state that Chrome (the only ones implementing it) argued that it should be removed.
146.
▲
by
dmitriid
4y ago
There are Red Zones in France that are deemed unsuitable for human habitation since WWI https://en.wikipedia.org/wiki/Zone_Rouge
147.
▲
by
dmitriid
4y ago
> We know more about the Apple device through patent filings and leaks. No you don't. Apple routinely files hundreds of patents (any major company does that). It doesn't mean those patents will end up as a shippable product. Al
148.
▲
by
dmitriid
4y ago
> But all of the google services you mention work jsut fine in competitor browsers for the reason I mentioned They don't, not really. See this thread by former Mozilla exec on how Google sabotaged Firefox: https://twitter
149.
▲
by
dmitriid
4y ago
More like Phoenix LiveView: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html
150.
▲
by
dmitriid
4y ago
> Back in 2001 it looked like Microsoft’s dual monopolies over web serving with IIS and browsing with IE Microsoft didn't have search monopoly, mail monopoly, video hosting monopoly and an army of loyal devs who just love every non-
More ›