HNHacker News
TopNewBestAskShowJobs

ivanche

2,465 karma · joined February 14, 2014

Object thinking, OOP, OOD, TDD, Java... Investing, personal finance... Weightlifting, strength, powerlifting... München (now), Belgrade (before)...

2a771933ef33b64a35c466ddc66d459eae1bbd62eec481c901f1316d60c13e32

submissionscomments
ivanche··on Minimalist dependency injection in Python (2021)
I agree with you completely! As the matter of fact, I prefer this approach. But that is dependency injection at its finest, and something that NewMountain above said is "cognitive overhead" and "indirection".
ivanche··on Minimalist dependency injection in Python (2021)
What do you suggest instead? new operators everywhere? Service Locator? Global Singletons everywhere?

Honestly, I don't know how you came from "my object needs objects A, B, and C to work" to the "it's cognitive overload". Your object still needs A, B and C to work, just with any other approach it's implicit which is spooky action at a distance in its finest and way more cognitive load.

ivanche··on Minimalist dependency injection in Python (2021)
Beautiful article by Mark Seemann on composition root [1]. Another one on when to use DI container [2].

[1] https://blog.ploeh.dk/2011/07/28/CompositionRoot/

[2] https://blog.ploeh.dk/2012/11/06/WhentouseaDIContainer/

ivanche··on Now that computers have more than 4MB of memory, can we get seconds on taskbar?
Just install 7+ Taskbar Tweaker [1] and check "Display seconds on the tray clock". As a side bonus you get full control of your taskbar. Works like a charm.

[1] https://tweaker.ramensoftware.com/

ivanche··on Sounding the alarm: How noise hurts the heart (2021)
Anecdata, but another case here. I wear them approx. 6 months per year because of knocking heating sounds. Anyway, doctor recommended to do ear cleansing once a year and it helped, maybe 80% of the ringing sound is gone. Earplugs caused all the grease to end up compressed and deep in the ear canal. After a while it blocked signal transmission through the auditory nerve enough so that my brain thinks there's no audio input and it starts compensating with these imaginary ringing sounds.
ivanche··on Mortgage rates just hit 5%. Buying a home has become a lot more expensive
I don’t have hard data on this; however, I believe that cash buyers are minority, maybe even significant minority. It would be awesome if someone could share concrete numbers on this.
ivanche··on Mortgage rates just hit 5%. Buying a home has become a lot more expensive
Home prices will just go down soon so that average monthly payment for new buyers stays about the same as for the old ones with "high home price" + "low rate" combo. Of course, in a transition period a handful of people will be unlucky enough to be stuck with "high home price" + "high rate" combo.
ivanche··on Unit Testing is Overrated (2020)
If you write code that is not testable, how do you test it? What you propose is false dichotomy really. Code that isn't testable is almost always confusing, large, hard to work with etc.
ivanche··on Twitter is using its embedded JavaScript to hide tweets that have been deleted
Hey Victor, would you mind sharing that piece of code?
ivanche··on Proposed EU rules would require clothes to last longer and be easier to repair
Well that was the idea behind this, right? To make todays "fast fashion" tomorrows "slow fashion".
ivanche··on I'm a scam prevention expert and I got scammed
This x100! And call them back from a different phone, just in case.
ivanche··on Google terminated our Developer Account, says it is “associated”
Speaks Persian, went to Tehran University, has Iranian name.
ivanche··on Developers spend most of their time figuring the system out
What about these videos: https://vimeo.com/496004749 and https://vimeo.com/498735070?
ivanche··on Google terminated our Developer Account, says it is “associated”
Hah, it seems you’re right! This is OPs LinkedIn profile https://www.linkedin.com/in/nadalizadeh/
ivanche··on Justice Stevens reads the fine print
OMG, that’s him! No wonder this site looks simply beautiful. Also, he wrote a book on typography for lawyers: https://typographyforlawyers.com/
ivanche··on JEP 419: Foreign Function and Memory API
Please note that this is only second incubator. After that will probably be third incubator, preview, second preview, maybe third preview. This will not land before Java 23 or so.
ivanche··on Madeleine Albright has died
In hell she’ll be in good company!
ivanche··on Applebee’s exec urges using high gas prices to push lower wages, sparks walkout
Spot on. What zoning proponents miss is that people living and people working and people doing sports etc. are the same people. Zoning is equivalent of a spherical cow in a vacuum and would work only if there are people that work 24/7, then those that live 24/7 etc.
ivanche··on Applebee’s exec urges using high gas prices to push lower wages, sparks walkout
sokoloff was talking about rising rates, not rising rents. And I agree completely, when interest rates rise money is more expensive, thus credit/mortgage has more interest, thus people can’t afford that much of a property price for the same monthly installment, thus property prices are going down.
ivanche··on Cooking for Engineers
I wanted to make something similar for years, just with more focus on timing and multi-threading :) I really cringe when I read recipe for normal people and it says something like "Chop ingredients A and B and put them into bowl. Now add previously prepared mixture of C and D.". I mean, just tell me first to mix C and D, not in the middle of the process. Lazy initialization is not always good :) The same thing when the recipe tells "and now put all of that into preheated oven". Great, now I have to wait for 15 minutes until oven heats. That should be done on the first thread which waits on a barrier until I finish with the dough in the second thread.
ivanche··on DEV-0537 targeting organizations for data exfiltration and destruction
Yup, for sure Serbian and Croatian.
ivanche··on Tell HN: Did you know you can negotiate price on many things?
So the locals can’t work on something else in the off season?
ivanche··on Mozilla and Open Web Docs Working Together on MDN
Not to defend w3schools but it seems you linked to some very old version of their site. This is the current About page: https://www.w3schools.com/about/default.asp
ivanche··on An AI designed keyboard layout (2021)
They need to check marketing copy. "500% less keystrokes" is mathematically impossible. "80% less keystrokes" is.
ivanche··on My next main browser: a review of Orion
Definitely works out of the box. Cmd+Shift+S on Mac.
ivanche··on A beginner's guide to intermittent fasting (2012)
For me it noticeably did. Less carbs => better focus. Of course, anecdata, YMMV etc.
ivanche··on Slovio, an international simplified Slavic language
As a Serbian, Interslavic seems much easier to read and understand than Slovio.
ivanche··on MDN Redesign
I’m almost sure this was done for accessibility reasons. For some people, red and green are the same color.
ivanche··on Longbet: By 2027, software will be metered/sold by the second
Dozens of commenters disagreeing here yet still no challengers on Longbets site…
ivanche··on Ask HN: Any scientifically proven techniques to boost concentration?
Just to add, it is possible to gain weight while doing intermittent fasting. You just have to eat more :) Maybe add a meal so you don't eat 3x a day but 4x. The other tactics is to add 50g of some nuts to 2-3 meals a day, like walnuts, almonds, cashews...
← PreviousPage 6 of 20Next →