Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:The absolute #1 contribution of Java (Score 0) 382

"Whoosh," is the sound you hear over your head. What's the point of Java?

You really do *not* want the honest answer to this question, but I will give it to you anyway: So people who would otherwise be employed asking "Would you like fries with that?" can get non-performance critical programming jobs.

Why do people use it vs why do people use C/C++ vs. Java? Sometimes you need to be closer to hardware. This is one of those times. Therefore, you wouldn't use Java.

You *always* have to be closer to the hardware:

#1: Almost everything is a mobile device these days; people buy laptops instead of desktops, cell phones music players, etc.. The closer you are to the hardware, the better your battery life, the lower power your processor can be to do the same amount of work, the cheaper the unit price for the lower powered hardware and smaller battery, the lower the cooling system costs (mostly, you can go without them, or operate them on "low"), etc., etc..

#2: Being closer to the hardware lets you reduce the number of blades/servers/PaaS instances that you require in your data center or cloud. This reduces costs, again in terms of cooling, but also in rack space, and power requirements. Facebook rewrote their PHP code to be compiled to binary code, and it saved them over 50% in servers. When you are a startup, and have tons of VC money to throw hardware at a problem, you can get away with not having to worry about those things, but when it's time to get to scale, they start to become major issues.

You can *get away* with not being closer to the hardware... for a *short time*, when you are engaged in rapid churn (e.g. new web UI ever 2 hours), or doing a lot of rewrites or running on hardware that better than the hardware you intend to deploy on, but after that being closer to the hardware is *the overriding thing*.

Comment Answer to the related question... (Score 1) 313

Answer to the related question... "What smart phones out now are (or can be reasonably outfitted to be) closest to a dumb phone, considering reliability, simplicity, and battery life?".

That's easy: any of them that you don't install all of those crappy, battery-sucking Apps on, and turn off polling for push notifications from Facebook, email, and so on, so they they aren't constantly running the battery down because then they can actually get the application processor into sleep state once in a while without some stupid polling interval waking them up to use more battery every few picoseconds.

Comment Java is dysfunctional (Score 1) 414

Java is not functional

Only because Oracle keeps breaking it. The Java virtual machine's security has proven to be Swiss-cheese enough that Oracle is falling back on the traditional video game console security paradigm (reliance on commercial code signing certificate authorities) rather than actually restricting what a program module can do.

Comment Variable type, name, and constructor should differ (Score 1) 414

Foo foo = new Foo()

Which isn't necessarily good style.

First, the type name in a declaration can and often should be more generic than the constructor. It could be an interface that the constructed class implements or an abstract class that the constructed class extends. For example, you can do Map map = new TreeMap() if you're not going to call any tree-specific methods later on.

Second, why name the variable similarly to the class? Map enemies = new TreeMap() makes the variable's purpose easier to understand.

Comment New mediums hereinafter created (Score 1) 224

Personally, it seems extremely unlikely to me that any person or organization would think it worthwhile to do something based on any reward requiring a monopoly more than thirty years down the road.

The amicus brief by Dr. Seuss Enterprises in Eldred v. Ashcroft implied that one key objective of a long copyright term is to cover adaptations into new mediums created decades after first publication of a work.

Comment Re:It's not that great (Score 1) 414

typing them on many keyboard layouts that are not en-US is quite uncomfortable.

Doctor, when I do this with my arm, it hurts.

Rapidly switching back and forth between en-US and the keyboard layout for your native language can be uncomfortable as well. "Doctor, the contortions that I have to make between doing this with my arm and doing that with my arm hurt. I am required to do both for my job."

Slashdot Top Deals

As long as we're going to reinvent the wheel again, we might as well try making it round this time. - Mike Dennison

Working...