HNHacker News
TopNewBestAskShowJobs

mi100hael

3,634 karma · joined August 4, 2016

submissionscomments
mi100hael··on Why I Don't Like Golang (2016)
It's not always clear how to do that. Sure, in theory it's possible to manually download JARs, configure your classpath, and run javac. In practice, the wisdom seems to be to replace the old ecosystem with a new ecosystem like Maven -> Gradle or Spring -> Spring Boot.

In comparison, the entire standard build process for a Go program is:

    $ export GOPATH="/path/to/repo" && go get && go build && ./main
No config files with some DSL to learn or handwritten XML, no weird class loader behavior to track down, no tuning memory limits or any of that stuff that is just par for the course in Java.
mi100hael··on Why I Don't Like Golang (2016)
I also prefer writing REST APIs in Go.

- Compared to Java: Ecosystem is way over-engineered. You might get along just fine without writing a bunch of boilerplate and factories and XML configs, but sooner or later you're probably going to pull in some dependency that does and have to deal with a bunch of clunky APIs and other annoyances.

- Python: Possibly the only language that's even worse at dependency management than Go. Installs packages globally. The solution is to create a "virtual environment" which is code for hacking up your PATH.

- Node: I dislike the quirks of Javascript like remembering the difference between == and ===, undefined vs null, etc. I haven't used Typescript which may solve some of those language issues. I also dislike dealing with promises/callbacks for so many operations.

I like Go because:

- I can compile to a single statically-linked binary and cross-compile for other platforms

- I can choose to either vendor dependencies or use go-dep to create a dependency lockfile. I can have multiple GOPATHs with minimal magic.

- The "go" CLI handles pretty much everything I need without an explicit config file like pom.xml or package.json.

- The language lacks features. There is no magic. Way more so than even Python, there is one obvious way to do things and there's even an official style guide, so it's easy to jump into someone else's code and understand exactly what's going on immediately. After working with Scala professionally for a few years, I firmly believe this to be a feature, not a flaw.

- The standard library is incredibly comprehensive. It's completely possible to write a web service without importing a single external dependency. There has been a lot of thought put into library APIs for things like byte Readers/Writers and HTTP handlers, to the point that external libraries still usually stick to these standard interfaces. Contrast that with a language like Python where urllib sucks so everyone uses requests.

mi100hael··on Sleep tweaks boost night owls' wellbeing
I think you've sort of touched on a separate issue. I'm a night owl but find it far easier to wake up in the mornings if I'm excited for something. Often I wake up earlier on the weekends than on work days because I'm not particularly looking forward to going to work.
mi100hael··on Ask HN: Server-side web apps – is the database still a bottleneck?
Do you have an example of that being the case? Memory is usually pretty quick compared to disk & network.
mi100hael··on iPadOS
I've found Wolfram Alpha to be a good replacement that doesn't bother me with ads.

Does much more than basic calculator stuff. Not sure how much of it requires network.

https://itunes.apple.com/us/app/wolframalpha/id334989259?mt=...

mi100hael··on Switch from Chrome to Firefox
There's a setting to show the full URL in the address bar.

Preferences > Advanced > Show full website address

mi100hael··on Switch from Chrome to Firefox
uBlock Origin is available on Safari. Installing it results in a "will slow down your browser" which is apparently just a CYA warning from Apple for any extensions not installed via the App Store.

https://safari-extensions.apple.com/details/?id=com.el1t.uBl...

mi100hael··on Pi-hole: A black hole for Internet advertisements
I disagree. Technical solutions are largely preferable. Political solutions are feeble and can be changed on a whim.

If the NSA has the capability to sniff vast amounts of network traffic, encrypting that traffic is a much stronger defense than telling the NSA they aren't allowed to deploy the capability for the time being.

If Chrome insists on using its own DNS or removing the adblocking API for add-ons, one can just use another browser like Firefox that has the desired technical capabilities. Managing DNS lookups and HTTP requests are not "stopgap" solutions, they are basic functionality that any one entity can't eradicate.

mi100hael··on Study Finds Ultra-Processed Foods Drive Weight Gain
I've done something similar cutting "white carbs." For me that means grains & starches. I avoid bread, pasta, potatoes, rice, etc.
mi100hael··on Pluralsight will acquire GitPrime for $170M
Usually the Earnings part of P/E is 0 in startup acquisitions, so technically the P/E ratio is undefined. 25x revenue isn't unheard of, though. It's not that odd either if you figure out what angle the acquirer is betting on. Often it involves a mix of:

- opportunity to easily cross-sell to a new swath of the market - continuing to grow the acquired business - realize economies of scale that the acquired business were working towards

mi100hael··on MacBook Pro Keyboard Failures [Teardown and Explanations]
Cool teardown, but I'd be interested to see a disassembly of a known-bad key to compare and see what looks different.
mi100hael··on Sole Survivors: Solo Ventures Versus Founding Teams (2018)
> Being single founder has it's merit, but when things go south with your health or anything personal; you'll loose your company.

That sounds more like a risk of being a sole proprietor or one-person business. Lack of other executives is not the same as lack of other founders or even lack of partners.

Presumably you would not have found yourself in such a situation if you had someone you trusted who could assume day-to-day leadership in your place.

mi100hael··on Facebook is redesigning its core app
From the screen shots, it looks a lot more like Instagram now. I wonder how long it takes them to merge IG into the mothership at this point.
mi100hael··on Army Camouflage That Failed to Hide Its Soldiers
UCP camo blends in well in some areas... https://i.redd.it/68lxwxjrbe001.jpg
mi100hael··on It’s Hard to Learn French in Middle Age
I don't think news outlets usually include spelling corrections in their list of corrections at the bottom of articles.
mi100hael··on It’s Hard to Learn French in Middle Age
The Koch method of learning morse code addresses that by never introducing an intermediate visual representation of the dits and dahs.

Instead, you listen to audio sequences and transcribe them directly to the characters of your language. So instead of learning the language visually, you learn to understand the sounds which is far more natural.

There's a great free site that teaches morse code in this fashion if you ever decide to give it another go: https://lcwo.net/

mi100hael··on Ask HN: How do you stay disciplined in the long run?
Having a list somewhere like an app or a little notebook is hugely helpful in keeping you accountable every single day. I use a different app but I'll check out everyday.app :)
mi100hael··on Cops can force your finger onto an iPhone to see if it unlocks, says judge
I believe it's still checking for attention. The sunglasses probably aren't enough to completely obscure your eyes from the camera.
mi100hael··on On Oliver Sacks and His Obsession with Weightlifting
Man that bar is really bending! Any bar at a competition today would be barely flexing.
mi100hael··on They think they are above the law: the firms who own America's voting system
Voting is one of the very few use-cases I can think of where Blockchain would actually be a valuable and differentiating addition.
mi100hael··on Otonomo, with nearly $55M in funding, is cloning our product
https://web.archive.org/web/20190422133544/https://smartcar....
mi100hael··on Ask HN: One-person SaaS apps that are profitable?
Happy customer here :)

I recently visited my grandma and found a drawer full of envelopes with every photo we've ever texted.

mi100hael··on Samsung's folding phone breaks for reviewers
You could just leave it at

> Ferrari also play dishonest

https://jalopnik.com/ferrari-admits-to-knowingly-allowing-de...

mi100hael··on People Wearing AirPods Are Making Things Awkward for Everyone Else
Or a secret listening device, depending on where you leave your phone...
mi100hael··on How Apple, Google, and other tech companies conspired against their own workers
Hardly.

Settlements go to the plaintiffs, not the authorities. Plaintiffs have to agree to the settlement offer.

The plaintiffs could have gone to trial over this matter. They chose not to because fundamentally they must have perceived that the guaranteed settlement money was better than the risk that they walk away empty-handed. If the case was a slam dunk, the settlement would have been higher or they would have just gone to trial.

mi100hael··on Amazon's empire rests on its low-key approach to AI
There are already plenty of them...

https://www.google.com/search?q=blockchain+center+of+excelle...

mi100hael··on Ask HN: Non-VC backed founders, any tips on growth?
No, that would be insane. That's what LLCs are for.

Small business loans and private lenders exist and are usually accessible if you have profits and/or business assets.

mi100hael··on Amazon's empire rests on its low-key approach to AI
> AMAZON’S SIX-PAGE memos are famous. Executives must write one every year, laying out their business plan. Less well known is that these missives must always answer one question in particular: how are you planning to use machine learning? Responses like “not much” are, according to Amazon managers, discouraged.

I think company culture & talent make a big difference here. At most companies this would run the risk of poorly shoe-horning ML into a bunch of applications and making everything needlessly complex & expensive without seeing improved results (same goes for blockchain).

mi100hael··on Show HN: 300k lines of Java UI code running native in browser at desktop speed
I'd guess a lot of that sort of optimization happens at the framework/library level (React, Emscripten, etc) and less so in your typical application code.
mi100hael··on The MacBook keyboard fiasco is way worse than Apple thinks
The Dell Precision developer edition w/ Ubuntu from the factory is a great package worth considering.
← PreviousPage 3 of 29Next →