HNHacker News
TopNewBestAskShowJobs

mdup

283 karma · joined August 29, 2013

Machine Learning PhD
submissionscomments
mdup··on Ask HN: I am busy with too many things at once
In my case it came in two steps:

1. Learn GoF design patterns. Be amazed by the cleverness.

2. While learning others languages, discover that other approaches remove the need for GoF design patterns at all.

Example: Visitor isn't needed in a language with double dispatch (like Lisp). Chain-of-Responsibility is just foldl. Factory for dependency injection is just a closure or a partial function. And so on.

mdup··on How to Become a Great JavaScript Developer
Indeed. Personally I'm used to think in functional ways: map, fold, function composition, immutability... I'd like to be good at Haskell but I'm always having lots of pain dealing with it, because I never see the end of the learning curve.

I've found JS to be a nice middle land where I can get productive functionally without too much hassle. It's like a good friend who understands my way of thinking without being in the way too much. Underscore.js hits the sweet spot for me: _.chain(...).map(...).filter(...).value() is verbose but surprinsingly readable. I'm not a fan of Python map() syntactically, and I absolutely hate C++11's std::transform.

mdup··on The responsibility we have as software engineers
Before Rust, it could be said that Haskell has the same philosophy of ensuring almost everything works at compile-time.

Anyway, I hope for a future where programmers will be able to specify all contracts, invariants, etc. in code, and have them be checked upon compilation. And not only for "smart" programmers, but the pretty bad ones, too.

mdup··on Rust Programming Language Book
I personally prefer the Rust documentation as a comprehensive reference than the cover-to-cover design of a book such as The C++ Programming Language. (As much as I prefer cppreference.com rather than Stroustrup's book.)

The Rust book is intended to be a quickstart to reading and writing Rust code. However it's when you start perusing the std crate docs that you really learn how to efficiently use the language.

Bonus points for the "src" link in the Rust docs. It always hurts when I have to read C++ stdlib implementation -- but I find Rust's stdlib source a quite pleasant read and a good source of examples.

mdup··on C++17 Fold Expressions
It seems very ironic that C++ adds more rules to the language in order to get less cluttered code.

This "..." syntax, which probably won't be used a lot of times, will be nice because you'll understand intuitively what the code does at the first sight. And that's good. However, you'll have to spend the rest of your time dealing with the surrounding code: templates, iterators, move-semantics double-amperstands, std::forward and other subtleties of modern C++.

(Note: not being negative here, I actually do enjoy C++; I'm just staring at the giganormous complexity of the language.)

mdup··on Announcing Rust 1.0
Several beta versions have been announced before, but this time, we're talking about the first stable version.
mdup··on Death to C
And if you ever want to learn C++ later (C++11 specifically), you'll have a big chunk of the work already done. Rust's move semantics are very helpful to understand C++ smart pointers, for example. Also, lambdas/closures. You'll also miss how you were babysitted (in a good sense!) by the Rust compiler, whereas C++ does not care if you mess up with dangling references!
mdup··on Smarter saved cards
I don't want this feature enabled for me as a customer. Most of the time I go on my bank's website and generate online credit card numbers with a ceiling amount. Those come with a fixed expiry date (usually very soon, one month after card is created). I use this to be sure that I don't get trapped into a recurrent payment that I would have missed in the fine print.

How can I make sure that an online shop will not be able to draw money off my card after the expiry date? If I understood the technical magic here, that would help.

mdup··on Ask HN: Do you prefer to learn by watching videos or by reading books/articles?
Reading. In college I discovered that I just don't have the brain wired to absorb knowledge from someone talking. This is not just about videos but also about teachers in front of a class. When there is difficult stuff that really requires deep meditation to understand, I'd rather have deadlines to learn something (an exam, e.g.) and be given the proper written material to learn it. It needs to be of good quality however -- not just bare powerpoint slides with a couple of unexplained equations.

On the other hand, integrating highly interactive visualizations is, in my opinion, a key aspect of learning, and that's where video should be used most. Developing intuition behind equations/code is what triggers connections and understanding.

mdup··on Should I Get a Ph.D.?
I'm honestly surprised to all the comments in here. This is not my experience at all. I thought I may share my perspective.

I'm currently pursuing a PhD program here in France. This is a special kind of PhD, called "CIFRE" which roughly means "PhD in a company". You're employed for 3 years by both an academic lab/uni and a company. The goal is to solve an industrial research problem that benefits both the lab and the company.

Personally I'm very happy to be doing this kind of thesis. I'm not in a major lab, so I'm pretty sure I won't be able to fight much against Ivy League PhDs but I'm still getting the degree and I'm okay with it. In the future I don't seek to teach a lot but to do mostly research.

Besides having a good relationship with my advisors I'm also super happy that I don't have a student debt (French education is mostly free -- even for top engineering schools). The pay is good, not as much as an engineer but plenty of people with lower degrees would already be happy with it, so no reason to complain. With this company-linked PhD I also get to study 100% while being officially employed as an engineer, it's on my contract. If I ever want to hide the PhD from my resume (I'm sure I never will), I can basically write "I've been a research engineer for three years" and this would be the truth.

I also get to see how it works in the industrial world and to be more aware when, after the degree, I have to choose between going back to the engineer path or getting further into the academic road.

mdup··on Ask HN: How or where to begin learning mathematics from first principles?
No, I don't think MetaMath is the kind of thing the OP wants. Sure, it builds mathematics from "first principles", but not in the same meaning as the OP means. When you read his question, "first principles" really mean "as a beginner".

Although I like how MetaMath brags about how easy it is to verify proof by yourself if you're not a mathematician, in the end I don't think it's useful for any people but math-oriented in the first place. It's not going to explain the meaning behind the math (it actually intends to take rid of the meaning) and certainly not solve daily problems like antenna design or machine learning. I rather see it like a collection of theorems declared true by a computer following dumbly (I mean that in a positive sense) a substitution rule and base axioms. It's another kind of beauty.

mdup··on Show HN: Picnic.css, a lightweight Bootstrap alternative
Just a comment about the buttons: It feels weird that they kinda "pre-press" themselves when hovering. I guess ergonomically speaking, a button shouldn't move down while it's not pressed. On the other hand, maybe a glow or a subtle coloring could do the trick?
mdup··on Who am I: A mind reader (don't forget to view source)
At first, I thought the OP had done exactly that!
mdup··on The next version of DuckDuckGo
Regarding page scrolling, I'm usually good with Space and shift-Space.
mdup··on Introducing our smart contact lens project (for diabetics)
I guess most meters have a display accurracy of 1 mg/dL, but that's just on display. If you check your blood twice in a row, you're likely to get at least a 5 mg/dL difference. I'm not even sure this is your meter's problem, but rather your blood having not 0.01 mg/dL-consistent sugar across all of your body.

Nevertheless 10 mg/dL is just the right accuracy needed to control type I diabetes. I don't tend to attach much importance to the last digit anyway.

mdup··on Programming is a Terrible Job
Out of curiosity, would you say that big defense contractors or other big corporations that typically get this kind of "cool" projects, may sometimes seem buried in red tape or cumbersome processes? I feel like sometimes startups make things happen faster and with lighter administrative overhead, but I'd like to know if someone has experience with the opposite.
mdup··on We're creating a culture of distraction
The funniest part is that this "culture of distraction" is so neglictible today compared to what it will be in 50 or 100 years.

"Remember 2013 when we didn't have those lenses showing continuous news feed? When we didn't have 360° vision camera wired directly to our brain? Back then our attention span was sooo high"

mdup··on Google Hangouts/GTalk glitch sends chats to wrong recipients
For some time I've pretended that anything I write that should be private (IM, mail, etc.) is actually public. Nowadays it has become so easy for your recipient to transfer a mail to the wrong person. Once I've also been victim of my phone sending texts to the wrong people.

So from now on, just write things you can assume in front of the whole world. Don't write shit about people you don't like. Keep that for face-to-face talk with your friends. Things written last so much longer than things said.

mdup··on A Rust binding of the wxWidgets cross platform toolkit.
Even if not the most up-to-date, it's still nice to have an option to create some GUI stuff in Rust.
mdup··on Effective Scala
Effective Java and Effective C++ have a good format for listing best practices, and nowadays more and more languages seem to adopt their own "Effective" book or web page... I like how useful they are to see real-world problems before you decide picking up a language.
mdup··on My first project in Rails – Pastebin for Mathematicians
I thought that too, it would be very convenient. On the other hand don't drop the MathJax support because the rendering is really slick. Sometimes rendered images feel weird.
← PreviousPage 2 of 2