Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
481.
▲
by
dgb23
2y ago
But you're not adding variants without a reason? You want them to have some effect. It's hard for me to think of an example where it would make even sense to "having to remember to handle the variant" rather than "h
482.
▲
by
dgb23
2y ago
> “There’s been a systematic change where employees feel the employer is extremely lucky to have them,” Aren’t they? I feel like that’s a healthy way of looking at it. Goes both ways though. > “We need to remind people they work for t
483.
▲
by
dgb23
2y ago
It’s interesting how much effort, and money is put into combating unions instead of developing a healthy relationship.
484.
▲
by
dgb23
2y ago
Isn’t that the first thing you would do if you add a new variant?
485.
▲
by
dgb23
2y ago
I recently wrote a little tokenizer in Go. The data structure for a token that makes most intuitive sense to me is a tagged union. So I defined an „const iota“-style enum. Stuck it into a struct that has the appropriate fields to cover all
486.
▲
by
dgb23
2y ago
> Love Kernighan, such a humble person. A perfect example: Just about 3-4mins into the interview he said that the motivation behind the book was "kind of pretentious". To me, and many others, his opinions on programming are amo
487.
▲
by
dgb23
2y ago
I paid for Sublime, but moved to VSCode because at least at the time it had better hassle free support for more languages. Including linters, auto formatting and just generally convenient stuff. I‘m not sure where it stands now. My guess is
488.
▲
by
dgb23
2y ago
I don't know what an onion is in programming terms. But each of those problems can be solved without one? --- 1. "Adding a field to our API" Parsing: You turn external input into an internal representation. 2. "Introduci
489.
▲
by
dgb23
2y ago
I had the same reaction. Even just a hyphen between like aws-viz would probably do wonders.
490.
▲
by
dgb23
2y ago
I found a discussion with some explanations to why that is and what other solutions could be looked at: https://github.com/WebAssembly/design/issues/1184
491.
▲
by
dgb23
2y ago
I'm sorry it's just a vague intuition from watching a lot of documentaries about the Celts and very light internet research. But generally speaking Druids had an oral tradition of maintaining knowledge in Celtic society. They had
492.
▲
by
dgb23
2y ago
There seems to be alot of work going into WASM itself, much of it is performance related: https://github.com/WebAssembly/proposals
493.
▲
by
dgb23
2y ago
It's definitely math, or specifically logic. The writing style in the article leans heavily on logical statements. Perhaps an interesting aside: I always thought that mathematical logic, or at least the parts we typically learn to desc
494.
▲
by
dgb23
2y ago
Perhaps not at the top in terms of day to day decision making and wealth, but the first that came to mind would be celtic druids and bards.
495.
▲
by
dgb23
2y ago
If JS had typed structs (like they have type arrays) it would definitely be more convenient. However, that's not where the problem starts. A lot of web sites are slow because they simply run too much code that doesn't need running
496.
▲
by
dgb23
2y ago
A boss doesn’t need to be technically competent to a degree that they make important technical decisions. They just need to understand things to a degree so they can trust and delegate. And tust is a two way street. It requires effort from
497.
▲
by
dgb23
2y ago
In that talk he mainly proposes simplicity (decomposition) rather than abstraction. We don’t necessarily need indirection to understand a whole, complex thing. In order to deal with complexity, we need to disentangle it, so we can understan
498.
▲
by
dgb23
2y ago
Specifically I agree, but generally I disagree. I’m very glad we got the metric system, standards for commonly used protocols and so on.
499.
▲
by
dgb23
2y ago
A uuid is just an uint128, or a byte array of the same size. A DB can use them as fixed size keys just fine, and they convert quickly from/into their string representaion. The problem is indexing and generation. For example sqlite alre
500.
▲
by
dgb23
2y ago
Accountants, admins etc. are often very technical. Similar to developers who program every day. For one, they are proficient with what are essentially high level programming environments and platforms like Excel, Filemaker, some CRM and CMS
501.
▲
by
dgb23
2y ago
Administrative work should probably not exceed 10% of the budget, especially in a small company, where the advantage is to have less requirements in that area. Marketing and sales, it depends on what you sell to whom. Let’s say 10-20%. Then
502.
▲
by
dgb23
2y ago
It’s not necessary to use the same language for that. In many cases you can achieve the same with a clearer separation, with data driven methods and by generally not running so much JS. The typical example is input validation. You want imme
503.
▲
by
dgb23
2y ago
Esbuild did solve a major problem, which was very slow builds. Vite wrapps esbuild. Not sure what it provides itself. Then there came several specialized (Rust) tools. For the same reason esbuild was made. I think ultimately they try to sol
504.
▲
by
dgb23
2y ago
Both code reviews and pair programming can be very useful if they serve a specific purpose. Getting someone up to speed with unfamiliar code, disentangling hairy code so it becomes clearer, hunting down bugs or finding unknown unknowns such
505.
▲
by
dgb23
2y ago
It depends on why the library is open source. A lot of maintainers do it so they don't have to re-write everything when they change jobs. Those would generally agree with you. Others do it for personal marketing or other economic purpo
506.
▲
by
dgb23
2y ago
Every library makes assumptions about the usage context. Stating those assumptions up front should be sufficient. For example, Go has two differing template libraries: one for general text and one for HTML. They have very different assumpti
507.
▲
by
dgb23
2y ago
Parts of the code actually parses the IP strings into a sensible type (toBuffer). Why not use this representation for _all_ the queries and operations instead of mixing in regexes? Regexes can be fine in order to parse the string representa
508.
▲
by
dgb23
2y ago
Honestly your reaction is very understandable. You tried to legitimately improve things, go the extra mile and they treated you badly for it. But ultimately that’s not how it goes in many places. There are a lot of people who care more abou
509.
▲
by
dgb23
2y ago
The Bad Code advice is for people who have the tendency for perfectionism (apparently like the author 15y ago). My advice to me: write simple, dumb, repetitive code, but make an effort to be consistent. Consistent, dumb code is really easy
510.
▲
by
dgb23
2y ago
Neat examples! However I think I would still use SVG for these sorts of things, especially since they can easily be manipulated, animated and are more mathematically declarative than CSS anchor positioning. I think the sweet spot for this C
More ›