News for hackers. Stuff that matters.

shinuza

Re:Ruby 2.3.0 Released on Friday December 25, 2015 @08:54AM (#10791228)
Fun fact: Ruby 1.0 was released 19 years ago on this day.
Re:PHP 5.5 released and other things PHP related on Thursday June 20, 2013 @01:31PM (#5913373)
What about phalcon (http://phalconphp.com/)? Which reminds me of two things:

[] TechEmpower Benchmark Round 6 was due today, but it was re-scheduled to the 25th [] Symfony should remove High Performance from their homepage title.

Re:Fun with JavaScript Arrays on Wednesday June 12, 2013 @08:33AM (#5867723)
var a = {};

PHP != Javascript

Re:Fun with JavaScript Arrays on Wednesday June 12, 2013 @08:14AM (#5867647)
If

  var a = [1, 2, 3]
  a == a
Returned false, it would by screwy. In this case the == operator behaves like the `is` operator in Python when comparing lists.
Re:Fun with JavaScript Arrays on Wednesday June 12, 2013 @08:05AM (#5867617)

  > a.length
  0
Same as the article, you are adding properties to a. A is an array, not an hashmap. Any index that is not a number will create a property, not a new index.
Re:GitHub is getting DDoSed again on Sunday March 10, 2013 @07:11AM (#5351444)
Bitbucket at it again.
I'll say something not related to the service but to the .title image.

- You'd most likely want to do a sprite with the mousehover/mouseout images - Both images are 75kb-ish, so you'd probably want to display/hide the bandage (still in a sprite) on mouseover/mouseout - The eye moves slightly down when you hover it

Re:Lets Talk; An EventBus in Backbone.js on Monday April 16, 2012 @10:46AM (#3847553)
I've being using this pattern since day one with Backbone.js. If you want to avoid spaghetti code you need to have a central mediator that will take care of the communication between your modules.

It's also easier to debug if all your events business happens in one place.

Re:Common patterns of markup & style on Tuesday February 07, 2012 @08:30AM (#3561649)
Maybe for the top level, but anything between that and the classname is useless IMHO.
Re:Common patterns of markup & style on Monday February 06, 2012 @06:23PM (#3559703)
It's a good initiative but utterly wrong regarding best practices for css selectors.

ol.tags li a span.meta

Really? Why not something like:

.tags-vertical .meta

I like the overall style a lot tho.

Cool stuff. I simplified it a bit :

https://gist.github.com/1063836

Should work on Firefox 3+ and Chrome 4+

Re:Backbone.js 0.5.0 Released (with pushState) on Friday July 01, 2011 @02:34PM (#2719578)
I've been waiting for this feature for a long time, congratz.
Re:HN Paris Meetup: First event mid-July, help us bootstrap on Wednesday June 15, 2011 @11:15AM (#2657435)
I'll be there!