HNHacker News
TopNewBestAskShowJobs

andresmanz

219 karma · joined May 30, 2015

submissionscomments
andresmanz··on Let’s sunset C/C++
> But we also have to acknowledge that we as a profession are not able to write secure code in C/C++.

Then you've picked the wrong profession. You write that like it was a fact, while it's obviously nothing more than a lack of skill (and maybe knowledge) on your side.

If I chose a language primarily because it's 'safe', that would mean that either I'm pretty bad at writing safe code, or that I'm just unnecessarily lazy.

andresmanz··on Ask HN: How do you deal with getting older?
> I don't retain entire 1000 LOC programs in my head any more.

> Proper nouns are especially tough to recall (famous names especially).

Well, why should you retain entire 1000 LOC programs in your head? If it's not to make fast navigation through a code base possible at all, that's unimportant information. And is it important to recall these names? You should keep in mind that your brain gets better at prioritizing over the years. And prioritizing can be very effective - since I was 18 I've only memorized names of people I met more than two or even three times.

andresmanz··on Announcing Rust 1.2
Sorry, I didn't make it clear enough. I was primarily referring to code formatting. Spaces instead of tabs, for example, or not writing opening curly braces on separate lines. These things are a matter of taste and should be friendly recommended at best. Guidelines for idioms are important and should occur as early as possible in the book, so that's perfectly fine.
andresmanz··on Announcing Rust 1.2
For me it's not really the freedom. I already said that elsewhere, but: I don't mind when the compiler yells at me. I just don't like the compiler to criticize my coding style by default. Initially, I liked Rust because it reminded me of C++. But then I began reading the book and basically it was full of statements about the coding style I prefer (and will keep) being bad. That's an incredibly stupid reason, but it kind of keeps me away from the language. But it's also the fact that C++ still is very widespread and has tons of libraries.

I wouldn't say never, of course. I'm looking forward to using Rust. Just not now.

andresmanz··on Women, Tech Conferences and the Bullshit Surrounding It
Same here. I wouldn't even be interested in tech jobs other than programming. I don't care about the money. Two years ago I even turned down a promotion to the manager because all I wanted to do was (and is) coding. Also, the original commenter implies that the average man and woman have the same (tech) interests, which is simply wrong. The average man and the average woman are not the same.
andresmanz··on Vim: Takeaways from One Year of Typing
I've read the name a few times and people seemed to be happy with it, so I gave it a try. I liked it immediately, not least because of the simple but powerful customization. To be honest, I haven't tried any other TWMs yet, but I will soon.
andresmanz··on Vim: Takeaways from One Year of Typing
Exactly. Recently, I switched to i3[0] and Vimium[1] and it's just wonderful. Now I'm way faster than before and hardly ever use the mouse.

[0] https://i3wm.org

[1] https://chrome.google.com/webstore/detail/vimium/dbepggeogba...

andresmanz··on More Dirty Coding Tricks from Game Developers (2010)
What people like him don't get is that const is not only about security. It also documents the intents behind the code and thus makes writing new code around it easier. Const really helped me thinking about better designs when I started coding in C++.
andresmanz··on Gtkmm now uses C++11
That must be annoying. Why can't you switch to C++11/14?
andresmanz··on Living in Switzerland ruined me for America and its lousy work culture
It's too expensive.

In regards of programming jobs, sometimes it's like living 40 years ago.

Racism is annoying, but normal here. And you must be proud of being Swiss.

Switzerland is tiny. Finding (and keeping) friends here can be hard, because if you even dare to fart, the whole village knows about it within seconds.

And you shouldn't use your brain too much, so you can keep up with the others. But I'm pretty sure that doesn't only apply to Switzerland, so you may safely ignore this one.

andresmanz··on Living in Switzerland ruined me for America and its lousy work culture
Living in Switzerland ruined me for America, too. Depending on where you grow up, it's like being put in a box full of old, silly stuff, whirring through a giant universe of interesting things. Breaking out of it can be very hard.
andresmanz··on The adblocking revolution is months away
> success speaks for itself

Our experience as developers should tell us that this isn't true. Success often implies popularity, and popularity is not a very good indicator for quality.

andresmanz··on Newegg vs. Patent Trolls: When We Win, You Win
> An example of this is Sovereign who bought the rights to a shopping cart.

If anyone wants to google them and can't find anything (like me), that's because the name is Soverain, not Sovereign.

andresmanz··on JerryScript – A JavaScript Engine for Internet of Things
That's a very important point. As an unexperienced developer, you can learn C in a few weeks. Then spend another few weeks on learning how to write clean, maintainable code. I wouldn't want to work with people who don't even want to do that. You already named the most appropriate tools (Assembler, C, C++, and Forth), and learning at least one of them is very easy.

Pick the right tool for the right job. That's what I read all the time. The current approach of 'the industry' is porting JavaScript to just about everything, which is insane. But, you know, learning JavaScript is simple and that's what matters! Well, JavaScript isn't that simple. But writing insane, ugly code and making it run by accident is easier in JavaScript, for example, than in one of the more complex languages.

I've seen things. Things I couldn't imagine in many other (static) languages, because it wouldn't even compile. Things that let me ask 'how did you even get this job?' over and over again.

andresmanz··on Why I give my students a ‘tragedy of the commons’ extra credit challenge
I'm sorry, I assumed you're not allowed to organize. You're right, of course, at least if everyone in the group is reliable.
andresmanz··on Why I give my students a ‘tragedy of the commons’ extra credit challenge
> I’ve been giving it to students since 2008, and only one class has successfully mastered the challenge.

That's a real surprise. The 2 points option is the safe one, so everyone should go with that. Sure, I could assume that all (or most) of the other students think so and just get the 6 points myself. But then again, chances are that the other students think the same. So let's just go with the safer 2 points.

andresmanz··on How we took our tests from 100 seconds to 100ms
It's version 43.0.2357.93.

I don't think it's your fault, though. Chrome loves crashing and throwing away all of my research tabs. That wasn't the first time. It's only the first time I could reproduce it with a specific website. Still, as I said, I don't think it's your fault.

I'll just finish reading the article when I'm back at my PC. Test optimization is a great thing.

andresmanz··on How we took our tests from 100 seconds to 100ms
I don't know what it is with this site, but it made Chrome (Android) crash four times already. Which means that, thanks to that wonderful browser, my two billion research tabs are gone since the first crash.

Anyway, I can't imagine how running unit tests could possibly reach 100 seconds. Usually, that means that the tests are coupled to the environment (database, filesystem, ...). So without being able to read the article, that would be my guess. There are tons of good (and old) reasons why you should decouple unit tests from the environment as much as possible. Execution time is only one of them.

andresmanz··on Estimate the cost of a Web, iOS or Android app
Finally I get to read something like that. I'm not even a native English speaker, but non-sexism would be reading 'man-hours' and implying that men and women are meant, not differentiating both. After all, 'man-hour' is a not a new term that excludes women, like someone else already pointed out.

I'm very sure that excluding women wasn't their intent.

andresmanz··on Ask HN: How do you stay sharp?
I wasn't interested in studying at a university, so I have plenty of things to learn. I usually work from home and I learn a ton every day. That's primarily because I always have a book or two around and read about new stuff on HN. Luckily, the world of programming is huge, so there's always something to learn. In my opinion, at least reading a book on general programming is beneficial to everyone, especially managers.
andresmanz··on JavaScript developers are incredible at problem solving, unfortunately
Maybe it's because of that attitude of forcing JavaScript upon everything, instead of simply using the appropriate tools. That's what I expect from people like this comment writer, and that's what causes that digging in the comic.
andresmanz··on I Spent Spring Break Teaching Girls to Code
Back then at school, I held a presentation about a simple calculator I wrote. I explained them my code in the hope to make programming more interesting. They _were_ interested, but it turned out that, in the end, I was the only one to take an apprenticeship as a programmer.

Then in my apprenticeship, we had one single woman in our class. As far as I remember, she only took that apprenticeship because of her father, who was the boss of some IT company. She quit it after three (of four) years. And no, there wasn't even one single comment regarding her being female.

The other girls at that tech school looked at us in funny ways, sometimes saying things like "Oh look, these guys must be the strange programmer nerds! OMG!" - which was funny, because we usually acted more "normal" than they did.

I don't know what it's like today. It's been about six years since then. But at least back then, the women here simply weren't interested in programming. I got to know two female Swiss programmers until now, and I haven't heard from both of them for more than 5 years now.

andresmanz··on The cat's miaow
I think that would be "nya" or "nyan", then.
andresmanz··on Things Rust shipped without
Yes, you're right, of course.

Maybe I could at least try, yes. I mean... It's kind of silly, I know, but that would already change the way I look at Rust.

andresmanz··on Apache Cordova: after 10 months, I won't using it anymore
> I must admit, I'm still quite enamored with them, if only for development time and maintainability.

That's a very good reason for many developers. My UI code is usually rather small, with the C++ code being the biggest part. I really like C++ and Java, and Objective-C is OK. I'm pretty sure if I didn't, I would take a different route.

I'm still pissed off because loading in Qt apps can take very long. Writing the apps in QML, JavaScript and C++ was a lot of fun, but I couldn't recommend anything that destroys the UX so much.

andresmanz··on Apache Cordova: after 10 months, I won't using it anymore
I thought that would make sense, too. But I found them to be working OK in Chrome on Android, so I thought I could give it a try.

I should have said that I wouldn't create any hybrid mobile apps anymore, not just Cordova. That's not because I don't like it - it's simply because the other options work just as good for me. At least for now - can't say anything about the future.

andresmanz··on Apache Cordova: after 10 months, I won't using it anymore
I tried Cordova three weeks ago, on my Nexus 10 (Android 5.1.1). I wanted to have a native UI, so I tested angular-material and Polymer. I wasn't too happy with the result, due to stuttering animations kind of ruining the UX.

Having a shared C++ code base and the respective native UI code works perfectly fine for me, so I wouldn't use Cordova again. I don't see why I should. I'm just as productive there as I am with the web stuff, with the difference that I get a truly native look and feel, without having to watch performance all the time. I'm sure that, if you want to take the time, you can get perfectly well running apps. But for me, it isn't worth the trouble.

I also tried Qt and it was nice, but the app took ages to load on an actual devices (because of QML) and their licenses get more and more messed up.

andresmanz··on Things Rust shipped without
On the whole, it's that arrogance that keeps me away from Rust - for now.
andresmanz··on Things Rust shipped without
Come on, even that flag's name is ridiculous. They basically say, for example, that writing camel case, which is the preferred style in most of the projects I've seen, is bad style. Do they like being unnecessarily antipathetic? People think about their personal preferred style for years, and they have very good reasons for choosing them. And in _many_ cases, it's exactly the style that's called bad by Rust's creators.

How about making it the opposite, '#![allow(default_style)]'? Or at least '#![allow(non_default_style)]'?

andresmanz··on Things Rust shipped without
You can say that it can be an objective fact, though, that the majority of 'good developers' considers all that stuff poor style. Which is what I get from reading that book. If they don't intend to imply that, they should write it in a different way. The authors of various other books on various other programming languages are able to do that.
← PreviousPage 2 of 4Next →