php at Sun, 21 Feb 2010 12:20:07 +0100
You can skip braces in PHP example too, because blocks consist only of one command. So this is not very good example (-;
View Articlephp5 at Sun, 21 Feb 2010 12:30:59 +0100
Braces save you, if a file is kind of broken. If python file is broken you have no chance to see where indentation goes wrong (very bad)
View Articlephp6 at Sun, 21 Feb 2010 12:35:29 +0100
May be you'll write also about module organization. In php you have usually one (may be more) classes per file. But in python you have variables, constants, functions in one file! That is really...
View Articletrond at Sun, 21 Feb 2010 12:52:20 +0100
@php6 Python has had module support since forever. PHP just started using namespaces. See the Python documentation or Google for a tutorial if you don't believe me ;) And: of course you have fields,...
View Articleabcphp.com at Sun, 21 Feb 2010 18:38:33 +0100
Every programmer should learn a new programming language once in a while. Be it for inspiration or just for fun. After some homework in C# some years ago and quite some Java at university (again),...
View ArticleMarkus Wolff at Sun, 21 Feb 2010 18:45:19 +0100
When I first looked into Python, I really welcomed the no braces approach - I think it makes code much more easily readable. And given the legacy codebases I've been subjected to recently, it would be...
View Articlephp6 at Sun, 21 Feb 2010 19:30:46 +0100
@trond You've misunderstood me. In PHP you just use classes. In python you don't know if you should/could classes or function inside module. What I mean, that after php it looks like cumbersome,...
View Articlephp6 at Sun, 21 Feb 2010 19:43:39 +0100
http://code.google.com/p/mock/source/browse/trunk/mock.py as an example. There are more of course. IMO python is more strict (=stable) language as php, because of better type ckeking etc. etc. My point...
View Articletrond at Sun, 21 Feb 2010 20:40:46 +0100
@php6 I am afraid you are mistaking "can" for "must" in Python's "code organization" (and PHP's for that sake). Your examples are just examples of how you MAY choose to do it. You don't /have/ to...
View ArticleAlexandr Kosarev at Sun, 21 Feb 2010 23:06:40 +0100
well see here as you can see php can be "no-brace". And this approve that your equivalent is wrong. From my view point, here code with brace look more logical for third party.. Just image if you have...
View Articlecottage at Mon, 22 Feb 2010 05:45:37 +0100
python is more clear,simply,unified than php. PHP is a tool. Python is a language.
View ArticlePaulG at Wed, 24 Feb 2010 10:27:33 +0100
Tobias, thanks for offering to write a series, I'd like to offer my (vocal) support and tell you that for me, your series will really hit the spot. I am someone who wants to learn Python but the...
View ArticleRobert at Wed, 24 Feb 2010 17:59:21 +0100
I am also looking forward to your articles in this series - learning Python is something I have been planning on doing for some time to inject some freshness into my PHP world.
View ArticleFelix at Mon, 01 Mar 2010 16:39:16 +0100
Ich bin auch mal auf den Rest gespannt, wobei ich zur Diskussion zum Coding-Style nur sagen kann, dass man sich auf eins einigen sollte, und die dann enforcen sollte, ob per commit Hooks in einem...
View ArticleFelix at Mon, 01 Mar 2010 16:41:28 +0100
(Oh, und ich sehe gerade ich hab's mal wieder geschafft die Bounds falsch zu lesen, wenn man im Beispiel oben die 11 durch eine 10 ersetzt macht es auch genau das gleiche wie deine Beispiele…)
View Articleschlitt.info - php, photography and private stuff at Thu, 18 Mar 2010...
One thing I really liked in Python is the data structure set, which is built into the language core. A set in Python is defined as known from mathematics and beside mathematical use cases, it is...
View Articleschlitt.info - php, photography and private stuff at Thu, 01 Apr 2010...
My grandma is a wise lady. She told me many useful mantras which I should repeat every night before going to bed. One of these is Never use Exceptions for flow control. And she is so right with this....
View ArticleViatorgag at Fri, 16 Nov 2012 12:57:26 +0100
锘?b>Red is the shade that we can't appear down on, particularly the red sole footwear of Christian Louboutin. Given that the web has become our companions in our daliy life, browsing on-line has...
View ArticleBernard gk at Tue, 02 Apr 2013 23:09:01 +0200
Christian Schools Clean Up Cheerleading Cheerleading (search) has strayed from the 2-4-6-8 rhymes of yesteryear, and that can leave parochial school cheerleading squads wondering how to craft routines...
View Article