neelesh
Re:Django for a Rails Developer
on Thursday November 26, 2009 @12:38PM (#962875)
Agree. What we probably need is a nice way to switch between deployment/development setups, possibly by splitting settings.py like rails
Re:Django for a Rails Developer
on Thursday November 26, 2009 @11:29AM (#962799)
"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?
Re:An Early Look At IE9 for Developers
on Thursday November 19, 2009 @04:08AM (#949961)
This is good. The end-users/web devs will benefit. We have more options, more competition and hopefully better browsers because of the competition.
Re:Dustin Curtis's new web app
on Saturday October 31, 2009 @02:29PM (#913837)
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?
Re:Dustin Curtis's new web app
on Saturday October 31, 2009 @02:25PM (#913830)
May be franchise your service to other HN'ers in other countries? :)
Re:Srinivasa Ramanujan
on Thursday October 29, 2009 @08:19AM (#909879)
I would upvote this a million times if possible
Re:Ask YC: What is your preferable development environment?
on Monday March 17, 2008 @06:41AM (#138851)
reasonably good with PyDev. Not as good as NB for RoR though
Re:Ask YC: what's the best way to model a threaded comment system like...
on Sunday March 16, 2008 @01:54PM (#138276)
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.
Re:Ask YC: What is your preferable development environment?
on Thursday March 06, 2008 @10:42AM (#130585)
Ubuntu ,NetBeans(for RoR), Eclipse(for Python/Django, Java)
Re:Please evaluate our site
on Tuesday February 12, 2008 @11:37PM (#114634)
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.
Re:Are You This Agile? Paul Graham Changes Hacker News While You Wait
on Thursday January 17, 2008 @09:49AM (#99787)
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.
Re:Fruit of 4 years of 14 hours per day, 7 days a week
on Tuesday November 13, 2007 @02:24AM (#79107)
The preview is awesome! Hats off to your dedication!
Re:... because Ruby isn't terse enough yet
on Sunday October 28, 2007 @11:02PM (#73622)
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 }
endn=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?
Re:... because Ruby isn't terse enough yet
on Sunday October 28, 2007 @09:52AM (#73439)
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.