Click here to Skip to main content
15,891,733 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Python - The best first programming language Pin
Nemanja Trifunovic19-Nov-13 5:40
Nemanja Trifunovic19-Nov-13 5:40 
GeneralRe: Python - The best first programming language Pin
Dave Kreskowiak19-Nov-13 5:48
mveDave Kreskowiak19-Nov-13 5:48 
GeneralRe: Python - The best first programming language Pin
Giuseppe Tollini19-Nov-13 6:09
Giuseppe Tollini19-Nov-13 6:09 
GeneralRe: Python - The best first programming language Pin
Bassam Abdul-Baki20-Nov-13 4:35
professionalBassam Abdul-Baki20-Nov-13 4:35 
GeneralRe: Python - The best first programming language PinPopular
Marc Clifton19-Nov-13 6:23
mvaMarc Clifton19-Nov-13 6:23 
GeneralRe: Python - The best first programming language Pin
Kornfeld Eliyahu Peter19-Nov-13 6:36
professionalKornfeld Eliyahu Peter19-Nov-13 6:36 
GeneralRe: Python - The best first programming language Pin
mikepwilson19-Nov-13 10:19
mikepwilson19-Nov-13 10:19 
GeneralRe: Python - The best first programming language Pin
Silvabolt19-Nov-13 10:14
Silvabolt19-Nov-13 10:14 
Mihnea DB says:
I feel that the popular languages that use the curly brace syntax are old languages that stuck, not new ones.
Again, I have nothing against it. I'm just saying that I've seen tons of newbies writing 300 char lines and programs that were not indented (at all!), and something like Python's syntax would be helpful to them.
I think he's stuck into the mindset of clean code. They utilize curly braces because they clearly define scope, so even if you don't indent and things look ugly, you can still clearly trace to the end of a scope. Yes debugging a missing brace could be difficult, but not with today's tools. Using space indentation could arguably be hard to debug as well if you're missing a single indent somewhere in a long code file. If they aren't indenting, then he's teaching them wrong.

What's important for new programmers is to learn from ground up and not cut corners (using a language that cuts out curly braces is cutting corners IMO). Cleanliness is good, but readability is even better. He mentions this as powerful syntax:
Quote:
evens = [x for x in numbers if x % 2 == 0]
Powerful yes, but good for new programmers? No. Just reading that out loud hardly even makes sense. How does a new programmer know what type this returns? This is an example where C# would have been way better for newbies (using a foreach loop and assigning back to a new list is a lot more readable).
GeneralRe: (Monty) Python - The best first programming language Pin
Rob Grainger20-Nov-13 2:41
Rob Grainger20-Nov-13 2:41 
GeneralRe: (Monty) Python - The best first programming language Pin
_Maxxx_20-Nov-13 13:11
professional_Maxxx_20-Nov-13 13:11 
GeneralRe: Python - The best first programming language Pin
Dan Neely20-Nov-13 3:01
Dan Neely20-Nov-13 3:01 
NewsA case for developers as artisans, not just artists Pin
Kent Sharkey19-Nov-13 5:10
staffKent Sharkey19-Nov-13 5:10 
GeneralRe: A case for developers as artisans, not just artists Pin
mikepwilson19-Nov-13 5:24
mikepwilson19-Nov-13 5:24 
GeneralRe: A case for developers as artisans, not just artists Pin
Dave Kreskowiak19-Nov-13 5:49
mveDave Kreskowiak19-Nov-13 5:49 
NewsNokia shareholders approve Microsoft deal Pin
Kent Sharkey19-Nov-13 5:08
staffKent Sharkey19-Nov-13 5:08 
GeneralRe: Nokia shareholders approve Microsoft deal Pin
Septimus Hedgehog20-Nov-13 0:37
Septimus Hedgehog20-Nov-13 0:37 
NewsUK Gets Google, Microsoft to Step Up Online Child Porn Fight Pin
Ravi Sant18-Nov-13 23:37
Ravi Sant18-Nov-13 23:37 
NewsGoogle agrees to pay states $17 million in browser privacy settlement Pin
Kent Sharkey18-Nov-13 10:48
staffKent Sharkey18-Nov-13 10:48 
GeneralRe: Google agrees to pay states $17 million in browser privacy settlement Pin
MacSpudster18-Nov-13 13:28
professionalMacSpudster18-Nov-13 13:28 
GeneralRe: Google agrees to pay states $17 million in browser privacy settlement Pin
Brisingr Aerowing18-Nov-13 14:42
professionalBrisingr Aerowing18-Nov-13 14:42 
GeneralRe: Google agrees to pay states $17 million in browser privacy settlement Pin
_Maxxx_18-Nov-13 15:42
professional_Maxxx_18-Nov-13 15:42 
News10 reasons the browser is becoming the universal OS Pin
Kent Sharkey18-Nov-13 10:46
staffKent Sharkey18-Nov-13 10:46 
GeneralRe: 10 reasons the browser is becoming the universal OS Pin
Rob Grainger20-Nov-13 3:00
Rob Grainger20-Nov-13 3:00 
NewsTop 20 mobile skills in demand Pin
Kent Sharkey18-Nov-13 10:19
staffKent Sharkey18-Nov-13 10:19 
GeneralRe: Top 20 mobile skills in demand Pin
Nemanja Trifunovic19-Nov-13 5:41
Nemanja Trifunovic19-Nov-13 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.