My point was mainly that the pseudo standard for coding is 1 statement per line, and most people accept that.
The grey area is whitespace (phrasing) and where brackets go...
Anyway, ultimately yes at the end of the day i agree 100% with your assessment of 'measurement of complexity'. It's a simple measurement, but means very little. You can see less than 60 lines cripple a computer, and sometimes you can see 100 000 lines of very efficient code, and people count comments as 'lines of code', and includes etc, which is terribly inaccurate.
Better to look at algorithm complexity, but then python peeps can't go saying 'python is the best!'.
The fact of the matter is python has no real advantage over other languages with a problem like this. Every language has strong points, and if you want to show why a language is awesome you need to look at what the languages strengths are... This specific problem is in no way playing to pythons strengths, it's just a procedural problem that can be implemented in almost any language in an efficient way (all the statements in py that were used map to or are in other languages).
agreed - seems a fairly large part of the equation that they left out.
It's really not magic, i'm surprised we spend so much money studying a relatively simple thing instead of trying to work out something new.
it's interesting how because i own an ipod, all of a sudden i'm a thief.
I'd love to see a suit against them for defamation - I for one dont have stolen music on my ipod, and i'm sure i'm not alone in this.
I'm not sure how you can just tar an entire group of people with the same brush like this.
Racism is a bigger problem than people would like to believe, that much i agree with, but to put a blanket statement out there about an entire group of people being racist is a bit harsh.
Fact of the matter is that many of these people don't even come into contact with minority groups as they're kept in a bubble.
IT is an interesting profession as it's a very mixed society. You learn very quickly who is and isn't racist. I like the high level of mixing, and think it is a good way of reducing racism somewhat, as you develop friendships and relationships with people from many different backgrounds.
Firstly i'd like to say that i dont agree with racism etc, and would prefer it isn't in our society.
Having said that, asking a core part of internet usage to 'filter' what they show in this case would set a dangerous precedent.
Are we saying someone at google should actively decide what should and shouldn't be shown?
Sure it may start off simply enough, but perhaps one day they decide a certain political candidate doesn't suit their purpose so they filter that out from view as well... Perhaps they start deciding what is and isn't news...
I'd prefer a page i can choose not to look at than a company deciding what my opinion on certain topics should be and presenting wholly biased views.
this is akin to saying lets filter news papers by making the people that deliver them do the editing.
It's slow, and frankly not the right way to tackle the problem.
lets instead have software vendors address the problem by making decent spam filters more usable to people that think they are too hard... filtering at the terminal is the correct place for this activity.
i block adds because I don't like people trying to influence what I do.
It's all way too intrusive, takes up bandwidth, and slows me down.
As for adds in other mediums, if I had the choice of not getting them, I'd probably love that also. Other than the computer magazines (which I buy for quality of content - part of my choice is made based on volume of adds) where I like to see some of the adds, I generally just find adds an annoyance that should be terminated with much prejudice.
One company that does adds well is google. I've got to admit that it's at least trying to target the advertisements so that you just don't get miles of junk you're not interested. They're also relatively unobtrusive...
My point was mainly that the pseudo standard for coding is 1 statement per line, and most people accept that.
The grey area is whitespace (phrasing) and where brackets go...
Anyway, ultimately yes at the end of the day i agree 100% with your assessment of 'measurement of complexity'. It's a simple measurement, but means very little. You can see less than 60 lines cripple a computer, and sometimes you can see 100 000 lines of very efficient code, and people count comments as 'lines of code', and includes etc, which is terribly inaccurate.
Better to look at algorithm complexity, but then python peeps can't go saying 'python is the best!'.
The fact of the matter is python has no real advantage over other languages with a problem like this. Every language has strong points, and if you want to show why a language is awesome you need to look at what the languages strengths are... This specific problem is in no way playing to pythons strengths, it's just a procedural problem that can be implemented in almost any language in an efficient way (all the statements in py that were used map to or are in other languages).
http://rubyquiz.com/quiz27.html
quite a nice solution in ruby - if you took the commenting out, it'd be pretty short...
full credit to the owner of the page for the solution, i just figured someone would have a nice solution in ruby, and this came up through google.
noone forces you to put your open braces on the following line...
:)
that saves you at least 6 lines by my count
noone forces whitespace in between statements - there's another 8(ish) lines.
agreed - seems a fairly large part of the equation that they left out. It's really not magic, i'm surprised we spend so much money studying a relatively simple thing instead of trying to work out something new.
it's interesting how because i own an ipod, all of a sudden i'm a thief. I'd love to see a suit against them for defamation - I for one dont have stolen music on my ipod, and i'm sure i'm not alone in this.
I'm not sure how you can just tar an entire group of people with the same brush like this.
Racism is a bigger problem than people would like to believe, that much i agree with, but to put a blanket statement out there about an entire group of people being racist is a bit harsh.
Fact of the matter is that many of these people don't even come into contact with minority groups as they're kept in a bubble.
IT is an interesting profession as it's a very mixed society. You learn very quickly who is and isn't racist. I like the high level of mixing, and think it is a good way of reducing racism somewhat, as you develop friendships and relationships with people from many different backgrounds.
Firstly i'd like to say that i dont agree with racism etc, and would prefer it isn't in our society. Having said that, asking a core part of internet usage to 'filter' what they show in this case would set a dangerous precedent. Are we saying someone at google should actively decide what should and shouldn't be shown? Sure it may start off simply enough, but perhaps one day they decide a certain political candidate doesn't suit their purpose so they filter that out from view as well... Perhaps they start deciding what is and isn't news... I'd prefer a page i can choose not to look at than a company deciding what my opinion on certain topics should be and presenting wholly biased views.
this is akin to saying lets filter news papers by making the people that deliver them do the editing.
It's slow, and frankly not the right way to tackle the problem.
lets instead have software vendors address the problem by making decent spam filters more usable to people that think they are too hard... filtering at the terminal is the correct place for this activity.
i block adds because I don't like people trying to influence what I do. It's all way too intrusive, takes up bandwidth, and slows me down. As for adds in other mediums, if I had the choice of not getting them, I'd probably love that also. Other than the computer magazines (which I buy for quality of content - part of my choice is made based on volume of adds) where I like to see some of the adds, I generally just find adds an annoyance that should be terminated with much prejudice. One company that does adds well is google. I've got to admit that it's at least trying to target the advertisements so that you just don't get miles of junk you're not interested. They're also relatively unobtrusive...