HNHacker News
TopNewBestAskShowJobs

verttii

232 karma · joined May 10, 2019

submissionscomments
verttii··on Using TypeScript with React
No algebraic data types leads to having to add an additional discriminating union type key.

Besides that, no type signatures without parameters and other things just produce a lot more code than you'd have in a nicer type system.

verttii··on Why Finland leads the world in flexible work
On the other hand, exactly because of the high work ethic USA excels in many regards that these "well-being nations" do not. But you're right, it doesn't necessarily lead to a better health to work harder, however, often it does lead to better business results.
verttii··on Using TypeScript with React
Typescript certainly eliminates a class of errors from a JS codebase and can also make development more productive.

My issues with it are that it's just an extremely verbose language. Just like all Microsoft languages. All the while lacking advanced type system features like algebraic data types, pattern matching etc.

verttii··on Using TypeScript with React
https://github.com/piotrwitek/react-redux-typescript-guide

This is a good list of how to use common React patterns in Typescript.

verttii··on Cryptic, allusive messages from Hong Kong's wealthiest tycoon
There will be nothing like guerilla warfare in Hong Kong though. Literally no one has any military experience there, and nobody owns a weapon either. It's just not Singapore.

Meanwhile, the Chinese PLA certainly doesn't suffer from any manpower shortages to contain the situation when they eventually want to.

verttii··on Effortless Elixir Releases and Deployment
This is one of the first hands-on tutorials available on v1.9 mix releases - great content!
verttii··on Dependent Haskell Is the Future (2018)
Can you link to more info about that latency-optimized GC?
verttii··on Dependent Haskell Is the Future (2018)
On the other hand, even those messy real work horses have been adopting functional programming features at a rapid pace over the past decade or two. And many of those features originate from Haskell.
verttii··on The not so hidden cost of sharing code between iOS and Android
But on React Native there are major platform differences that you also have to bridge. Moreover, as the platform essentially uses each platform's native components through that JSON serialized bridge you'll have UI inconsistencies between platforms when sharing code.
verttii··on The not so hidden cost of sharing code between iOS and Android
May I ask what kind of stuff are you developing with it? I've been working on a WebRTC app myself with it, basically porting my app from RN to Flutter. So far I've encountered no major obstacles, just a little friction which is a part of the learning curve.
verttii··on The not so hidden cost of sharing code between iOS and Android
There's a lot of valid points from native advocates though. Like differences in touch features, various sensor APIs, Firebase etc. These may not be serious considerations in simple apps but they make major difference to both the end user as well as the codebase/developer in larger scale / more serious apps.

That said, myself I still write Flutter too, having jumped ship from React Native.

verttii··on The not so hidden cost of sharing code between iOS and Android
Actually, I don't think we should consider React Native more mature. It's been around for longer sure, but it's significantly more fragile, keeps releasing with regressions, has poor tooling around it except for as far as React is concerned etc.

I don't know what you are trying to build on mobile but I'd definitely learn Flutter instead of RN, which I have. Others here have said you should just go full native instead, and they're probably right.

verttii··on The not so hidden cost of sharing code between iOS and Android
This has been exactly my experience. I don't particularly like Dart, but as an SDK Flutter is clearly ahead of RN. RN just keeps feeling too fragile. And the tooling is simply not there whereas Flutter has excellent tooling considering how new it is.
verttii··on The not so hidden cost of sharing code between iOS and Android
I get the API differences on these platforms but at least in terms of the UI Flutter seems like a good choice. I'd imagine it'd still be easier to stick to Flutter than write two separate native apps in most cases, it seems to have gotten tooling right.

So I'm also interested in hearing more elaboration on how Flutter has been a struggle for you.

verttii··on In Germany, couples with more than €5160/month belong to the upper class
Yep, so both would have to be working at very well paying jobs to bring anywhere near that level net income home.
verttii··on In Germany, couples with more than €5160/month belong to the upper class
5160 € net would be incredibly much in Finland. A single guy would have to bring home roughly 115,000 € = 128,600 USD gross annually for that.

That would put you close to the 1% of the top earners in Finland. Even most mid-sized company CEOs don't make nearly that much.

verttii··on Xi’s Dilemma: Send Forces into Hong Kong, or Wait Out Protesters
I agree. HK would need Singapore level armed forces to make the price tag high enough for the PLA. If even then.
verttii··on Xi’s Dilemma: Send Forces into Hong Kong, or Wait Out Protesters
Or the third choice or sending in covert units disguised as protestors, hk police, the triad or whatever else other than PLA troops. Plus a shit ton of modern crowd control equipment china has been working on
verttii··on Launch HN: Embrace (YC S19) – Spot and fix bugs in mobile apps
The docs don't say anything about it, the integration works the same way as for native android?
verttii··on Python Is Eating the World
Yeah I don't disagree. But even there you would have similar other considerations besides the language. Like most still end up with C/C++ there even though there are others like Crystal, Nim, but you just don't find developers who know them easily, nor do you have any ecosystem support.
verttii··on Launch HN: Embrace (YC S19) – Spot and fix bugs in mobile apps
Flutter?
verttii··on Python Is Eating the World
I feel what you're saying is that regardless of how subpar a language is compared to alternatives as long as it has community built specific libraries that solve your problems you're more productive using them than anything else.

Which is of course a fair point. A language by itself is probably not even in the top 3 considerations when choosing new tech. Stuff like runtime, ecosystem and the amount of available developers would probably be more important in most cases.

verttii··on Python Is Eating the World
Haskell's type system most definitely does catch some of your logical errors. That's exactly why it is so revered.

An effective use of a type system such as Haskell's Hindley-Milner can result in a vastly smaller surface area for possible problems and thus can cut a big number of otherwise mandatory unit tests off your todo list.

verttii··on Show HN: I built a poker site with Haskell
Sure, but the original argument was: > raw connection state, timers, transient and long-term persistent state

Much of this surely can be abstracted away to 3rd party libraries/frameworks. Haskell, even though a higher level language than most out there, lacks the ecosystem support for a lot of things that are handled by some library in lower level languages.

verttii··on Show HN: I built a poker site with Haskell
On the other hand, Haskell's strength is its abstraction power. Elm intentionally lacks (some of) that punch, as do a lot of other languages.

But since Elm is a DSL it can afford to cap the abstraction somewhere whereas Haskell is perhaps built for more complex problems than just a client facing web UI.

Having learned both, I feel the abstraction level is capped too low on Elm, sadly.

verttii··on Show HN: I built a poker site with Haskell
Our ways to hide that logic has been building libraries that handle nearly all of it.

But since Haskell's ecosystem is small by comparison a lot of that logic leaks to your own application code. Especially when dealing with something like stateful websocket applications.

verttii··on Show HN: I built a poker site with Haskell
You mean that decomposing abstractions with substitution works better in Haskell than in a lot of the other languages because programs in Haskell are essentially (pure) functions and abstractions are built by composing functions?
verttii··on Launch HN: Quirk (YC S19) – Open-Source Cognitive Behavioral Therapy
Cool thanks! Now this explains a lot more of what I'd want to hear as a potential user
verttii··on Launch HN: Quirk (YC S19) – Open-Source Cognitive Behavioral Therapy
I've actually been building something similar myself. Although mine is mostly just for tracking stuff in your life and forming statistical analysis from the data. And I do nearly everything server-side.

I think you guys should set up a website to explain and promote this a bit better. Basically how you introduced it here but just on a website.

verttii··on Flutter looks good, but is painful
Are you a native iOS dev? I feel Flutter is a major upgrade over React Native, but perhaps native devs just feel it still falls short on a lot of accounts.
← PreviousPage 5 of 7Next →