Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
realharo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
241.
▲
by
realharo
7y ago
I don't think I understand how RTTI/reflection relates to this. When I imagine how a C++ implementation of something like React would look, my first thought is a bunch of functions which take whatever custom types they need (props
242.
▲
by
realharo
7y ago
Last time I looked at QML (a few years ago), you couldn't just use any data in your UI directly, you had to wrap it in clunky models. When using C++, looks like you have to use things like QAbstractListModel https://qmlbook.
243.
▲
by
realharo
7y ago
You can use TypeScript with JSX and you get all the checking (required properties, types of values, types of children, etc.) and everything. In fact, "TSX" is an official built-in part of TypeScript.
244.
▲
by
realharo
7y ago
So how is it different from React and JSX?
245.
▲
by
realharo
7y ago
I remember an old game called Mean City ( https://www.mobygames.com/game/mean-city-learn-english-or-di... ) that tried to do something similar (minus the VR and the voice parts). There were probably others.
246.
▲
by
realharo
8y ago
There is this video about inline styles https://www.youtube.com/watch?v=k3OF4A30jSQ , based on a lot of real-world experience. It addresses some of these points at 35:23 - that you can kind of make CSS work if you always do
247.
▲
by
realharo
8y ago
>If style becomes out of fashion, you have to modify files that contain logic. So just put the styles in separate .js files and import them.
248.
▲
by
realharo
8y ago
>So many people complain about Electron or rush to use it. Yet, Lazarus gives you cross-platform apps with self-contained binaries. - The UI has the same old "grey boxes" style that plenty of classic desktop libraries used. -
249.
▲
by
realharo
8y ago
>Each PHP file is an endpoint. As opposed to having routers in code or client side SPA routing. The vast majority of PHP frameworks, even micro-frameworks, don't work that way. They route all traffic (except static assets) to an `in
250.
▲
by
realharo
8y ago
Groovy had the same feature well over a decade ago[1] (at least in 2005) and other languages possibly even before that. Swift was first announced in 2014. Swift's is also tied to their `Optional<T>` wrapper type, any potential JS
251.
▲
by
realharo
8y ago
Presumably people will only use it in situations where null (or undefined, or however it works) is a valid and expected value for a particular property. In TypeScript, these properties would explicitly have a `MyType|null` or `MyType|undefi
252.
▲
by
realharo
8y ago
It's not all sunshine and rainbows. - Start menu was crap without search. Search, and being able to just start typing, is extremely important for day-to-day usability. - The toolbars of many applications used to contain far too many bu
253.
▲
by
realharo
8y ago
Having to specify the path using an array of strings would be an instant dealbreaker for me. It messes with all tooling and is bad for readability.
254.
▲
by
realharo
8y ago
I would recommend immer ( https://github.com/mweststrate/immer ) instead of ImmutableJS. You can work with regular JS objects, plus it plays much nicer with TypeScript.
255.
▲
by
realharo
8y ago
I think a PWA (progressive web app), that people get directly through your website, is a more viable alternative. As long as you don't need some native-only functionality of course.
256.
▲
by
realharo
8y ago
There's a difference in knowing how to use a TV and knowing how to design and manufacture a TV. Or a difference between Jesse Pinkman and Walter White. I guess we don't need to stretch this joke too far.
257.
▲
by
realharo
8y ago
Reddit's mobile site is also intentionally user-hostile to try to get them to use the app. Although that's not a part of the recent redesign, they had that for a long time now.
258.
▲
by
realharo
8y ago
>I get it's faster to write dynamically typed code I would dispute that, but I guess it depends on one's workflow. Different workflows work better with different kinds of type systems.
259.
▲
by
realharo
8y ago
Nice to hear from someone with experience in this area. I wonder though, if the problem with existing platforms is in the environment and tooling, is a new programming language going to help? Wouldn't it make more sense to build better
260.
▲
by
realharo
8y ago
You could still do the following in Java: Class<? extends FooInterface> c = FooBar.class; FooInterface newInstance = c.newInstance() But people usually choose not to, because it still leaves the construction details up to
261.
▲
by
realharo
8y ago
There is also the meme of having a lot of never-played games in one's Steam collection, that were purchased during sales. So it affects entertainment too.
262.
▲
by
realharo
8y ago
Do read those books, but don't take them as gospel, and don't be afraid to use your own judgement. Both have some flaws and highly subjective advice in them, and if something doesn't seem to add up, it's very possible th
263.
▲
by
realharo
8y ago
This scene https://www.youtube.com/watch?v=XXBxV6-zamM#t=1h28s (at 1:00:28) shows why people would think that.
264.
▲
by
realharo
8y ago
I'm still using my mid-2012 Asus laptop that was like €1300 at the time. I did buy a few upgrades since then (16GB RAM, bigger SSD, new battery) but given that I don't do any gaming, there is very little that a new purschase would
265.
▲
by
realharo
8y ago
>we now have a massively cobbled-together web ecosystem I don't think most older ecosystems were any better. For example Unix is a cobbled together mess. Autotools is a terrible mess of a build system, etc. Big "professional&
266.
▲
by
realharo
8y ago
>Fair point for nullables, although that is already possible through annotation processing (see the checkers framework) - but there is a good faith argument that this isn't "core" enough. It also wasn't available in
267.
▲
by
realharo
8y ago
Compared to Java, Kotlin also adds nullable types and sealed classes. The built-in syntax for lambda types could also be considered a part of the type system. Or the fact that inline lambdas let you use non-local returns ( https://
268.
▲
by
realharo
8y ago
>both static and dynamic languages have existed for over six decades For a long time however, if you wanted a mainstream (well supported, large ecosystem) language with static typing, you pretty much had to deal with languages like Jav
269.
▲
by
realharo
8y ago
Netflix is still way better than the video streaming services run by giants such as Google, Amazon, or Apple. You won't see Netflix intentionally not working on Chromecast in order to sell their own dongles and tie users to its own eco
270.
▲
by
realharo
8y ago
As a counter-example, this is a few hand-picked sections from a Makefile for OpenSSL. https://gist.github.com/anonymous/d885c3bb66a319d22f9d60c1ef...
More ›