Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
linkdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
481.
▲
by
linkdd
5y ago
Desktop app are harder to distribute on all platforms. Also harder to distribute upgrades. You may need to support older versions because somewhere, you will have a user who don't want to upgrade. This means you have to maintain multip
482.
▲
by
linkdd
5y ago
I wrote a french translation to this article[0] without noticing I was in violation of their copyright (my bad). Quickly sent a mail to LWN and got their authorization in the next 10 minutes. Big up to the team and awesome content! This mot
483.
▲
by
linkdd
5y ago
> Not knowing Go, but knowing it only recently gained generics, I read multiplying by `time.Seconds` (which does not have a visible 1 associated with it) as perhaps performing an operator-overloaded type cast to a value/type with th
484.
▲
by
linkdd
5y ago
> If you look upthread, there was a mention of F# unit types. And the syntax is `3<unit>` not `3 * unit` - 1 is a scalar - 1m is a quantity - 2 * 1m "casts" 2 to a meter, but really this is just multiplying a quantity b
485.
▲
by
linkdd
5y ago
Since when `((1 m) m)` is a valid mathematical expression? You cannot have a unit on its own without a scalar value. It makes no sense.
486.
▲
by
linkdd
5y ago
> In basic middle school math it’s common to multiply different units as a basic conversion mechanism EDIT: Yes, you multiply the units `2m * 2s` : you first multiply the units to get: `m.s`. This is what I say: you convert everything to
487.
▲
by
linkdd
5y ago
Since 1min could be 61 seconds[1], yes? But assuming your comment is not a joke. You probably want to convert minutes to seconds in order to work with the same units, then add the scalar parts together. That's how you deal with differe
488.
▲
by
linkdd
5y ago
> 1 * time.Second * time.Second semantically reads to me as 1 second. Which is wrong, 1s * 1s = 1s². For example, the force of gravity is expressed in m/s² and describe an acceleration (m/s / s, aka a change of velocity pe
489.
▲
by
linkdd
5y ago
Yes, thank you for the precisions, this just make my point stronger: int64/float are very ill-suited to represent such values. And it's especially true for time units. For example, "how many seconds is one month?" does n
490.
▲
by
linkdd
5y ago
Do you have a link to this utility?
491.
▲
by
linkdd
5y ago
What they're suggesting is that `time.Duration` should not be an int64. 1 second * 1 second = 1 second² 1 meter * 1 meter = 1 meter² 1 meter / 1 second = 1 m/s Those are not user errors, those are physical values.
492.
▲
by
linkdd
5y ago
There is good laziness: - Don't Repeat Yourself - Don't Reinvent the Wheel - ... And bad laziness: - I don't want to do this because I need to be careful - I don't need/want to understand what'
493.
▲
by
linkdd
5y ago
Wait until you see people saying "exceptions are glorified goto". Basically, every statement of the form "X is broken and harmful" either don't understand X, or have read it somewhere else without giving a second th
494.
▲
by
linkdd
5y ago
Yes pointers are hard to get right. No, depicting it as "broken and harmful" is not ok, even with good faith reading.
495.
▲
by
linkdd
5y ago
> Do we want to stop worrying about finicky correctness or pointers and worry about building more complex things? Probably yes also. Which is why I mentioned the safe higher-level interfaces provided by programming languages. Yet, I thin
496.
▲
by
linkdd
5y ago
Once compiled to assembly, every data is accessed via pointers. Every data structure is represented with pointers. Almost everything is a pointer. According to you, all softwares are broken and harmful? Programming languages can provide a s
497.
▲
by
linkdd
5y ago
This should be the default. On Linux, packages should provide the SELiunx (or whatever) rules they need, and the user should accept them or not install the package (just like permissions on Android/iOS apps). On Windows, the applicatio
498.
▲
by
linkdd
5y ago
Awesome library and a very good README. I usually suck at choosing colors and rely a lot on https://coolors.co/ Your library will complete my toolset to create some good looking UIs :)
499.
▲
by
linkdd
5y ago
The main point of the Option type (and Result) is not because it panics when you call `unwrap`. It's about all the operations you can chain with it: - and_then - ok_or_else - map - ... This allows you to chain computations
500.
▲
Like Wordle, but for Chess
(jackli.gg)
1 points
by
linkdd
5y ago
|
0 comments
501.
▲
by
linkdd
5y ago
Pretty nice, But There is too much numbers given at the start. And I ended up on a sudoku with 2 possible solutions. At the end there were only 3 pairs of cells with only 5 and 8 in them. If the first one was a 5 it would work, if it was an
502.
▲
by
linkdd
5y ago
I'm pretty happy with Hugo+Netlify, but I've never tried Jekyll. Pros: - TOML syntax for Frontmatter data in markdown content - The `data` folder which can contain JSON, TOML, CSV, and YAML - The layout system, once you ge
503.
▲
by
linkdd
5y ago
You should resist commenting stuff like that too.
504.
▲
by
linkdd
5y ago
I would use Vue3 (with Pinia, vue-router and typescript). There is also the Quasar framework based on those tools which provide many components out of the box.
505.
▲
by
linkdd
5y ago
not particularly interested, but highly curious to what is a "declarative client".
506.
▲
by
linkdd
5y ago
log(a*b) = log(a) + log(b) Or: how to transform a multiplication into an addition. i^2 = -1 Or: multiplying by i is a 90° rotation on the plane This was an eye opener for me. Math is designed to simplify things. To represent
507.
▲
Ask HN: Why are fonts on websites so small?
38 points
by
linkdd
5y ago
|
44 comments
508.
▲
by
linkdd
5y ago
I support free speech. I will fight misinformation with facts and argumentation. Not with censorship. If a media of any kind starts to filter what I can see, I will loose trust in that media. Being blind to the opposing side, and being stuc
509.
▲
by
linkdd
5y ago
Documentation and communication is key. The frontend team will be using the APIs provided by the backend. It should at least be fully documented to avoid unnecessary back and forth. Regular "get together" meetings (remote or not,
510.
▲
by
linkdd
5y ago
Not in order: 1. Kingdom Reborn: https://store.steampowered.com/app/1307890/Kingdoms_Reborn/ 2. Factorio: https://store.steampowered.com/app/427520/Factorio/?l=french 3. Ox
More ›