Hacker Newsnew | past | comments | ask | show | jobs | submit | sollniss's commentslogin

Lately I'm really liking jet[1] for typesafe SQL. It requires a live DB to generate the code, but I see that as a positive as well, since you are forced to apply migrations before writing code.

[1] https://github.com/go-jet/jet


Huge fan of jet. It lets you just write SQL, but in your Go. I basically can’t imagine using anything else now.

Why is that better than writing plain SQL like in sqlc? My main reason was being able to dynamically construct queries and reuse different bits. Plain SQL statements simply don’t compose at all, and I don’t recall sqlc giving any solution to help with this.


The t I've learned in school in the 90s is a single stroke.

https://de.wikipedia.org/wiki/Schulausgangsschrift


Hey, that's the same one I was taught in the Netherlands in the late 80s! It seems to have been replaced with an English-style in recent decades though, is that the case in Germany as well?


Yes. This seems mostly the same for lower-case, except we made a lower loop on the f as well making at one stroke.

Also, our capitals were a bit more complicated, such as having 3 loops in the H.


It's fascinating how similar-yet-subtly-different the cursive writing is across Europe. I wonder if you could map them into something similar to language families (or type traditions, I suppose). Would there be any "language gradient" equivalents for cursive writing across the continent? Well, before the industrial revolution I guess, I'd expect that after that you'd see more singular influences of designers backed by the state pushing for standardization of education.


According to the wiki, the Schulausgangsschrift is mandatory in 5 states and optional in 4 states (out of 16) (probably on a school/teacher level). So it still seems to be taught in some places.


After searching a bit more I discovered the situation is similar in the Netherlands too: schools can choose between the two styles (or more like three publishers each with their own styles, really).


Got taught this one in Sweden in the early 90s. Not too surprising though, as much of the Swedish school system used to be modeled on DDR...


I encountered that on exchange to a Gymnasium in the '90s. I liked it better than the Palmer I learned in the US.


You can generally remotely build for any supported architecture[1]. The build process will be painfully slow though if you have cache misses.

[1] https://search.nixos.org/options?channel=26.05&query=boot.bi...


Nitpick: binfmt.emulatedSystems is not true cross compilation. It sets up a nixos to enable emulated native compilation. After painful tinkering, i prefer this way too. When i recall correctly, for cross compilation you'd have to use nixpkgs flags.


At some point it's a matter of perspective. If the emulated system is fast, it feels the same as "true" cross compilation. In the end it's a bunch of bits and bytes which produces some other bits and bytes when we poke it. If it goes fast, it's good. If it goes slow, it's painful.


Is this similar to QEMU user mode emulation?


Uh, in 田中さんは今何をしている, 今何 comes out as こんなに.


Thanks, good catch. This is a known class of edge case I am trying to improve: adjacent tokens sometimes get over-merged into a phrase reading when they should stay separate. 今 and 何 should be handled separately here, not as こんなに. I appreciate this concrete example. That helps a lot.


I hate how it's still not possible to properly style the numbers in ordered lists.

I use them for code snippets with automatic line numbers, but it's literally impossible to space the numbers (relative to the code) while keeping them aligned to the right. ¯\_(ツ)_/¯

https://jsfiddle.net/89t1rd2u/


Try ::before and css-counters.


::before has the same problem. You can't align text inside `content:` to the right. Probably because each ::before is handled separately and can't see the sibling's content length.


Ah, I only now opened your example code.

If you wrap the li contents in a div, you can handle them as a unit separately from ::before.

Then subgrid solves the problem of treating nested elements as siblings.

https://jsfiddle.net/3617wdmf/1/


>So you wont have to reveal your social security to your taxi driver etc. if that was what you worried about.

Yea, but now this taxi driver will forever know where I live. Thanks, but no thanks.


So will he if you give him your ordinary address? It's good to be careful of these things, but I think you are being a little bit paranoid.


Reminds me of that old joke: Drunk man hails a cab, gets in.

"Where to?" asks the driver.

"Home!" says the man.

"Well, where do you live?"

"None of your business!"


He also doxxes random people just because their tool got abused as malware.

There's a German community donating thousands to cancer research each year because "fuck Krebs" (Krebs means cancer in German).


Pr0s js crypto miner?


The font colors make this unreadable.


I had the same; you probably have your phone in darkmode.


Switching to reader mode makes the text readable but code samples a mess. Can’t win


If you’re in light mode it helps a bit.


I’m doom scrolling at midnight. No way I’m going to flashbang myself


Thanks for the laugh. Me and you both.


Thought it was my phone..


With the official linter (golint), exported types must be commented, so sometimes you get Captain Obvious comments like this.


Connector lines not showing in Firefox.


Nothing but Chromiums support this, but it should be happening in the not too distant future: https://caniuse.com/css-anchor-positioning


Safari also has not yet implemented it and they want to wait for it to become stable then implement it.

https://github.com/WebKit/standards-positions/issues/167#iss...


I mean, the article starts by explaining the fact CSS anchors was pushed as a chrome feature. Only browsers that inherit from it by default will have this.

https://developer.mozilla.org/en-US/docs/Web/CSS/anchor


The article doesn't mention that it's not supported by other browsers. The two things (pushed by chrome / unsupported by others) are not consequential.

If you don't clearly state it and people start using the shiny new thing you're hindering the few alternative browsers out there.


> was pushed as a chrome feature

Or has it perhaps been accepted as a specification, but Blink-based browsers implemented it first?

https://www.w3.org/TR/css-anchor-position-1


> This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.


Even as a suggestion that this is hardly pushed as a Chrome feature?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: