|
Oracle has asked a judge -- again -- to throw out the verdict that found Google rightfully helped itself to Oracle programming code to create the Android operating system. If only they put half this effort into advancing Java...
|
|
|
|
|
ONE VOTE UP FOR YOU. Never mind just use scala??
|
|
|
|
|
I'm sure the Oracle lawyers are cringing over the insistence of upper management to keep beating this dead horse. There's only so many times you can whine at a judge before s/he files a complaint with the state bar. I suspect Oracle is about to get slapped around in court.
|
|
|
|
|
As enterprises continue to focus on implementing a cloud infrastructure, many still face roadblocks when it comes to hiring candidates with the right skills. I can recognize cumulonimbus clouds, does that count?
|
|
|
|
|
The concept of a code smell is, perhaps, one of the most evocative in our profession. The name itself has a levity factor to it, conjuring a mental image of one’s coworkers writing code so bad that it actually emits a foul odor. But the metaphor has a certain utility as well in the “where there’s smoke, there may be fire” sense. "Whoever smelt it, dealt it"
|
|
|
|
|
I wonder what code smell looks like for a scripting language.
Never mind, a scripting language is, by definition, code smell.
Marc
|
|
|
|
|
That would have been my answer as well.
TTFN - Kent
|
|
|
|
|
Now I think we can define the term "blog smell".
|
|
|
|
|
Quote: I’m referring to methods that return values and have side effects at the same time. For instance, consider a method that takes a string, writes that string to a file, and then returns a Boolean indicating whether or not the operation succeeded.
Maybe I'm showing my ignorance here, but I'm trying to understand why this is bad.
I understand command/query separation. It's a great idea especially in distributed or high load environments. The problem is sometimes you really, truly need to know when something didn't work. I'm assuming what is "meant" to happen is you send the command to store a value, then you send a request to see if that value was stored.
Again, I know of (and deal with) situations where this is the absolute best, safest and most sensible way to do it. But not always. I don't feel this should be dogma.
Can Anyone explain what I'm missing? Or how it "should" be dealt with?
cheers
Chris Maunder
|
|
|
|
|
I think the example he gives is too simple a case. He's talking about side effects. A side effect is something that happens to some other part of the system as a consequence of the operation. Returning the result of an operation is not a side effect, it's the result of the operation. Of course, you need to know if the operation succeeded. He talks later on about asking for an invoice's total but not expecting it to charge a cc just because you asked for a total. It's that sort of side effect that is undesirable. But, sometimes, side effects are desirable, as in the case of JIT lazy loading, which is more about initialization than side effects.
Just my $0.00002 cents worth.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I agree that the example given is nonsense. The writer appears to actually be arguing that you should write the string and then make a separate call to ask whether that write succeeded, which is the smell of rotting bodies in humid tropics.
(One problem is Meyer was wrong. Requiring that queries have no side effects (be const in C++ parlance) is ideal, though not always possible. Extending that to commands often makes no sense, especially when writing to a file. I suppose the good news is that the last method I wrote which did exactly his example threw an exception on error, thus the method's return value was, indeed, void.)
|
|
|
|
|
One man's C++14 is another man's code smell.
(Seriously; I recently worked with a guy who demanded C++11/14/17 be used and then freaked out when someone actually did, usually me.)
Besides, sometimes code smells like fresh cinnamon rolls.
|
|
|
|
|
Daniel Attinger, a professor of mechanical at engineering at Iowa State University, is working on developing a tiny device that produces a continuous supply of wine. And the winner of this year's Nobel Prize is...
|
|
|
|
|
|
... the Lounge expressing its dissatisfaction about [Insert Subject Here]?
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
The Privacy Shield agreement replaces the previous accord, called Safe Harbour, that was struck down in October 2015. "The slow blade penetrates the shield"
|
|
|
|
|
The system responsible for the first moon landing is now readily available online, after an enterprising former NASA intern uploaded the Apollo Guidance Computer code to Github this week. Do they accept pull requests?
Now you can finish your scale model
|
|
|
|
|
Wendy's said hackers were able to steal customers' credit and debit card information at 1,025 of its U.S. restaurants, far more than it originally thought. Isn't it punishment enough that these people ate at Wendy's?
|
|
|
|
|
Better than McDonald's. Barely. (Though an apple pie from McDonald's with a Frosty from Wendy's is bliss.)
|
|
|
|
|
PFL researchers have produced a tunable, graphene-based device that could significantly increase the speed and efficiency of wireless communication systems. Their system works at very high frequencies, delivering unprecedented results. Oh, graphene. Is there noThing you won't help us with?
|
|
|
|
|
A Cambridge, UK, resident has finished building a computer that’s so big it takes up an entire room. But this isn’t a new contender for the supercomputer list; right now, it’s mostly being used to play Tetris. "A hobby's supposed to pass the time, not fill it."
|
|
|
|
|
Quote: room-sized microprocessor WTF? That's oxymoronic. There's no way to be "micro" and "room-sized" at the same time.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
how about room for ants?
|
|
|
|
|
People can do crazy things !
Ever seen a 2 banger made of pneumatic components ?
Not really hand help, but interesting.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Good Lord. I've always wanted to simulate a processor's internals, but I would have done it "virtually". No reason to spend that money and create a behemoth physically. And with VR, you could simulate all the "physical" equipment.
Marc
|
|
|
|