HNHacker News
TopNewBestAskShowJobs

3pm

143 karma · joined August 23, 2022

submissionscomments
3pm··on Fugitive Wirecard COO Jan Marsalek exposed as decade-long GRU spy
Yes, I think the chance to soft-land USSR into a democracy was missed by the West in the 90s. I don't see how the brainwashed population and their globe trotting elite will change their views now. It did not have to be this way.
3pm··on Fugitive Wirecard COO Jan Marsalek exposed as decade-long GRU spy
How much does he matter you think? After reading the article, did you get the impression that all the colorful characters will suddenly change their ways after Putin dies? It seems the whole thing is very very loosely organized. More Camorra than Cosa Nostra. They kinda off like reverse James Bonds, but not exactly.
3pm··on Fugitive Wirecard COO Jan Marsalek exposed as decade-long GRU spy
Is there a word that describes a very loosely organized but extremely powerful entity, that is kind of a nation state but also kind of a mafia and also kind of a business? Can it just be summarized as Putin's regime? But then it will function without him, maybe even more effectively. And its only ideology is the hate toward Western values (and love of the Western toys). What you call it?
3pm··on How I write HTTP services in Go after 13 years
AKA 'Value Object' from DDD or a similar 'Quantity' accounting pattern. Another angle is that this fixes 'Primitive Obsession' code smell.
3pm··on The Race Is on to Stop Ozempic Muscle Loss
http://archive.today/TcyqX
3pm··on Ozempic maker now worth more than $500B
A highly recommended podcast on a 100 year history of Novo Nordisk (along with diabetes and insulin): https://www.acquired.fm/episodes/novo-nordisk-ozempic
3pm··on The Worlds of Monopoly
I think Monopoly is mostly a game of luck. It is also pretty simplistic and unbalanced - just buy up everything you land on. Then, if not landed on complete sets, sit for an hour waiting to be drained slowly. Making feeble attempts to buy missing properties.

One rule modification can fix some of these issues: everyone is allowed to bid on a property that you landed on. It will go the highest bidder, so everyone gets an equal chance.

But anyway, there are much better board games these days.

3pm··on More Than Half of the World Will Be Obese by 2035, Report Says
An effort by Dr Robert Lustig and Kuwaiti Danish Dairy Company may be an example. Not targeted at obesity specifically but more general metabolic health: https://agfundernews.com/dr-robert-lustig-unveils-strategy-t...

Edit: Kuwait because it is small enough and has higher obesity rate than US (8th and 9th place as of 2016) https://web.archive.org/web/20071016062334/http://www.forbes...

3pm··on Show HN: Intuitive nutrition information
Have to comment since I've been listening to Dr. Lustig lately (https://youtu.be/dBnniua6-oM?si=6mS-3SKI7R4zOdYT).

The site shows that 1 can of Coca-Cola has fewer calories and less carbs than a medium apple: 90 vs 122 calories, 25 vs 30 gram of carbs. There is no other information, e.g no fiber content or added sugars section. Would this lead someone to believe, against common sense, that Coke is equivalent or even a healthier choice?

Edit: For those interested, here is a link to a similar system that contains more information (albeit not as polished): https://perfact.co:8443/Nova/

3pm··on Ask HN: Programming Courses for Experienced Coders?
This is a really good fundamentals resource: https://teachyourselfcs.com/ They list books and videos.
3pm··on Memory Models
And to include .net: https://github.com/dotnet/runtime/blob/main/docs/design/spec...
3pm··on USB-C head-to-head comparison
For those interested, there is a book with cross-section pictures of various circuits: https://opencircuitsbook.com/#oc-gallery
3pm··on Brandolini's Law
I think it can also be called 'Burden of proof' inversion. https://en.wikipedia.org/wiki/Burden_of_proof_(philosophy)
3pm··on Maybe treating housing as an investment was a mistake
No, it is basically 215K post taxes. Taxes are marginal. 300K couple faces ~28% _effective_ tax rate in California. Even marginal tax rate is far from the 50% you claim - it is ~36%. They will have to be making 2M or higher in order to be paying 50% effective rate.
3pm··on Demystifying bitwise operations, a gentle C tutorial
Great article. One potential improvement is not to call Two's complement MSB a 'sign bit'. It implies that it only stores a sign which is how 'Signed magnitude' works. With all its downsides like having two representations for 0 etc. The beauty of Two's complement is that everything works exactly like unsigned representation, with the exception of MSB. In Two's complement MSB contributes either 0 or negative 2^N-1. So for 8 bit signed numbers, most significant bit contributes either 0 or -128. Everything else, subtraction, hardware adders etc work the same. Signed numbers are basically numbers with a flexible number line, and the first bit represents where this number line starts. I personally remember MSB for signed integers as 'origin bit'.
3pm··on Want cleaner code? Use the rule of six
You seem to be fixated at knowing what objects consist of and you seem to stop at a fairly arbitrary level - primitives provided by the language (int, string etc). Why not go all the way down to bits? I find that a well designed Value object [0] makes me more productive because I specifically don't need to know how it is implemented internally, only the exposed interface. Examples:

ZonedDateTime

PhoneNumber

SocialSecurity

Guid

EmailAddress

Point

Url

ExpiredCoupon

Regarding one specific place, if I only need to know date time and its zone in one specific place, would you recommend Tuple<int, int, int, int, int, int, int, string> instead of ZonedDateTime?

[0] https://martinfowler.com/bliki/ValueObject.html

[1] https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDat...

3pm··on Want cleaner code? Use the rule of six
Please keep in mind that these were rules that you apply to a _toy_ project. You apply the rules once, blindly, even if they don't make sense to you at the moment. Then, when you work on a real thing, you may remember, for example, to create a dedicated PhoneNumber class with strict rules (e.g. E164) instead of a string that gets shuffled around with no one really knowing whats inside. Or you just forget the rules as a nonsense and move on.

You seem to be criticizing the 'rules' as if they are suggested for production code. You couldn't be seriously thinking someone suggest maximum-of-2-fields as some sort guideline for the real world.

3pm··on Want cleaner code? Use the rule of six
> Gah. I've seen the other side of this, a few people far too trigger happy to make FivePlusVeryLongNounVO/DTO for every little thing, and it gave me some new appreciation towards tuples and primitives. Sometimes you really don't want to go into another new file for an object type which is used in only one specific place.

The rules are an exercise for a toy project. Like all similar 'rules' they are just hints to make you think. When done with the exercise, and you see a string with a social security number in a production code, you may consider creating a dedicated SocialSecurityNumber class. The class will guarantee a well formed social security number according to official rules. The class may even offer Area, Group and Serial parts of the social as separate fields. The class may decide to use a string or integers internally, but that would never be exposed to the class consumers. All the code that uses SocialSecurityNumber will not have to guess whether string is valid, if it has dashes etc. The same reason you use built-in types like an Integer (as oppose to a tuple of 4 bytes or 32 bits).

3pm··on Object Calisthenics [pdf]
From author: Following these rules with discipline will force you to come up with the harder answers that lead to a much richer understanding of object oriented programming. If you write a thousand lines that follow all these rules you will find that you have created something completely different than you expected. Follow the rules, and see where you end up. If it isn’t comfortable, back off and see what you can leverage that is comfortable. You might find that if you keep working at it, you see code you are writing conform to these rules without any conscious effort on your part.
3pm··on Want cleaner code? Use the rule of six
Reminded me of 'Object Calisthenics' by Jeff Bay. Basically an exercise for a toy project where you adhere to 9 rules:

1. Only One Level Of Indentation PerMethod

2. Don’t Use The ELSE Keyword

3. Wrap All Primitives And Strings

4. First Class Collections

5. One Dot Per Line

6. Don’t Abbreviate

7. Keep All Entities Small

8. No Classes With More Than Two InstanceVariables

9. No Getters/Setters/Properties

https://williamdurand.fr/2013/06/03/object-calisthenics/

3pm··on Apple Watch Ultra
The article made me think that the screen will be more readable because it will be 'scaled bigger' and 'will see more content at a time'. I thought it was maybe due to 14x18 more pixels and/or they decreased PPI? Direct quote, emphasis mine:

=====

For the most part, though, you get the same on-screen content from WatchOS as on the regular Series models. You just see more at a time, like when reading a text message or email. ... But all the other WatchOS watch faces are more or less the same on Ultra, just scaled bigger.

=====

This is factually incorrect because watch faces do not appear bigger at all. PPI increased (326 -> 338)! Maybe if you look under a microscope? In regards to content, the watch sometimes shows less (!) content than regular Series watch. See this thread[0] for example when Ultra cuts off the sender's name in messages, compared to regular Series 7/8. This specific issue may get a software fix. But claiming 'bigger' watch faces and 'more content' is disingenuous. I think that early reviews of Apple products should be considered as an extension of their marketing machine.

[0] https://forums.macrumors.com/threads/apple-watch-ultra-displ...

3pm··on Algorithms for competitive programming
This is really good, it was originally in Russian, by Max Ivanov. Another site that now offers some interactive leetcode-like functionality is USACO (The United States of America Computing Olympiad)[1]. Among other guides, they reference Competitive Programmer's Handbook (CPH) by Antti Laaksonen[2](PDF)

https://usaco.guide/

https://usaco.guide/CPH.pdf

3pm··on The Changes for the 2nd Edition of “Code”
Check out Computer Networks From Scratch by Seth Archer Brown (work in progress). Once finished, could be considered a Code Volume 2.

https://www.networksfromscratch.com/table_of_contents.html

3pm··on Our screwdriver took three years [video]
Aside from Wera and Wiha, would be interesting if someone did a comparison with a PB Swiss. More expensive and harder to get in US, but should be very high quality: https://www.amazon.com/PB-Swiss-Tools-8510R-30-Twister/dp/B0...
3pm··on Our screwdriver took three years [video]
https://www.kctool.com/
3pm··on Poll: Contractors, what is your hourly rate
Yes, I think it is a tradeoff between the two. Since this thread is about individual contractors (not big consultancies), for customer it might be easier to control hourly rate contractor. Because it is easier to spot if someone is creating extra work. As opposed to assessing whether a final project not only works, but is up to customer's quality standards (whatever those might be).
3pm··on Poll: Contractors, what is your hourly rate
From a customer perspective, with a fixed bid, isn't contractor incentivized to cut corners? Especially because software 'quality' is so subjective and hard to asses (comparing to a bathroom remodel for example). Is project billing mainly used for auxilary, non critical, work? E.g. build a static website for a company that sell shrink wrap software, not the core software itself?
3pm··on Apple M2 Pro to use new 3nm process
You are probably right. But computers were not like that for the last 40 years. I wonder about alternative history without IBM PC Compatible. Maybe we just hit the performance wall and now the only way forward is system on chip. Anyway, better move on and start thinking about your computer as an appliance.
3pm··on Apple M2 Pro to use new 3nm process
I think that is what the parent meant by feeling left behind. It is either Apple or something underwhelming like ThinkPad with Snapdragon.
3pm··on Apple M2 Pro to use new 3nm process
I think the concern is there is currently no 'IBM-compatible'-like hardware ecosystem around ARM. Raspberry Pi is closest, but nothing mainstream yet. And it looks like RISC-V will have a better chance than ARM.
← PreviousPage 2 of 3Next →