Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 12y ago · link · parent

Is there an opposite version? I've found that many of the best submissions have a high points-to-comments ratio.

comment 12y ago · link · parent

I considered picking up OCaml at one point, but got scared off by the global interpreter lock. Can an experienced OCaml dev tell me when this would really become an issue, and certain cases where it wouldn't make a difference?

comment 12y ago · link · parent

Learning software design principles is like learning how to draw - you need to study many, many examples before getting a good feel for it. For example, in drawing there are many individual principles, such as shading, perspective, scale, and so on. Studying each individual principle is only useful within the context of a full drawing.

Software is the same way. Studying SOLID principles, application boundaries, encapsulation, etc. only makes sense within the context of a working application. Not only that, but making sense of design decisions is not as easy as "seeing the result" like you can in a drawing. With software design, you have to take a step further and continuously ask questions:

    "Why?"
    "Why not this?"
    "When would I use this?"
    "When would I *not* use this?"
I'm an instructor at a coding school[1], and one of our biggest goals is to inculcate software design principles into our students. Frameworks are useful, but if you never learn proper software design, you'll always be stuck as a framework developer (e.g. Rails/Angular developer), and never become a software developer (i.e. frameworks and languages are just details).

[1] http://www.makersquare.com/

comment 12y ago · link · parent

I generally agree. I think Uncle Bob has recently realized all his advocating without public explanation causes a lot of confusion. He's been blogging quite a bit this past month, two posts of which are related to mocking:

http://blog.8thlight.com/uncle-bob/2014/05/10/WhenToMock.htm...

http://blog.8thlight.com/uncle-bob/2014/05/14/TheLittleMocke...

comment 12y ago · link · parent

Short version: Most, if not all programming bugs are due to your code receiving something it did not expect. Haskell's type system helps eliminate this problem by forcing your code to declare exactly what it expects, and to handle all cases of said expectations.

In other words, it's doesn't let you skip out by not thinking about the entirety of your code. It's the same line of benefits that TDD gives you, but TDD is, IMO, a stepping stone towards the pure, functional programming that Haskell provides.

Note that I am by no means a Haskell programmer. To me, Haskell is the "last level" in learning development. I hope to one day reach such a level.

comment 12y ago · link · parent

You're looking for Notational Velocity. It's free, open source, minimalistic, keyboard-centric, and extremely fast. I use it all day, every day. http://notational.net/screenshots.html

It doesn't quite do images, since it's text only. nvALT is a fork of the project with extra features. Its image support might fit your needs: http://brettterpstra.com/2012/09/27/quick-tip-images-in-nval...

comment 12y ago · link · parent

The word "manhole" is not a fair comparison. In that case they were dealing with an inanimate object. In this case, we're labeling any developer who would need this tool. Hence the inappropriate use of gender.

comment 12y ago · link · parent

Great idea. Does anyone know of a non-social version of this type of annotation, i.e. a static version that you write in the comments yourself? This would be a great improvement to present code on the internet in general.

comment 12y ago · link · parent

Looks like the scammers are already showing up: http://i.imgur.com/5vz9Kew.png

Edit: added a screenshot of the actual homepage

comment 13y ago · link · parent

https://github.com/rebelidealist/stripe-ruby-mock

comment 13y ago · link · parent

Open source is one of those rare times when "build it and they will come" holds true. I built a testing gem for stripe, and with zero marketing I've had eight complete strangers come in and make useful contributions through the magic of github. Open source is truly fascinating.

comment 13y ago · link · parent

http://simperium.com/ is exactly what you need. It serves as a real-time data layer; you can push/pull from it from the browser, and pull/push to it from your server too.

comment 13y ago · link · parent

I remember signing up as a mentor a long time ago but never received any confirmation. Teaching is one of my favorite things to do in life, yet sites like these never seem to respond to mentor applications.

comment 13y ago · link · parent

I'd say with almost absolute certainty the recurring billing should continue to charge the card it was created with. default_card should essentially be a pointer to a customer's preferred card.

comment 13y ago · link · parent

With regard to the pain of creating yet another account, I really do believe Mozilla Persona is perfect for websites like this one. All they need is your email address, and Persona protects your privacy by only providing this information.

I honestly can't wait to see a future where almost all non-social websites use Persona as their login system. We'll be able to create accounts with only a single click.

comment 13y ago · link · parent

Mere bias does not invalidate an argument. As males we are naturally biased to believing porn is harmless. However it can be a real addiction to some (not all of course).

In my opinion it's important to know the symptoms of any addiction in case you see those patterns in your own or your peer's behaviors.

comment 13y ago · link · parent

Is it not true that many informative articles start with anecdotes to illustrate the subject at hand? If you have a problem with the science in the article, please explain; it would help me understand the flaws you are talking about.

comment 13y ago · link · parent

It seems that there is: http://yourbrainonporn.com/why-do-i-find-porn-more-exciting-...

comment 14y ago · link · parent

For those interested, StaticMatic 2 is a similar, ruby alternative (disclaimer: I'm a major contributor): https://github.com/mindeavor/staticmatic2

comment 14y ago · link · parent

I personally use https://github.com/dmatarazzo/Sublime-Text-2-Icon

comment 14y ago · link · parent

SocketStream is a nice framework (also in early stages) that embraces npm and other node conventions. It doesn't support reactive programming out of the box, but I wouldn't be surprised if someone decides to build a module for it.

comment 14y ago · link · parent

Another option for building static websites is StaticMatic[1]. It uses Tilt for templating, so you can use mustache, haml, sass, coffeescript, or whatever. There's also a nice "upload to Amazon S3" command.

Some have said StaticMatic is good for building PhoneGap clients. Personally I just use it for small sites.

[1] https://github.com/mindeavor/staticmatic2

comment 14y ago · link · parent

Thanks, I had no idea where this was from.

comment 14y ago · link · parent

http://colorapi.com/ is similar but better suited for finding color theme inspiration.

comment 14y ago · link · parent

Based on the other replies in this thread, I think a few helpful blog posts would make a lot of people happy.

comment 15y ago · link · parent

http://jobspice.com/ is another one that gives more control over visual presentation.

comment 15y ago · link · parent

In my opinion, if you can't figure out what a function does by its name and its parameter names, it is a poorly named and thus poorly documented function.

I think function and variable naming is the one of the most important aspects of programming. Without good naming, you can easy double the amount of time it takes to edit and extend functionality.

comment 15y ago · link · parent

In the same spirit, StaticMatic2[1] is a gem for building static websites. It has a preview server, supports many many templates via Tilt, and can upload your compiled website to Amazon S3 in a single command.

[1] https://github.com/mindeavor/staticmatic2

comment 15y ago · link · parent

Very interesting. I like the concept of having only one account. The goals tab looks very useful.

The video states that the "safe to spend" feature calculates recurring bills and such. Is there a way to view and manage these?

1
2728293031