Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
berkes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
901.
▲
by
berkes
3y ago
The most obvious edge-case was mentioned by other siblings. My "edge case" is probably not really even an edge-case though. SPOILER ALERT --- My implementation stopped looking when it found a number. So "one2one" or &quo
902.
▲
by
berkes
3y ago
I did not use regexes, so as said, the most common edge case did not hit me. What hit me was stupid, but also not covered in the example. It was rather implied and obvious from the example, though. SPOILER ALERT In my mistaken implementatio
903.
▲
by
berkes
3y ago
In my experience they are very much "actual business problems"-alike situations. There's never been a customer that asked me "I have some elves that need to make snow and here's a trebuchet", sure. But they ask
904.
▲
by
berkes
3y ago
I only found my edge case (and dumb implementation mistake, I guess) by forking a "working solution" from someone else, outputting their solution for each line, then diffing that with a similar output from mine. It took me a lot o
905.
▲
by
berkes
3y ago
Part two was exceptionally hard. Many people on reddit reporting they were hit by one edge case that's not covered in the examples. But my implementation passed these edge cases too. I was hit by another edge case. So there are at leas
906.
▲
by
berkes
3y ago
Better even: the parent window knows the position of it's child window. So firefox only knows the one window. And that in a situation where you actively had to allow the permission for the parent to spawn the child in the first place.
907.
▲
by
berkes
3y ago
In Europe it's not so much that years get warmer, but that winters are less cold. I expect many parts of the U.S. are similar. Frost would typically kill a lot of species, except a few that are specialized to withstand it. Withstanding
908.
▲
by
berkes
3y ago
I guess that goes for almost everyone. Until you are the person disowned. Nimby. I and my family have been there twice. Thrice if you count my grandfather's quarry disowned by the Nazi's. Me and my parents were lucky to live in a
909.
▲
by
berkes
3y ago
I guess it would be a very solid way to present shasums for binaries. Nowadays software often puts them on the same webpage that links to the binary. While that's better than nothing, having them in a TXT record makes it more secure.
910.
▲
by
berkes
3y ago
And not to forget, they can disown land and ignore complaints of nearby residents fairly easy.
911.
▲
by
berkes
3y ago
Doesn't that apply to wood too? Yet we use wood to build houses almost everywhere.
912.
▲
by
berkes
3y ago
> However, there's a tendency to undervalue PHP-based applications I don't think there's that. In every thread about PHP, many people come in to explain this (edit: this = how good PHP is for use-case X, or how good it is
913.
▲
by
berkes
3y ago
PHP core has very few datatypes. And many are really just Arrays. Not just "under the hood" but through public interfaces. The best example to show this is that you can `foreach()` over an object. It wasn't a deliberate featu
914.
▲
by
berkes
3y ago
Yes. And in that sense it's also similar to Chrome. IE6 might have been the best competitor at first. But it certainly did not grow into the 9x% usage and staid there by being the best competitor. It only grew popular once MSFT started
915.
▲
by
berkes
3y ago
You don't need a cookie banner if you don't have 3rd party tracking cookies. It's really that simple. The fact that all sites have them, shows us a terrifying truth: all websites are tracking us with 3rd party tools. "
916.
▲
by
berkes
3y ago
> Every bit of innovation in the AI space today originated at Google. It all originated at universities.
917.
▲
by
berkes
3y ago
IE6 was the browser "most of the world used" too. But really, surely, there was absolutely nothing done well in it. The only reason it was the most used browser was monopoly abuse. And while we can discuss the exact terminology
918.
▲
by
berkes
3y ago
Any `nil` error, like the famous `undefined method 'users' for nil` is a type error. Every time that serialization gets the wrong value passed in but continues anyway, is a type error. Every time a database-record misses a value (
919.
▲
by
berkes
3y ago
The irony is that the issues this helps with could be solved far before production. Compile time, or some local runtime even. Just not in Ruby. Nearly all the issues this shows you quickly are issues that static typing would prevent compi
920.
▲
by
berkes
3y ago
So you are using Linux. On Windows, sure. But Linux nonetheless.
921.
▲
by
berkes
3y ago
which is why I "need" Linux. The software that I need, will run on Windows, but hardly and always with great effort and abysmal stability. And sometimes not at all. ruby/rbenv, nvm/node, rust/cargo, docker, nvim, ri
922.
▲
by
berkes
3y ago
Interesting to think about the implications of a non-cascading system. First that comes to mind, is how in OOP we have this idea of "composition over inheritance". Would composable style sheets be better? IDK. Second issue I see i
923.
▲
by
berkes
3y ago
> I can customize it Which implies you actually understand all the ffmpeg opts and how they interact. I very much doubt trail an error, or reading manpages is "mich faster" than picking a preset, ticking a box or dragging a sli
924.
▲
by
berkes
3y ago
> People who enjoy designing over-engineered cathedrals and can't be bothered to think about the low-level efficiency of their algorithms. When that's deliberate, I'd say it's good. Quite often we need to optimize for
925.
▲
by
berkes
3y ago
> and there's alternative explanation for the symptoms from some other issues > I feel sure that I did not have ADHD symptoms during childhood Both are hard requirements for the indication though. (at least in my country where t
926.
▲
by
berkes
3y ago
It's possible to make Rails relatively fast. But Ruby is one of the slowest languages around. And Rails adds a lot of runtime overhead to that. It really is very slow out of the box. And that matters for virtually no-one¹, because almo
927.
▲
by
berkes
3y ago
Except that Models are also Records. So by definition they don't separate concerns: for one the separation of concerns between "storing/retrieving stuff" and "all the business logic stuff". This lack or SoC,
928.
▲
by
berkes
3y ago
I wasn't saying that we want to swap it out in the middle of an established project, but that it's impossible to do so in a greenfield project too. there's MongoID and it's OK-ish, -a brilliant piece of work though!- but
929.
▲
by
berkes
3y ago
This wasn't an example. It's that your domain, your team, your planning, and any combination thereof put demands on the architecture and framework.
930.
▲
by
berkes
3y ago
> Does this happen more often for Rails than for other frameworks? Yes. But there are many frameworks where this is even worse. Rails, however, is highly opinioated, and does not allow you to pick and choose your parts (this is a design
More ›