Hacker Newsnew | past | comments | ask | show | jobs | submit | more corey's commentslogin

Those aren't data structures.


I was going to write the exact same thing


Thanks for your insight.


Lukeprog wrote a great and well researched blog post on being happy:

http://lesswrong.com/lw/4su/how_to_be_happy/


This isn't pointless, as it allows you to easily post latex equations on any site that allows images.


Yes, true, but isn't this project meant to populate a Website's pages with equations?

There are any number of easy ways to create equation images solely for export to an image site, example http://arachnoid.com/latex . But populating Web pages for display is a different issue, and the fact that modern browsers allow zooming in and out, essentially ruins the appearance of graphic equations.


Velleman's "How to Prove It" is a great book to learn how to do mathematics.

http://www.amazon.com/How-Prove-It-Structured-Approach/dp/05...


Python has an array class too:

http://docs.python.org/2/library/array.html


How do you like working in OR? Are there a lot of jobs in the field? I'm a math major and like programming, so it seems like it'd be an interesting career for me.


No lots of jobs, no, but there are jobs. It's an interdisciplinary field, so your math and programming background will hold you in good stead. Some basic stats are a good idea too.

Of course some people are doing OR but don't know they're doing it. Some just use another label. Other useful search terms include "management science", "operational research" (UK), "advanced analytics", and of course "optimi(s||z)ation".

If you're after an introductory text I can recommend Wayne Winston's Operations Research: Applications and Algorithms. 4th edition. ISBN-13: 978-0534380588


It's not just cheating, it's also the fact that when you have to use automated grading, it's much more difficult to create good tests.

I hope in the future they offer you the option of taking a real test at a testing center, which is graded by a human being.


You missed the point, the idea wasn't to pass a test. The idea was to follow the course for the sake of learning.

As for the option of taking a real test at a testing center, I don't see the point since it would be US only.


> TDD promotes testing trivial methods

Kent Beck might disagree:

http://stackoverflow.com/a/153565


:) Kent Beck doesn't promote it anymore, but in the early 2000's that was what was understood.

From "Test Driven Development" by Kent Beck, published 2002: http://www.amazon.com/Test-Driven-Development-Kent-Beck/dp/0...

Here are some excerpts:

"What test do we need first? Looking at the list, the first test looks complicated. Start small or not at all. Multiplication, how hard could that be? We'll work on that one first."

The examples like this that were provided were of trivial methods. Trivial can be subjective, but, to me, methods whose bodies are almost always 2-5 lines long, not counting calls to other trivial methods, which may account for maybe another 2-3 additional lines, are basically trivial. It's one thing when you really don't need that much code, but it's another when you have classes upon classes upon classes upon classes, etc. to do something that could be OO and be in two classes with 1/2 as many lines and still be clear.

"Do these steps seem small to you? Remember TDD is not about taking teeny-tiny steps, it's about being able to take teeny-tiny steps. Would I code day-to-day with steps this small? No. But when things get the least bit wierd, I'm glad I can."

This is what Kent meant, but few of us picked up on it, per the first comment to his answer in your example from S.O. and per my experience.

I'm not blaming Kent, Ron, etc. or even saying that they are or were wrong. But, the commonly understood epitome of TDD used to be 100% test coverage and methods for just about everything. Those in the know said more like 60% was better overall but that was not really "true TDD". The implication of 100% "trivial" methods is more overhead for method calls (minor cost, depending, but can be cumulative, increase/decrease call stack size more quickly, which is inefficient), a large number of entry points (more stuff can be null/nil, cause NPE's or need checks if you don't know what is going to call it later, though that can be mitigated somewhat), and just generally too many LOC.


So far it looks great. A full screen button for the videos would be nice, though.


Hello Matt, I just want to say thanks for Lean Domain Search. A couple weeks ago I was struggling to think of a domain name for a small project of mine and then I saw your post. It helped me find a pretty good unregistered domain name in just a couple minutes. Since I'm no very creative myself, this really took a burden off my mind and helped me stay motivated.

Thanks!


That's perfect -- thank you!


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: