Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
realharo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
271.
▲
by
realharo
8y ago
You should try Kotlin. It solves exactly this pain point - creating classes for data structures is very terse and easy. You can have a one-liner class like class Person(val name: String, val email: String, val yearOfBirth: Int? = null
272.
▲
by
realharo
8y ago
Wouldn't that just classify as fraud? I think existing laws already have that covered. After all, impersonation done by people is nothing new, this technology just makes it easier.
273.
▲
by
realharo
9y ago
When you look at the screenshot on the product's homepage, 5 out of the 6 shown errors are things that TypeScript would have immediately caught.
274.
▲
by
realharo
9y ago
I believe reddit was always closer to being the site that Digg's users wanted that Digg itself. It was more focused on discussion (there are self-posts, r/AskReddit, etc.) and less on pure link sharing. Digg v4 just gave many Digg
275.
▲
by
realharo
9y ago
>I know there's a typescript preset for babel, and am passively interested in seeing where that goes. That's probably going to be less popular, because with TypeScript, you often don't need Babel at all (you can transpil
276.
▲
by
realharo
9y ago
To be honest, everything about Android seems like a bit of a mess to me - the APIs, the tools, plus all the things from the user's perspective.
277.
▲
by
realharo
9y ago
I really hope that doesn't happen.
278.
▲
by
realharo
9y ago
For very specialized subjects, I would completely agree. But when it comes to lower-level math - a group of topics that surely have been done to death countless times over, there really should be well-known books (or online courses) by now
279.
▲
by
realharo
9y ago
>Half an hour with a good teacher can save you weeks of table head-butting. That says more about the poor quality (or bad fit) of the book/video/material than it says about the skill of the teacher. I guess online courses whe
280.
▲
by
realharo
9y ago
>This huge call stack has been designed to make your life as a developer easy but the price you pay is an enormous amount of complexity. This particular problem could be solved by just having a good filtering UI. You don't have to
281.
▲
by
realharo
9y ago
I guess if you try emailing the author, he may still remember the original year.
282.
▲
by
realharo
9y ago
It's certainly older than 2002. I remember reading it in the "Pixelate" online magazine way back, and sure enough, I was able to find it here https://web.archive.org/web/20020724103458/http:/&#x
283.
▲
by
realharo
9y ago
>after studying dozens of languages Out of curiosity, have you evaluated Swift as an option? If so, what were the reasons against it?
284.
▲
by
realharo
9y ago
I'm not sure you would save that much memory. It would be a similar situation to having Chrome open with a bunch of tabs (those are separate processes as well) - it's the tabs themselves that consume most of the memory, compared
285.
▲
by
realharo
9y ago
>last time I tried C++ with mingw on Windows I had a horrible time installing libraries msys2 ( http://www.msys2.org/ ) solves package management quite nicely, at least for the more popular libraries and tools.
286.
▲
by
realharo
9y ago
Is there anything they could even do in that area? (other than improving Chromium itself)
287.
▲
by
realharo
9y ago
Having done a lot of React development (in TypeScript), and recently dealing more with Android, I disagree. Having to manually mutate the UI instead of describing it with a `render` function feels like a huge step back. Even data binding is
288.
▲
by
realharo
9y ago
I feel the same way. I even tried starting a library like that (in Kotlin JVM and Native), but never got past a very early stage ( https://github.com/peterholak/mogul ). Hopefully one day I'll have enough time to wo
289.
▲
by
realharo
9y ago
I find the whole concept of "preparing for an interview" kinda strange. I understand why people do it, and I certainly wouldn't fault anyone for giving themselves the best possible chance. But at a certain level, it really fe
290.
▲
by
realharo
9y ago
Unfortunately, libraries such as React have their own component lifecycle management, which doesn't play well with this ( https://reactjs.org/blog/2015/12/18/react-components-element... ). This is als
291.
▲
by
realharo
9y ago
Only since 2.7 (very recently) can you actually enforce initialization of class properties: https://www.typescriptlang.org/docs/handbook/release-notes/t...
292.
▲
by
realharo
9y ago
>Admittedly it is still lacking some good stuff in comparison, eg. _yield return_ Is that similar to Kotlin's buildSequence/yield/... implemented with coroutines? https://kotlinlang.org/api/latest&#x
293.
▲
by
realharo
9y ago
That has nothing to do with it. Most UIs display some kind of data to the user. When the data changes, how do you update the UI?
294.
▲
by
realharo
9y ago
>This also happens if you build the component in code, no? I fail to see how this is specific to a visual tool. A professional should take care of all cases, regarding of the medium of the tool. If you want to do it correctly in the to
295.
▲
by
realharo
9y ago
The `render()` function describes the look of the UI. With "traditional" libraries, you either have to imperatively mutate the initial UI (e.g. `button.setText`, `layout.addWidget(new Button)`, `removeWidget(button2)`) or use data
296.
▲
by
realharo
9y ago
The problem is that in order to play with the mockups and test them, you could create interactions that work with the expected happy path, but are not what the final application logic is supposed to be. For example, you have an action that
297.
▲
by
realharo
9y ago
>With a tool like the one in the article, this will be possible, and UI designers will be able to create the basic user interactions by themselves I'm not sure if it's a good idea to allow actual interactions (`setState`, etc
298.
▲
by
realharo
9y ago
That doesn't look like what I was talking about. He basically has an entire new component for every possible state - and his state is just a single variable. That seems very wasteful if what you want to do is just to show a bunch of ex
299.
▲
by
realharo
9y ago
True, you would need a drag-and-drop tool for essentially editing functions (with `if`, `forEach` objects) in order to achieve this with React (well, if you had that, you would have achieved a lot more than the old-school UI tools did). I w
300.
▲
by
realharo
9y ago
With 90s UI tools, you only created the initial state of the UI, that you then had to manually mutate with code. With React, you functionally describe how the UI looks in every possible state.
More ›