HNHacker News
TopNewBestAskShowJobs

neelesh

2 karma · joined October 28, 2007

submissionscomments
neelesh··on Django for a Rails Developer
Agree. What we probably need is a nice way to switch between deployment/development setups, possibly by splitting settings.py like rails
neelesh··on Django for a Rails Developer
"Why serving static files in development has to be a additional setup, as no developer wants to setup a server for serving static files, I am aware of ‘django.static.serve’ but still that is an additional setup, why not create a sample media directory and a url for the same in urls.py" - Because typical deployments don't use django for serving static files?
neelesh··on An Early Look At IE9 for Developers
This is good. The end-users/web devs will benefit. We have more options, more competition and hopefully better browsers because of the competition.
neelesh··on Dustin Curtis's new web app
It would be great if I can select a template for my mail.Definitely not on the landing page, it would clutter such a nice and clean page. May be a 'More...' option?
neelesh··on Dustin Curtis's new web app
May be franchise your service to other HN'ers in other countries? :)
neelesh··on Srinivasa Ramanujan
I would upvote this a million times if possible
neelesh··on Ask YC: What is your preferable development environment?
reasonably good with PyDev. Not as good as NB for RoR though
neelesh··on Ask YC: what's the best way to model a threaded comment system like YC?
I used a slightly different approach of combining acts_as_tree (for faster updates/inserts) and added a dotted_id for faster reads. The dotted id is a string,as in 0001.0002.0007. Index this column and its fairly fast. The obvious limitation this approach creates is the depth of your comment tree. approx =dotted id col size/#of digits in max pk -1. Not an issue for many. When Im updating the hierarchy , I update root of the hierarchy being moved and then a single UPDATE to update the dotted ids in that subtree. If you are using MySQL, then the max length of a column that can be indexed is also limited. Don't remember the exact length.
neelesh··on Ask YC: What is your preferable development environment?
Ubuntu ,NetBeans(for RoR), Eclipse(for Python/Django, Java)
neelesh··on Please evaluate our site
The 404 not found page is tomcat's default page. A custom page would be better. The favicon is again tomcat's default. As someone mentioned earlier, the image quality needs improvement.
neelesh··on Are You This Agile? Paul Graham Changes Hacker News While You Wait
We are consultants here in Bangalore and we have routinely done this on a Python/Django social networking web app and a Ruby on Rails web app. code-test-svn commit - svn export , pretty much. With a lot of java experience, I can say that it is more elaborate and laborious in Java than python or ruby. The erlang movie (http://video.google.com/videoplay?docid=-5830318882717959520) shows off the same, for erlang.
neelesh··on Fruit of 4 years of 14 hours per day, 7 days a week
The preview is awesome! Hats off to your dedication!
neelesh··on ... because Ruby isn't terse enough yet
That holds true for the given ruby implementation as well, since n is incremented only in the scope of foo and not in the calling scope.

def foo (n)

    lambda {|i| n += i } 
end

n=5

a = foo(n)

puts a.call(3) #prints 8

puts n # still prints 5. n is not incremented

I agree that the python one is strictly not according to the problem definition, but for all practical purposes both python equivalents are the same, aren't they? or am I missing something?

neelesh··on ... because Ruby isn't terse enough yet
The python implementation looks overly complicated. I was thinking that the ruby and python implementations would be very similar. Here it goes

def foo(n):

    return lambda i:n+i
Tried it (Python 2.5) and it works.