Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haukur
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
haukur
2y ago
If it were a matter of choosing another language, Polish might be a more natural choice, as Poles form the largest minority in the country. But to answer the question, I personally lean towards discouraging English as the default second lan
2.
▲
by
haukur
2y ago
Just to be clear, I do see the value in a group like the Nordic TeX Users Group choosing a neutral language for simplicity and fairness. However, it's quite different when a whole nation adopts a new language just because it's the
3.
▲
by
haukur
2y ago
English has become entrenched as the de facto second official language of Iceland. It's a very depressing trend for the conservation of Icelandic, and the ongoing promotion of English will only continue to exacerbate its decline.
4.
▲
by
haukur
6y ago
Do you have any sources relating to the foreign family you mention, and of them securing landholding rights? Based on what I've found, the man that was burned wasn't rich (his family does appear to have become moderately well off
5.
▲
by
haukur
6y ago
While not exactly the same, the concept of "whale drift" has existed in Icelandic law [1] for almost 8 centuries, and still applies today. It specifies to whom a whale carcass would belong to, depending on the situation, and so fo
6.
▲
by
haukur
7y ago
I cannot edit the post above, but it was meant to say that I'm looking for new clients in 2020.
7.
▲
by
haukur
7y ago
SEEKING WORK - REMOTE ONLY (GMT) I'm a web & product development consultant based in Iceland. Specializing in web development, I work with startups of all sizes and help them build MVPs and full-fledged products. In order to help y
8.
▲
by
haukur
7y ago
It appears that the system font was changed. I'm trying to figure out what it is now, it appears that San Francisco isn't even installed on my system anymore. GitHub, Twitter, and other sites using system-ui / -apple-system a
9.
▲
by
haukur
7y ago
You can buy it online from some stores - this is the first one that popped up on Google: https://nammi.is/food-drinks1/dried-fish.html
10.
▲
Broadcast Channel API
(hph.is)
1 points
by
haukur
7y ago
|
0 comments
11.
▲
by
haukur
8y ago
What you linked is "CSS-in-JS" (in the sense that the library/framework you use transforms the output for you, for convenience, i.e., you're not writing BEM or whatever - same as in the original article). Vue scopes the
12.
▲
by
haukur
8y ago
SEEKING WORK - Remote I'm a web & product development consultant based in Iceland. Specializing in web development, I work with startups of all sizes and help them build MVPs and full-fledged products. In order to help you build th
13.
▲
by
haukur
8y ago
I haven't seen any libraries using the new context API make use of the observedBits prop (currently called `unstable_observedBits`, as its not officially supported). There's a comment in this library's codebase that hints tha
14.
▲
Bitmasks and the New React Context API
(hph.is)
2 points
by
haukur
9y ago
|
0 comments
15.
▲
Server-side rendering React apps – a primer
(hph.is)
2 points
by
haukur
9y ago
|
0 comments
16.
▲
by
haukur
9y ago
It's very unfortunate that the APIs of libraries that extend JavaScript builtins affect the development of the language to this degree.
17.
▲
by
haukur
9y ago
It does, you can write this with a Babel preset supporting this feature: class Foo extends Component { state = { foo: '', }; // The arrow function here is what you're looking for.
18.
▲
by
haukur
9y ago
If you're interested in this approach, check out Pete Hunt's jsxstyle or Kent C Dodds' glamorous. Both allow you to pass in props that map to css rules (e.g., `<Flex justifyContent="center" />`).
19.
▲
by
haukur
9y ago
Another good resource to learn about JSX (by the author of Preact): https://jasonformat.com/wtf-is-jsx/
20.
▲
by
haukur
9y ago
It still does (these docs use the ES6 class API): https://facebook.github.io/react/docs/react-component.html#c...
21.
▲
by
haukur
9y ago
The shallow check is on React.PureComponent. shouldComponentUpdate just returns true by default in React.Component components. See here for details: https://facebook.github.io/react/docs/react-api.html#react.p...
22.
▲
by
haukur
9y ago
In case anyone reads this and is left wondering, there's no need to have n functions to handle n inputs - you only need one. A simple example would be to set the state based on `event.target.name`.
23.
▲
by
haukur
9y ago
Most of the tooling is stable enough that you can lock your dependencies to minor versions (the default behaviour in Yarn/NPM) and only update when you want the new features. There's no need to stay on the bleeding edge unless you
24.
▲
by
haukur
9y ago
The React API is stable. There haven't been any major changes to its public-facing API in a long time. Third-party projects that you might also depend on are not always as stable but the React team has no control over that (and third
25.
▲
by
haukur
9y ago
Fair enough - it's a todo app. The code isn't structured in the same manner as the author's, however, so my point stands. It doesn't look like the code was lifted from the docs, as you said, but instead transformed to lo
26.
▲
by
haukur
9y ago
Out of curiosity, which of these compatibility features do you find most useful?
27.
▲
by
haukur
9y ago
It wasn't lifted from the docs. The tutorial is a tic-tac-toe game, while the example in the post is an AddTodo function [edit: there appears to be an add todo section, but the code is completely different]. Furthermore, all the exampl
28.
▲
by
haukur
9y ago
I really don't see how jQuery would help you much there. It doesn't provide any sort of common structure at all, and it's nowadays arguably not very helpful for its helpers either.
29.
▲
by
haukur
9y ago
No, you should be fine. If it starts to get painful to pass around props, investigate Redux or MobX rather than using context by hand.
30.
▲
by
haukur
9y ago
You can have complex logic and functions in JSX but that doesn't mean that you have to, so the example is very contrived. That way of writing the code is completely discouraged in the documentation and I haven't run across it ofte
More ›