Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

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

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.

I do that in C++ all the time, especially when it's something I don't intend to keep. This is definitely something that you can't do in Python, but that doesn't keep me from liking it.

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

With Python, on the other hand, I'm actually more likely to have an error in the indenting, because there's no easy way to see how many blocks I'm terminating when I outdent by an arbitrary amount.

I've never really had that problem, but then I always break up code into reasonable sized functions so the nesting doesn't get too deep. Perhaps that's what you need to change.

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

I used Pascal for almost all of my CS courses (but this was in the mid 80s). I got my first job as a C programmer with no formal C experience, but that wasn't a problem, and I never had any problems adapting to new languages during my career as needed. I like some languages more than others, but I can get the job done in anything needed with a short learning curve. I've done mostly C++, which I enjoy, and picked up Python on my own a couple years ago, which I love. I wouldn't call myself a Python expert by any stretch, but I could become one in short order if the need arose. It's all about the programming: Thinking logically, breaking tasks down in discrete steps that do the right thing, knowing what can go wrong. The language is just syntax. It might make some things easier and some things harder, but they're all doable.

Comment Re:What's the point? (Score 1) 178

It's not a spin at all. In order for Microsoft to prove to governments that their software does what it's supposed to, they are willing to share the source, because that's the only way you can really trust software. It's not spin to say that you cannot truly trust software unless you can see the source (and understand it, and be able to build it, etc., etc.)

Comment Set your sights low, Microsoft... (Score 1) 681

Wow, so one of their major goals is to release something people actually want to upgrade to.

Way to set your sights low, Microsoft.

Perhaps you should admit that Metro was nothing other than your executives suffering from collective lust explosion over Apple taking 30% off the top of every app sale and hoping that MS could force Windows users into the same situation.

Comment Re:Because I'm lazy (Score 1) 279

We have all that, but not the automated tests for the stuff I'm involved with (other departments probably do). It's something my manager has been making a push for in the past few months (and I'm totally on board with), but it's going to take a lot of time because of the sheer amount of legacy code.

Comment Re:waste of time (Score 1) 380

Then there are all the incentives to make traffic worse... stop light cameras that generate revenue but don't increase safety because the yellows are too short. Or the urban legend that shopkeepers push to get lights timed so more cars are stopped out in front of their shops, an idea that's believable, although I don't know if it's true. Then of course, there are bad driving habits, and the fact that one tailgater or one slowpoke can cause major cascades that lead to huge backups (and I'm not talking about accidents).

Slashdot Top Deals

I've noticed several design suggestions in your code.

Working...