I'm learning python. I've wanted to learn it for a while, but I finally have a purpose, which makes it easier for me. Unless I have a project to work on, I can't really learn anything (as it turns out). So, I've decided to make a python-script for all the statistical calculations required during the course. It will use lists for holding the raw
(
Read more... )
Reply
There are post-processors that let you use tradition c-style braces, but it's hackish and pointless.
Also it's not actually "3 vs 4 spaces", it's "is this line indented more or less than the previous line?". You don't have to be consistent.
Reply
Reply
Reply
It's like saying "WHAT IF YOU FORGET A PARENTHESIS (in lisp) OR SEMICOLON (in c) OR ENDIF (in ruby)".
You know what happens if you forget a semicolon in C? The compiler barfs and you find the TYPO and FIX IT.
Funnily enough, no one ever says "hey, it really sucks you how can't accidentally assign a value in a python if-statement because the language doesn't allow it".
Reply
Reply
dave@kryten:~$ python heightofclass.py
File "heightofclass.py", line 14
if not in_line:
^
IndentationError: unindent does not match any outer indentation level
dave@kryten:~$
Not nearly as bad as C.
Reply
Lisp fanatics are almost as bad as python fanatics, who are nearly as bad as mac fanbois
Reply
I thought about Perl for a while, but decided against it. Perl looks overly complicated.
I chose python for two reasons:
1) diaryarena recommended it a long while ago.
2) http://xkcd.com/353/
Reply
Reply
Reply
Reply
http://xkcd.com/208/
Reply
http://en.wikipedia.org/wiki/Regular_expressions
Huzzah! MISSION ACCOMPLISHED! Please take my caps in lieu of a giant banner on a battleship.
Basically it's a formulaic way of looking at language/text, which is handy for when you're looking for something specific, i.e. string matching, as mentioned above.
Reply
Reply
Unless you're doing a fancy, hardcore, academic paper, I find Wikipedia is actually pretty good for information. Sure, there are probably some topics that should be avoided, like anything a company would pay for to help their image, but it's handy for a lot of stuff. I used it to fine results on a history essay recently, since I wasn't going hardcore with it or anything, and Wikipedia tends to be particularly useful for info on comic books or technology.
Especially in this case, it's a freakin' definition of a technical practice.
Besides which, I wasn't 'citing', comments on a livejournal aren't exactly an academic paper. Besides, if you want more info or don't trust wikipedia, then just google something else.
Plus, you sir are an age-ist. Maybe this 14 year old is very bright. Just cause someone is old doesn't mean they're competent.
Reply
Leave a comment