Click here to Skip to main content
15,892,674 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
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 
GeneralRe: (Monty) Python - The best first programming language Pin
Rob Grainger20-Nov-13 2:41
Rob Grainger20-Nov-13 2:41 
Silvabolt wrote:
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).


Or even, using LINQ goodness, one of the following, which may be closer to the original:

The readable version:

C#
var evens = from n in numbers 
            where n % 2 == 0
            select n;


The techie version:

C#
var evens = numbers.Where(n => n % 2 == 0);


Both of which remain more readable than the Python version.

(Edited for indentation)
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

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 
GeneralRe: Top 20 mobile skills in demand Pin
Kent Sharkey19-Nov-13 6:47
staffKent Sharkey19-Nov-13 6:47 

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.