[QUOTE=q3k;26886555][url=http://learnpythonthehardway.org/index]Learn Python The Hard Way[/url]
Don't let yourself get convinced by the C# fanboys :V.[/QUOTE]
I might even do this, i'm thinking.
[QUOTE=Staneh;26889414]I might even do this, i'm thinking.[/QUOTE]
Enjoy your tab key while it lasts.
[QUOTE=Skuch;26889403]Starting out with PHP was a great favor for myself. Getting to know the basics of if, for, while, classes etc. is pretty easy in PHP. It has helped me a lot learning both C++ and C.[/QUOTE]
As much as I love php, in the context of this thread:
php oh GODDDDDDDDDDDDddddddddddddddddddddddd
[QUOTE=Catdaemon;26889889]Enjoy your tab key while it lasts.[/QUOTE]
What, don't you indent your code?
[QUOTE=Combino;26894341]What, don't you indent your code?[/QUOTE]
My IDE does it for me :smug:
And not always how python wants me to do it.
[QUOTE=Catdaemon;26895414]My IDE does it for me :smug:[/QUOTE]
Python IDEs do it too....
[QUOTE=Catdaemon;26895414]My IDE does it for me :smug:
And not always how python wants me to do it.[/QUOTE]
You shouldn't rely on your IDE to do indenting, you write code not your IDE.
[QUOTE=sim642;26896442]You shouldn't rely on your IDE to do indenting, you write code not your IDE.[/QUOTE]
oh crap better not rely too much on my ide i might forget how to use tab
[QUOTE=sim642;26896442]You shouldn't rely on your IDE to do indenting, you write code not your IDE.[/QUOTE]
That's how Lisps are managed - we have autoindenting, creation of opening and closing delimiters in pairs and ways to move the first and last paren back and forth between symbols. It'd be unbearable otherwise.
That's exactly why Lisp should be set on fire and thrown in front of a locomotive: You shouldn't need an IDE to bear writing or reading code.
lmao do people even unironically use lisp anymore?
[QUOTE=Jookia;26897314]That's exactly why Lisp should be set on fire and thrown in front of a locomotive: You shouldn't need an IDE to bear writing or reading code.[/QUOTE]
Why not? It's 2010.
[QUOTE=Jookia;26897314]That's exactly why Lisp should be set on fire and thrown in front of a locomotive: You shouldn't need an IDE to bear writing or reading code.[/QUOTE]
People have done so in the days of Maclisp - they have a more conventional block indentation style if it so behooves you. Putting parens on newlines looks ugly as fuck and others can manage compact parens well without paredit. I can't - it's not a sign of weakness (shallow criticism is, though.). People can bear to write Clojure in netbeans or CL in Vim without paredit, I can't.
The tradeoff is okay - we get macros implemented in an easy manner that are guaranteed syntactically correct, all the time. Evaluation order is obvious. A compiler, defined by the Common Lisp standard, is a series of rewriting rules. S-expressions don't need a parser since the language uses it anyway.
[editline]23rd December 2010[/editline]
[QUOTE=deloc;26897573]lmao do people even unironically use lisp anymore?[/QUOTE]
Which lisp
[editline]23rd December 2010[/editline]
S-expressions should be used for everything - urls, as a replacement for xml, eeevverrrythinggg
[QUOTE=HubmaN]
S-expressions should be used for everything - urls, as a replacement for xml, eeevverrrythinggg[/QUOTE]
you best be joking.
[QUOTE=deloc;26898227]you best be joking.[/QUOTE]
Yes, I'm joking. Hence the eeevverryttthingggggg without the period.
It isn't bad as a replacement for XML, though. Other than that it's got the same verbosity issues.
Alright, I am also trying to start learning how to program, and I decided I am going to learn from Python. But I am just confused about something, on the guide ([url]http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf[/url]) it is telling me to do this.
[quote]
9. Learn how to make a directory in the Terminal. Search online for help.
10. Learn how to change into a directory in the Terminal. Again search online.
11. Use your editor to create a file in this directory. Make the file, “Save” or “Save As...”, and pick this directory[/quote]
If anyone could help that will be nice.
Yes, I know it says search online, but I am still confused even after looking.
[QUOTE=Mr.Goodcat;26899426]Alright, I am also trying to start learning how to program, and I decided I am going to learn from Python. But I am just confused about something, on the guide ([URL]http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf[/URL]) it is telling me to do this.
If anyone could help that will be nice.
Yes, I know it says search online, but I am still confused even after looking.[/QUOTE]
9. mkdir
10. cd
11. um...file->save ?
what operating system are you working on?
[QUOTE=st0rmforce;26899764]
what operating system are you working on?[/QUOTE]
Windows Vista (Yeah, I know that its not great with Python(Or anything for that matter)).
[QUOTE=Mr.Goodcat;26899956]Windows Vista (Yeah, I know that its not great with Python(Or anything for that matter)).[/QUOTE]
To open the terminal, press Windows + R, type cmd and press enter.
[url=http://www.bleepingcomputer.com/tutorials/tutorial76.html]Here are some terminal basics.[/url]
[url=http://www.itechtalk.com/thread542.html]You will also need to add Python to your system path.[/url]
Or you can scratch all of this and just right click on a .py file you've written, select edit with IDLE. Two windows will appear, and interpreter and a text editor. Focus on the text editor, press F5 and hey presto, you ran the script.
[QUOTE=Mr.Goodcat;26899956]its not great with Python.[/QUOTE]
No such thing!
Anyway, mkdir creates a directory (just type "mkdir /?" in the terminal for some help).
cd changes the current directory.
Just get a decent editor, I like notepad++ but I'm sure some people will disagree, shout, have seizures and/or threaten my family for mentioning it.
[editline]23rd December 2010[/editline]
Back onto the main subject:
I'd listen to these guys. My first language was BASIC and my second was C.
The problem is that I now think of everything in a C-like way. I've made some horrendous programs over the years because I don't take advantage of the language's features.
[QUOTE=sim642;26896442]You shouldn't rely on your IDE to do indenting, you write code not your IDE.[/QUOTE]
By that logic, I should let my IDE do indenting and focus on writing actual code rather than where I place the thousands of parens and braces I'm going to be writing the exact same way every time anyway.
And, how about 2d games, platforming games, which language is the best for that? I'm much into making games later on, so.
Haskell
M is for Monad
Which I would've killed to have learned at the start, I see them everywhere now and one of the best meta-patterns one can learn about
Sorry, you need to Log In to post a reply to this thread.