:)) funnieast thing ever! "Carlhuda" actually its a name under witch Carl Lerche and Yehuda Katz commit their work when they do pair programming.
1,582 karma · joined August 16, 2010
:)) funnieast thing ever! "Carlhuda" actually its a name under witch Carl Lerche and Yehuda Katz commit their work when they do pair programming.
I like Rails better because:
* I like Ruby more than Python (no "self" in methods, Ruby's list.map(func) vs Python's map(list, func), usable as a template language (ERB), open classes -> easy hacking)
* Rails `Books#has_one :publisher` vs Django `models.ForeignKey(Publisher)`
* Rails migrations + db reflection vs Django attr declarations `models.CharField(max_length=300)` (Yes I know about south, you still declare the attrs tough)
* Rails has Bundler http://gembundler.com/ , dunno about Py ...
* Django router http://docs.djangoproject.com/en/1.2/topics/http/urls/ vs Rails router http://guides.rubyonrails.org/routing.html (ie. declarative regexps vs executable well tought semantics)
* rails erb (haml etc) views vs django's-template-language because python can't do templates because of the indenting
* the list goes on but I'm bored
Ruby is beter at web stuff than Python.
Python has more science stuff (NumPy etc).
So I vote Ruby on Rails
Supports: C C++ D Haskell Lua OCaml PHP Perl Plain Text Python Ruby Scheme Tcl
Good name: Tips for Intermediate Git Users
Start with some lightweight tutorials about creating web pages (static content): http://www.w3schools.com/html/default.asp http://www.w3schools.com/css/default.asp
Creating dynamic content (programming) is a whole different issue ( http://norvig.com/21-days.html ).
Start with learning procedural programming: http://ocw.mit.edu/courses/electrical-engineering-and-comput...
http://www.greenteapress.com/thinkpython/thinkCSpy/html/
And then experiment with a simple web framework: http://webpy.org/tutorial3.en
The learn workflow shold be a combineation of: read some -> do some -> try some -> read some more -> experiment some -> read some -> continue
This is just a startingpoint, there are many topics to web development, from javascript for interface interactivity to distributed systems, message queues, scaling ( I'll write this link again just for kiks http://norvig.com/21-days.html ) etc.,
The resources are for the Python language, personally I prefer Ruby, but the resources for "learn programming" are more evolved in Python as it has bean adopted as a teaching language by many schools/universities.
PS. Exercise oriented: http://learnpythonthehardway.org/
PS. Is RailsGame open source ? It looks interesting!
def some_method { ... }
def some_method; ... end
obj.something # "something" is allways a method
# never a var, say accessor (getter, setter &c ...) each(list) vs list.each
def(self, args)
__ugh__
can't do templates (erb?)
dislike object model (objects != functions etc)http://www.youtube.com/watch?v=up0kiOJvUpI
* One more link for you
See: SproutCore, Cappuccino, Backbone.js, JavaScript.MVC
Avi Bryant's "Django is obsolete, but so is everything else"
http://python.mirocommunity.org/video/1186/djangocon-2009-dj...
Yehud Katz's
def some_method { ... }
def some_method do ... endMy initial preference was Less, because sass seemed framgmented with 2 syntaxes, and also less seemed more aesthetic, but I ended choosing Sass for the following reasons:
* Sass has Compass built over it http://compass-style.org/docs/ and this alone is the biggeast win over Less
Compass is a framework that comes with a foundation of components :
- compass core http://compass-style.org/docs/reference/compass/
- many plugins for different needs (search github for compass), special mentioning Susy liquid grid framework https://github.com/ericam/compass-susy-plugin
- with Compass I can monitor a whole directory of templates at once, and have them instantly compiled when I save from the editor, not sure if Less can do this
* Aptanta Studio 3 and few other IDE's know to syntax highlight sass and scss, not sure about less
* If you don't like the indentation syntax you can use the curly Scss, Scss and Sass are interoperable, you can call one from the other and vice versa
* The ruby version of Less is deprecated and I write a ruby based project (indeed, not all HN users are pythonists) Moreover, I don't like the idea on compiling the templates client side (as in less.js) and waste precios miliseconds, nor use an external interpreter (node.js)