Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:another language shoved down your throat (Score 1) 415

there is no such thing as an error in indentation in other languages. Indentation is simply whitespace added as a guide for the programmer and is entirely optional.

So

if (a) do_b();

is exactly the same as

if (a)
    do_b();

which is exactly the same as

if (a)
\tdo_b();

I think python as an introductory language is good as it forces the learner to understand indentation as a good thing, but in the real world its less useful and more a straitjacket that can be bad. For example, when adding some new code I will often put it at the beginning of the line (ie with no indent) so I can see it more clearly whilst coding (usually this is for temporary tracing lines), and only indent it before commit. Sometimes a big block of switches is much more clearly laid out like my first example.

None of these causes errors in readability of the code, which is really what indentation should be all about. Good for python enforcing this, but bad of python for not offering the curly-brace alternative when you need it.

Comment Re:another language shoved down your throat (Score 2) 415

what do you mean, picking up steam - Enterprise (those who are Windows shops of course) use C# extensively.

However - think of it like this. Ten years ago, you'd be the one saying Visual Basic is the most widely used language in enterprise, so we should be teaching kids that. And today, those kids would be coming out of college knowing all about VB6 (note, schools don't change curriculums overnight, it takes a long time for them to realise, and even longer to implement change - Java was popular in 1996 which is when it started to gain traction in university departments).

So, I hope this shows you the fallacy of teaching using "what enterprise wants now". You need to teach what will stand the kids in good stead for the future, that teaches them fundamental programming concepts that they can use their knowledge to apply to other languages. Personally I think they should teach a language that no-one uses in industry. Pascal (or Oberon) or something dedicated for teaching.

Oh, and that only applies to Windows shops, non-windows people don't use C#.

Comment Re:Not Ready Yet... (Score 1) 104

true, but all those HTML elements tend to get laid out in increasingly complex divs, with a whole heap of CSS added.

I was really referring to the javascript "controls" that are html elements with a huge heap of javascript behind them providing functionality.

I'd like to see webgl + native code running in the browser as a standard, probably based on a superset of C so anything else can be implemented in it.

Comment Re:Not Ready Yet... (Score 1) 104

3d is more accelerated than 2d - its faster simply becuase the graphics cards practically only do 3d stuff now. 2d, there for desktop windows as almost an afterthought.

Some systems (eg Direct2d) are built on top of 3d graphics stacks, you just have a flat projection and no depth co-ordinates to give the impression of a 2d graphics surface.

So you see WebGL is significantly faster than HTML drawing, which is why it might be a good thing overall... the problem comes with replacing a well known standard with god-knows-what graphics drawing. Hopefully it'll settle down, and maybe one day we'll get a C-style logic that draws WebGL graphics in a browser as a standard.

And then someone will replace it with something else.

Comment Re:syntax (Score 2) 132

TBH I'd rather have a small language that is a lot of small, well defined building blocks and make what I need out of it (maybe I played with lego too much as a kid), than a language that has the kitchen sink in it somewhere - or worse, has 3 kitchen sinks in it because they kept on adding them in different versions. (yes .NET, you)

So I'd say perl or C are better languages than C# because they are small. Once you know the basics, you can do anything in them. With C# I'm forever finding new things I didn't know it could do or things it does if only I had the newer version.

With a small language, you can build self-contained libraries that fulfil your need for expansion of new features as they are invented, and replace them if needed.

I think this is the best, a language should be like an kernel, not a full OS with minesweeper, notepad and media player just because they could be added to it.

So I think I agree with you :-)

Comment Re:syntax (Score 2) 132

rubbish. Each element of a language is something you write down. It can be a symbol or it can be a word (or in Java it can be aReallyLongSetOfDescriptiveWords.In.Namespaces)

The point is that once you've learned the sigils, its no longer a mess, its perfectly understandable and concise. There's no scatter-brainedness there or urban sprawl of design.

Think of it this way - if you took any language and converted it to a set of machine-readable numbers, they'd all look the same. The difference is that you want something humans can understand. Perl manages this - _but_ you have to take the time to learn what those symbols mean. In more wordy languages, you get the understanding from the English names they use instead. The trouble with that is that many people read the English words and assume they fully know what they mean, when they don't necessarily do.

We've all seen people who'll use a list when an array would be more appropriate. Even though the code works, they haven't learned the difference between the collection classes and so pick the wrong one. In perl you can't accidentally make that mistake because there is no 'array' or 'list' there's just 2 squiggles.
Learn the squiggles, you learn which one to use, your code becomes correct.

Comment syntax (Score 4, Insightful) 132

Now, the problem with that is that it only works if you know the distinction in the syntax. So people coming into Perl get lost in this sea of ampersands and stars and all sorts of other symbols that we use in the language. And until you get past and it sort of goes into your hind brain and it just translates immediately, âah yes, thatâ(TM)s a scalar variableâ(TM), âah yes, thatâ(TM)s a type blah, blah, blahâ(TM), it doesnâ(TM)t make sense. It looks like line noise, and I fully agree.

and he's quite right, because the alternative is COBOL or Visual Basic where every syntax element is spelled out in big words.

There's a reason Windows developers like C# and not VB.NET (even though its the same thing) and that's the syntax. With C# you get to use a few symbols for various bits that are otherwise spelled out in VB. Perl just takes it to the limit - which means you have to understand what those symbols mean, and if you don't it looks like garbage. Which, I guess, C# looks like to my mum.

So in other words: learn your shit guys, you can't criticise perl for looking like crap unless you have taken the time to learn the language. And then you'll think it looks correct.

Comment Re:A good idea, but... (Score 1) 210

and today Google has reinstated some links

http://www.bbc.co.uk/news/tech...

"We are learning as we go," Peter Barron, head of communications for Google in Europe, told the BBC.

Speaking to Radio 4's Today programme, he dismissed claims made on Thursday that the company was simply letting all requests through in an attempt to show its disapproval at the ruling.

uh-huh.

Comment Re:Well, duh... (Score 5, Interesting) 210

in this particular case, the guy the article was about didn't make the 'forgetme' request, it was some Joe Schmoe who was objecting to a comment he posted in the comment section under it.

I don't know if the guy's comment is irrelevant now, I doubt it as it was just some feeble comment he wrote - not an article directly about that user. It could be he wrote something he is now embarrassed about, but more likely it is just some dick who wanted to try the system out.

Slashdot Top Deals

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...