HNHacker News
TopNewBestAskShowJobs

kidmenot

237 karma · joined March 10, 2011

https://mioli.dev
submissionscomments
kidmenot··on California's Last Nuclear Power Plant to Be Shut Down
As a non-native speaker myself (Italian), I too often notice what seem to be patterns in other non-native speaker's English writing that seem to be typical of some larger geographical area (eastern Europe, northern Asia, southern Asia). Though I can't put my finger on it and say exactly what those patterns look like, nor pinpoint where the writer's mother tongue is, I can usually tell that something is off in a certain location-specific way. It's interesting and, to a certain extent, a fun exercise. It's a pity that I'm too lazy to sit down and compare samples of writing from different areas and come up with an organic and formal description of what I'm noticing, assuming that's even feasible without being a linguist and well-versed in all the languages involved.

No offense intended for the author of the parent comment, I hope he won't take this the wrong way either!

kidmenot··on .NET mocking frameworks, a comparison
Same here. If all projects were like NSubstitute and Dapper I would be much, much happier.
kidmenot··on I Was Wrong About TypeScript
Great answer, I feel the same way. Let's not forget the documentation, way too abstract. Probably the result of an overengineered framework.

Sadly I'm stuck having to deal with it, and I can honestly say I hate it and it makes me want to cry. Might have to do with the way it was used, though. I find myself having to write a directive each time I have to populate a fucking select2.

kidmenot··on Pastejacking
> I do. That's probably why I won't be running an effective business any time soon. Being nice and not fucking people over doesn't get you far in highly competitive markets.

> lying to people to make them buy your stuff instead of something objectively better is fucking them over for your own gain

Thanks, this needed to be said. I'm in the same position. I will probably never be able to run a business either because I hold these same views.

kidmenot··on CryEngine out on GitHub
14 levels of indentation across 811 lines. Wow indeed.

I refactor as soon as my code gets past 3 levels, I don't know how one is supposed to readily understand this block of code.

The lack of comments isn't what troubles me. Comments get old and, when they do, they get completely misleading and downright dangerous. As soon as you feel the need to add a comment, it's often because that particular chunk of code should be extracted into its own function/method/whatever and given an intelligent name. Comments should be reserved for really important stuff, like when the code does something totally non-obvious.

kidmenot··on The epistemology of pizza
True that :) Yes, dialects change even from my hometown to the next, which is at about 30 km. They have a similar but different word for "Thursday", for instance. Not to mention the change in accents within the same province.

This kind of richness is going to get lost as fewer and fewer people are taught the dialect of their own region (I reckon many parents think it is "uncool" or something), but I'm getting off topic :)

kidmenot··on A site that generates regexs based off examples given
I'm not affiliated in any way to this project, but there's no need to be a dick about a poor result you got, mostly because you are clearly showing that you didn't read the instructions given on that same page at all.
kidmenot··on The epistemology of pizza
https://it.wikipedia.org/wiki/Cazzo

Look for "Puglia". Looks like what I said is true for Taranto, but my ex girlfriend was from Brindisi and she was the one who told me about this.

Might depend on whether you actually speak dialect, methinks.

kidmenot··on The epistemology of pizza
To complicate the matter, if you ever find yourself in the Italian region of Apulia (and possibly other southern regions), you should say "focaccia" even though you really mean "pizza", because "pizza" stands for "penis".
kidmenot··on Nestlé Wants to Sell You Both Sugary Snacks and Diabetes Pills
This is not a case of "good for you", it's just that I find it sad that locals of a developed country have to choose to drink bottled water over tap water because the latter could harm their health.

That being said, for travelers it sure might take a while to adjust to local conditions. I never had such problems when traveling to Spain, Austria, France, Hungary and Slovenia, but I do understand that each body copes differently with things it's not used to.

kidmenot··on Nestlé Wants to Sell You Both Sugary Snacks and Diabetes Pills
> is tap water safe to drink?

As someone who lives across the pond, it never ceases to amaze me that this question needs to be asked at all. Is tap water safe to drink? I wouldn't take "no" as an answer unless I'm in some remote third-world country that has known issues with the availability of drinking water. And yet...

Not saying tap water here tastes great everywhere (far from that), but you can be pretty sure it won't cause you any physical harm.

kidmenot··on “Ask 'why' five times about every matter”
> people tend to talk about solutions and not the problems

Hard to make this any clearer. To expand a bit on this, most of the times the solutions they talk about are of course expressed in terms of what they already know, which makes communication that much harder. It's a key aspect to keep in mind, and one that ideally both parties, but at least the one that's taking the job, needs to be aware of.

Otherwise it's like visiting a physician and telling them the diagnosis instead of the symptoms.

kidmenot··on Microsoft no longer allows admins to block Windows Store access in Win10 Pro
> People want to give Microsoft money, but Microsoft is intent on making the entire thing as painful as possible and their licensing as obtuse as possible.

This.

I don't know if this is still the case, but a few years ago I bought an MSDN subscription, and it took weeks. I could never figure out why they made it so difficult, nor why they forced me to go through partners. Just add a subscribe button on your own website, let me pay and be done with it. How you handle distribution is not my business (and I reckon distribution is not an issue anymore, since I think nobody chooses to have CDs delivered instead of downloading what they're interested in).

Again, this was a few years ago. I hope by now they have fixed this process, because it was completely broken.

kidmenot··on Does the Database Community Have an Identity Crisis?
That's a great analogy, I'm totally with you on this one.

ORMs are painful, I only use solutions which help me reducing the amount of boilerplate code to map data to domain objects (Dapper being a great example in .NET land), but I really prefer writing my queries and seeing them at a glance (however ugly they may look when inlined) without having to actually run the app. Plus, SQL produced by things like Entity Framework is not really readable with all those "extent1", "extent2" and so on.

In addition, ORMs tie you to the lowest common denominator so if you want to take full advantage of, say, jsonb in PostgreSQL you're out of luck.

I mean, in principle they're great, and they will theoretically allow you to switch database engines but, according to my limited experience, that is not such a frequent occurrence.

The thing is, they come with too many hidden costs, and I never bought the "no need to know any SQL" argument to begin with, as I really think a decent command of it is part of the fundamental abilities of a developer.

kidmenot··on Email Isn’t the Thing We’re Bad At
True but, all the same, drunk/stoned people equipped with phones are very dangerous for your privacy. They are actually dangerous whether they are drunk or sober, especially if they are clueless about Facebook's privacy settings.

Mine are set in such a way that you can't add me as a friend if you're not already friends with a friend of mine. If we then are friends, you can't post anything to my wall nor can you tag me in any way without my consent. Granted, the picture will still be there (and possibly visible by anyone if it was posted by one such clueless individual), but then again deleting your Facebook account won't magically erase all the pictures you appear in either.

The actual problem is that any idiot has a smartphone and a Facebook or Instagram account. And they take pictures. And post them.

There doesn't need to be any aunt following your friends. A cousin is more than enough. And there are countries where related families tend to be scattered over a relatively small area, so having friends in common between you and your relatives is but a rare occurrence.

kidmenot··on The Hedonic Treadmill
And, if I may: what does 7% happier, 20% increase in life satisfaction exactly mean anyway? My 5% might be or feel very different than someone else's.

See, I have a hard time with all this self-help stuff. What's so difficult about it that needs hundreds of books and blogs to be expounded?

You either want to do something or you don't. Be grateful for what you have and try to improve a little at a time. Remember that everyone is out to get money from you. Try really hard not to be an asshole.

Seems like common sense to me, and everything else feels like a lot of unnecessary junk.

kidmenot··on BMW Loses Core Development Team of Its I3 and I8 Electric Vehicle Line
IANAL but, as far as I know, e.g. here in Italy things work like this: assuming you decide to leave your day job to found your own company meant to compete with the company you were working for, your former employer could theoretically sue you if you found your new company within 5 years of you leaving (at least this is what I remember). To work around this, you could pick a partner and make them the head of the company. This could also work in spite of non-compete clauses, which I think many companies consider as overkill anyway.

As far as laws preventing your from moving from a company to a competing one go, I really don't think we have anything like that. Same goes with taking old employees with you if you move to another company. Which is a Good Thing, if you ask me, because if people decide to walk away it's probably because they are sick of it or found something better/better paying/more interesting, and law preventing you from moving someplace better would be preposterous, IMHO.

Of course, this "lack of regulation" might have to do with the fact that the vast majority of contracts are of the collective type and not tailored to your particular company, meaning that you work under the same conditions as most of the other people doing your job.

According to my limited experience, a company drafting up its own contracts is a rare occurrence.

kidmenot··on Ask HN: Do you use either C# or Java in your professional work?
C# has been paying my bills for quite a few years. I hail from Italy, though.
kidmenot··on Brutalist Websites
And, and... are we not going to talk about how he chose the words so carefully that there is not a single hyphenated one, making every line the same length?

Am I missing some obvious shortcut to it or is this guy actually good?

kidmenot··on The engineer’s engineer: Computer industry luminaries salute Dave Cutler
He's a great engineer and, together with his equally great team, he designed what turned out to be a great kernel powering countless machines around the world.

There is very little to hate about the actual NT kernel.

Kudos to Dave, instead.

kidmenot··on Why learning Haskell/Python makes you a worse programmer (2006)
Correct, in 2006 there were no LINQ, extension methods and a number of other great improvements which kind of makes the article less valuable.

Not that it was terribly valuable to begin with: as a programmer, using the language at hand to write code that 1) works and 2) is as clear as possible is exactly your job.

Emulating other languages because of feature envy is really stupid, the first C# snippet is a prime example of this. I would not want to work with someone who deliberately makes the code harder to read in order to mimic his/her own favorite language. Every language has its idioms, just learn them and quit bitching.

As a side note, the example chosen was particularly poor because, if the collection contains a huge number of items, concatenating them without a StringBuilder in .NET land is a terribile idea.

kidmenot··on Micro-engraver who works between heartbeats to keep his hand steady
Absolutely! I didn't mean to be disrespectful, I actually think this is beyond awesome. I greatly admire an individual capable of perfecting his craft enough to be able to carve a famous painting on the cutting edge of a razor, as I admire any craftsman building fine things.

It's kind of sad that he has to take medications to slow the heart rate down and get botox injections around the eyes to reduce blinking, though. I figure all of that must be taxing on his body.

kidmenot··on Micro-engraver who works between heartbeats to keep his hand steady
Wait... this guy actually engraved Leonardo's "The Last Supper" along the edge of a razor.

At first I was hoping that, being a non-native speaker, I misunderstood something. But no, it's really the cutting edge we're talking about here.

This is crazy. I mean, the fact that you need a microscope to look at this kind of art makes it seem more of an exercise in style than anything else, but it's still awesome that someone is able to carve the freakin' edge of a razor.

kidmenot··on Can Handwriting Make You Smarter?
Same here. As a programmer, whenever I get stuck I grab my notebook, a pen and start breaking down the problem in even smaller steps. By the time I get to the second or third bullet point, everything is clear again and I can even stop writing.
kidmenot··on Terrible choices: MySQL (2014)
I would be happy to be proven wrong (thankfully I have dealt exclusively with Postgres in the last two years or so), but I think most of the warts and shortcomings the post talks about are still extant.

Off the top of my head, I can add that you can't have subselects in views (which is preposterous), nor can you materialize views. Also, I don't believe you can have function-based indexes, and most certainly you can't pivot tables easily and CTEs are not supported.

I think 5.7 (if it's been released) finally brought the ability to create multiple triggers for the same event. Until 5.6 you could specify only one.

In short: MySQL is no fun. Choose Postgres or any other decent system, but just steer clear of the damn dolphin.

kidmenot··on How to beat writers' block
Thank you for pointing this out, never heard of them before.
kidmenot··on Baltimore psychologist pioneers team using psychedelics as ‘sacred’ medicine
Question here, even though I don't intend to do it: I recall having heard that, if you do LSD, you can have a small trip again unexpectedly even years later. That would scare the shit out of me, suppose it happens while you're driving.

Is that true at all? Or is it just another myth?

kidmenot··on Expand Your Programming Vocabulary (for Beginners)
And indeed the Angular documentation does not help at all. It's awfully abstract, and I always had the impression it's trying its best to avoid telling you what you actually need to do in order to achieve X, for most values of X.

This kind of non-documentation, coupled with the fact that Angular is IMO overengineered, drives me crazy.

kidmenot··on Linux kernel dev Sarah Sharp quits
Why would it be impossible to have both?

"Your contribution does not fit our current guidelines. Please read CONTRIBUTING.md and feel free to ask if you have any further questions."

comes across very differently than something aggressive.

You're telling the contributor that his/her work does not conform to the project's standards without being an asshole.

I don't see where the difficulty of treating other human beings with some respect resides.

kidmenot··on Upsert Lands in PostgreSQL 9.5 – A First Look
Norm looks very nice, thanks for posting. I haven't had a chance to look at the internals, but do you think it could be ported to C#?
← PreviousPage 2 of 4Next →