Better HN
topnewbestaskshowjobs
Log inSign up

rootlocus

3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions

Submissions

comment 11y ago · link · parent

And with the else-if code you would need a counter increment for every else-if statement

comment 11y ago · link · parent

I don't get it. How does using else-if make it less complicated to count the number of instructions?

comment 11y ago · link · parent

Security through obscurity? xD

comment 11y ago · link · parent

"The midterms don't count if you don't want them to, which means 100% of your grade can be the final." And that's your choice. How is it his fault for giving you a choice?

"Most of it is literally just memorizing a proof." Proofs are more important than memorizing a formula and forgetting it after a couple of month.

"Convinced me to be a math major by inciting my passion for math." That's way more important than stuffing you with formulas, algorithms and problems. If you have a passion for something, learning comes more easily and naturally.

By giving you confidence and passion, he gave you the greatest gift he could possibly give. You can find theorems, proofs, problems and solutions in countless books. The information is there, all of it. Structured in many different ways. And he gave you the courage to go out and explore. I wish I had that as a freshman. Instead I got fear. Fear of failing. Fear of being mocked in class. Fear of not being good enough. And I cowered in fear. I learned mechanically, memorizing formulas and problems by heart. What good where the quizzes, hard exams and midterms to me when I couldn't understand and apply what I was supposed to be learning?

comment 11y ago · link · parent

This is a nice example for the Bayes theorem: what's the probability of seeing a computer running Windows "in the wild", given that "the wild" comprises the computers of a startup crowd located in the same area. When you're limiting the universe to such a small fraction of similar samples, you're bound to get skewed results.

comment 11y ago · link · parent

That's because it's early in development. More features are planned for the future :)

comment 11y ago · link · parent

The article is not about a game, is about what could be improved in the core language, from a professional point of view. I may write messy code in my spare time, but I don't. And I certainly don't wait for the standard library to implement trivial things on my behalf complaining there's no alternative.

comment 11y ago · link · parent

That may be your personal opinion, but 15 'max(' on a single would not pass code review in any decently maintained project, especially when there is a cleaner, reusable alternative.

Moreover, complaining that implementing such a macro is too cumbersome because it implies finding a place for it in your code structure certainly doesn't imply professionalism. Just step back a minute and imagine the fresh intern comes to you with this code and explanation. Would it fly? Or are you just finding excuses because he's the author of a well known library?

comment 11y ago · link · parent

This article comes from a person who prefers copy+pasting to reusable macros:

"The reason why I have 15 "max" in my code is because it takes less time to copy-paste max( 15 times than it is to write a macro and think about where I should put it in my code structure!"

Am I the only one who sees a problem with that?

comment 11y ago · link · parent

That's an odd expression: "comes across as genuine and a real person". Aren't we all real? Is this a fantasy?

comment 11y ago · link · parent

I love this metaphor. I've been trying to explain to people that the new c++ is just another layer of features on top of the old language. You can't learn c++ by just learning the last layer added.

Modern C++ is just a subset of the language, and nothing prevents the old language from popping up everywhere.

comment 11y ago · link · parent

I believe that would be impossible. Also, the client isn't required to do a lot of parallel work, it's just an end point for the two way communication with the server.

The servers, on the other hand, have to serve all the million users connected at any single moment. That requires a lot of parallelism, and that's the most likely place where Erlang was successful.

comment 11y ago · link · parent

Maybe it's time to upgrade the hosting plan.

comment 11y ago · link · parent

You made me feel just as narrow sighted, but on a smaller scale (sincere thanks for the insight). However, there are still lots of people who don't eat fast food for dinner. And for that, they are healthier and better looking. Would you feel sorry for the guy complaining that he's fat and ugly whilst chewing on a burger? Aren't our own decisions responsible for who we are? I still don't think he deserves to be pitied.

comment 11y ago · link · parent

You would think that with an infinite amount of money, you could pursue whatever lifestyle you desire. One could easily buy land and housing anywhere on earth, and surround himself with whatever people he wishes. I can't even imagine the endless possibilities. The choice of a $70mil mansion and non-stop parties is pretty narrow-sighted. Lucky for him he still has a fortune to try again.

comment 11y ago · link · parent

You're right. I'm positive that every time a large company acquires a small one, it's because of their community and IP. Code is easily rewritten, and startups aren't making breakthroughs in algorithms. It's not like microsoft didn't have engineers capable of making a minecraft clone. They didn't have the rights to do so.

comment 11y ago · link · parent

From what I heard, his "groundwork" was a terrible mess of spaghetti code that was awfully hard to work with. Most likely the only thing he left behind was the IP and fan base.

comment 11y ago · link · parent

I'm having a hard time feeling sorry for the guy. He thought his success was a testament to his engineering greatness, acting like he was John Carmack. Money doesn't buy character, decency or real friends. Notch is feeling the sting of his arrogance? He doesn't have my sympathy.

comment 11y ago · link · parent

Considering the CPU architecture, everything relies heavily on caching. Not to mention it's the first thing any developer thinks about when performance is concerned. I'd be surprised to see any large application that doesn't rely heavily on some kind of caching.

comment 11y ago · link · parent

> Ruby powers a bunch of high throughput websites yet it's notoriously 200x slower than any other language

Have you considered the costs of the hardware that compensates for the software's slowness?

1131.

ChillHub: Fridge powered by ubuntu(firstbuild.com ↗)

1 points · by rootlocus · 11y ago · discuss

comment 11y ago · link · parent

Read us-15-Domas-TheMemorySinkhole.pdf for an in depth explanation.

comment 11y ago · link · parent

> To put it in another way: as the power of available machines grew by a factor of more than a thousand, society’s ambition to apply these machines grew in proportion, and it was the poor programmer who found his job in this exploded field of tension between ends and means.

I always thought that it was easier to be a programmer in the old days. Back when you could assess the performance of a program by counting the number of CPU cycles. All you had to learn was an assembly manual (a mere hundred pages?) and you knew everything there was to know about programming for that architecture. And there weren't that many architectures. Now we have non-deterministic CPUs, hundreds of high level programming languages, multiple operating systems, an entire jungle.

comment 11y ago · link · parent

Seems to work with IntelliJ IDEA as well. Great success!

comment 11y ago · link · parent

Is google crawling the site every search, or is it using the same indexed version for all tests?

comment 11y ago · link · parent

You can read some excellent material on the subject here: http://250bpm.com/blog:4

I'm far from being a fan of Casey. I find that he makes strong statements based on weak arguments. He's overly hateful of Microsoft and C++, despite him using Visual Studio and a C++ compiler. He tries to be pedantic but makes a fair share of mistakes. Some of his architecture design choices left me with a straight face wtf expression.

C++ has it's flaws, that's widely known and accepted by the community. It's even highlighted in the "Effective C++" books. Unfortunately, the best advice given is "don't do that". I believe a vast majority of C++ users will gladly switch to a new language that offers the same level of abstractions at a comparable speed (maybe Go or Rust). For now, C++ users have to understand the language well enough to avoid its many traps and pitfalls. Moreover, new versions of the standard add to this burden. I know of no project built entirely using C++14. People will always have to deal with legacy code.

OOP is just another programming paradigm C++ supports. You're not required to use it, and you're not even paying for it if you're not using virtual methods. Sure, C++ allows you to do a lot of funky things from overloading operators to implicit conversions but that's another of those things everybody agrees should not be used unless explicitly necessary. OOP facilitates encapsulation and polymorphism which are great tools when designing software systems.

C has its elegance and simplicity. C++ has its abstractions and pitfalls. There are always tradeoffs.

1137.

Scientists build single-molecule transistor gated with individual atoms(arstechnica.com ↗)

1 points · by rootlocus · 11y ago · discuss

comment 11y ago · link · parent

Holy cow, thank you so much for the lectures!

comment 11y ago · link · parent

I have a CS degree and I prefer immutable data structures and pure functions. If anything, I believe it might be the other way around, since holding a CS degree means you've had a FP course and you're more aware of the implications of multithreading, immutability and side effects. "Self taught"s are more likely to have an education from online tutorials, which are fairly shallow.

comment 11y ago · link · parent

Couldn't agree more. It went away shortly after I discovered it, and although there's a lot of awesome information in the archives, it's a shame no new content is being added.
1
3637383940