Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lugg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
lugg
8y ago
That logic only works when something like month doesn't.
272.
▲
by
lugg
8y ago
Coming from a procedural dynamically typed language like PHP and then learning rust, clojure, and node JS. All have huge benefits. Rust ownership and types system teach you about the freedom it affords you when reasoning about values in a s
273.
▲
by
lugg
8y ago
> You seem to treat NULLs as if they have a specific meaning. Null is a word, it has a meaning. In programming that meaning is the absence of a value. For ergonomic reasons dynamic languages will cast it to 0 or false in some situations.
274.
▲
by
lugg
8y ago
> While I do think that NULL is a hard to deal issue in many languages and I admire languages like Rust without NULL, Why would you admire this? Dropping .unwrap().wrap() on all the things is not any better than doing the same thing on n
275.
▲
by
lugg
8y ago
Why would you replace nulls with empty sets? Now you can't tell if it's empty or just not set. Now I have to track another thing just to tell me if I have touched a thing. Please don't tell me this is some kind of nulls were
276.
▲
by
lugg
8y ago
Yea but I'm not asking for a react rewrite I'm asking for fonts and UI elements to not by microscopic or disappear on me when I misclick on the wrong microscopic thing.
277.
▲
by
lugg
8y ago
I have to zoom to click things. It has clean UX for desktop. Which thankfully translates to mobile good enough because we built mobile concepts to deal with it (zooming). But no, that doesn't mean it has mobile UX.
278.
▲
by
lugg
8y ago
Being stable is a good thing but please don't conflate that with being sterile. The mobile UX here is non existent.
279.
▲
by
lugg
8y ago
Thats literally the point of using a strangler pattern. Concrete plans lead to making hard to change decisions before you need to.
280.
▲
by
lugg
8y ago
It's a strangler pattern. They're going to replace gecko piece by piece until it's all servo. I'm not sure why people are saying they like or don't like gecko. It's just old tech and they're replacing it f
281.
▲
by
lugg
8y ago
http://www.sciencemag.org/news/2019/04/astronomers-spy-iron-...
282.
▲
by
lugg
8y ago
That problem is a query building problem you probably want to look into graphql. ORMs sometimes come with query builders that help things but in my experience it's not worth having to clusterbomb my codebase for it.
283.
▲
by
lugg
8y ago
Thanks for pointing me at btschaegg's comment. > The use of an ORM is abstracting away a lot of the technical debt in the schema and isolating it so we can concentrate on fixing that debt without the worry that it continues to sprea
284.
▲
by
lugg
8y ago
Right, how often do you actually need to do this? In my experience query building to this degree is usually a sign of over optimising for code reuse where it isn't really needed. The times it does make sense, it's usually a search
285.
▲
by
lugg
8y ago
Not really sure how ORM solves anything here. That said, your old and new solutions both sound wrong to me. Tax is a line item. To me it's as much a line item as a product, service, shipping, handling, booking fee, or any other thing t
286.
▲
by
lugg
8y ago
Vulnerabilities from writing SQL? ORMs do not solve this. Prepared statements and parameterised queries solve this. Bugs? You're shitting me, from what? Untested queries? A mess? Clean it up. You can make a mess with an ORM too. > W
287.
▲
by
lugg
8y ago
Nested queries? Joins? Stored procedures? Views? This is literally everything SQL was made for. Modify a query? Literally just code. Like what do you people think SQL is? Select * from table?
288.
▲
by
lugg
8y ago
That's not a straw man and I specifically said ORMs had their design reasons? My complaint is that they got popularised because of their perceived ease of use because of a perceived difficulty with SQL. Anyway.. > ORMs solve a real
289.
▲
by
lugg
8y ago
Look up some of the old YouTube vids on datomic / rich Hickey. "Database as a value" had me jaw dropping and then crying most of the way through..
290.
▲
by
lugg
8y ago
Why is it one vs other? It's not, you can run them both. The question is why you would. What does an ORM solve for you? This is the only mapping I need from an ORM: result = (object) row row = (array) result SQL does ever
291.
▲
by
lugg
8y ago
Never heard of SQLAlchemy. The core part of the lib looks quite nice, the problem is its design is driven by the needs of its ORM. If you define your database properly typed, defaulted, and not null unless an update field that sort of layer
292.
▲
by
lugg
8y ago
What language are you using? Most languages plain sql drivers have something like a cast result row into object as you cursor over the set. E.g. PHP has fetchObject https://www.php.net/manual/en/pdostatement.fetcho
293.
▲
by
lugg
8y ago
I'm curious about pre SQL database times. What sort of solutions were out there? What did the DBs look like before SQL was a thing? NoSQL fixes a lot of the mismatch with code models but imo doesn't really solve much else and lack
294.
▲
by
lugg
8y ago
I dunno. I think there is quite a lot of us that have consistently expressed the stupidity that is wrapping a powerful query language in a mediocre, limited, buggy, half baked, shoe horned into OO shit what was I saying? Oh yea, ORM. I'
295.
▲
by
lugg
8y ago
No, reread the parent, you're missing context.
296.
▲
by
lugg
8y ago
How did it make it into the standard? And why would anyone follow this standard?
297.
▲
by
lugg
8y ago
I wasn't claiming it was well known, in this case I don't think it matters. I assumed anyone that really cares would throw up an arrow and some blinking text pointing at it. Yes, this will be ugly, just like every site I visit ask
298.
▲
by
lugg
8y ago
Fyi, you might like, Firefox + ublock + annoyances list on mobile fix most of this garbage.
299.
▲
by
lugg
8y ago
No, it's not. Currently on legitimate and decently built sites I get a custom JS modal popup that asks me to accept the location request before they even request location access. They do this because otherwise their location request ge
300.
▲
by
lugg
8y ago
Do we even need the restriction. We're talking about spammyness of a UI element because access requests are misaligned with user desire. All you're saying is the site will pop up a request for access whenever I do anything, ok, ho
More ›