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

 



Forgot your password?
typodupeerror

Comment The headline is not entirely representative. (Score 1) 273

From a Twitter employee: Twitter *routinely* locks down deployments. The lockdown currently might indeed be inspired by Musk's offer, but it's not unique in Twitter's history, nor especially uncommon, from what the person at Twitter says. This is simple prudence on the corporation's part, and I don't think it's them necessarily defending themselves against bad internal actors (with "bad" meaning "anti-Musk" or "anti-free-speech" or whatever) but simply being prudent. Twitter locks down during nearly any "big event" - super bowls, elections, many kinds of things, and this is merely another one of THOSE. This lockdown is perhaps in anticipation of a flood of traffic, to keep things stable when the site is getting a ton of extra use.

Comment Re:Better teach them C (Score 1) 426

Let's see a simple example. In Python there is a subtle matter of memory management that can be dangerous to the untrained programmer. When you copy a list like this: a = b you are creating a pointer to the other list, when you copy like this: a = b[:] you are allocating memory for a new list and copying the contents.

When you know C, the difference between the two copy instructions above is obvious, but if you don't know what is memory management this can become very difficult to understand. I bet there are many bugs created by Java, Python, and other modern languages that come from this inability to understand how the language works under the hood.

Well, in all fairness to Java, the memory management rules are pretty simple - people rag on Java for being too simple, but they don't consider how easy it is to actually understand what happens when you pass copies of references around. And there are no exceptions to passing copies of references as method arguments; it's how it's done, and the only way it's done. That makes Java far more "knowable" than python, for better or for worse, because the rules are constant unless some moron decides to do things differently than the Java conventions suggest and refuses to document it. Java nudges you really hard towards an acceptable middle. That hurts the people who really, really know what they're doing (and helps the people who know even more than the people who really, really know what they're doing, because they can game the JIT) but it means that even newbies can generally create decent java - and if they do it wrong, java punishes them enough that they have a real impetus to get it more or less right. Of course, with all that said, C is a better language to master first. By all means, teach them C.

Slashdot Top Deals

"Anyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin." -- John Von Neumann

Working...