Please create an account to participate in the Slashdot moderation system


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Re:Refactoring done right happens as you go (Score 1) 172

by Bill Dog (#49177901) Attached to: Study: Refactoring Doesn't Improve Code Quality

You might as well be deriding a programmer for being gay, or a woman.

No, because in today's world sexual preference and gender bigotry are disdained, but religious bigotry is not only acceptable, it's considered fully warranted. (Well, except against Muslims, because it could lead to harassment and discrimination. And they don't deserve that. *cough*Unlike Christians. And those among Jews who are religious and pro-Israel.)

The human race never progresses enlightenment-wise, we just periodically change what groups it's acceptable to hate.

Comment: Re:thoughts (Score 1) 5

by Bill Dog (#49177643) Attached to: I owe Bill Dog continuation, Prius Hack ideas

From that latter link I learned that hybrids can only travel 0-2 miles on electric-only. I didn't realize that they then must have really only a fraction of the batteries that electric cars have.

And makes me realize that "hybrid" just means mix, and not in any given proportions. As in, it has two drivetrains, but it doesn't run on 50% electric and 50% gas. I see that the Yaris for example with a Toyota 1.5L I-4 is rated at 30/37 MPG. I guess to make that 51/48 MPG, in a larger and heavier car, with very small battery capacity to play with for assistance, what you're paying for actually is their clever programming.

Comment: Re:Bad idea (Score 5, Insightful) 523

by pla (#49174751) Attached to: Snowden Reportedly In Talks To Return To US To Face Trial
As I've said before, if he's really this stand up guy, why did he run? IF he really had good and legal reasons to do what he did, take it to court and face the music.

I know, right? Like how the Sons of Liberty didn't disguise themselves as Indians before dumping a load of tea into Boston Harbor, and then when done, turned themselves in to the nearest British garrison? We need more heroes like those fine, upstanding, nametag-wearing gentlemen.

if you break the law to make your point that the law is unjust you should stand ready to be arrested, imprisoned and tried in court for what you choose to do.

"Ready to be" doesn't mean adopting a Gump level of naivete and making it easy for the government to remove you from the public view. By him fleeing the country (and seeking asylum in a country we traditionally mock for their lack of an open and fair government, no less), we continue to discuss Snowden's actions years later. If he had stuck around, we would all have forgotten about him as soon as the next weekly scandal distracted the media.

Comment: Re:Please stop. (Score 1) 230

by pla (#49174071) Attached to: Gritty 'Power Rangers' Short Is Not Fair Use
I admittedly don't usually look at the submitter. If the FP gets my attention, I'll click through to read the rest of the submission, and, maybe, even TFAs where appropriate.

In Bennett's case, I have to admit he has become a truly master-level troll, in that he has learned to write an opening paragraph that gets my attention but doesn't give away his essential Bennett-ness. By the third paragraph, though, I usually catch on, stop reading there, and just write the obligatory "fuck Bennett" post.

Comment: Re:c++? (Score 1) 372

by pla (#49173363) Attached to: Ask Slashdot: Which Classic OOP Compiled Language: Objective-C Or C++?
You make it sound like having a non-stupid, modern string class is a monstrosity that needs 16 cores to run.

You can split a string in any language. If you want to write in C++, write in C++. If you want to write in VB.Net, write in VB.Net.

C++ doesn't need to look like VB.Net just because you don't like the syntax.

Comment: thoughts (Score 1) 5

by Bill Dog (#49173271) Attached to: I owe Bill Dog continuation, Prius Hack ideas

1) It seems like, given a non-lead foot, the most power would be required at getting going and accelerating when already at a high speed. I wonder why they didn't do like GM did later with the Volt and, as I understand it, have it in EV-only mode as a rule, except only when extra oomph is needed, or when the battery is running low.

3) The no cruise below a certain speed thing might not be so much that CC shouldn't be used below a certain speed, as it shouldn't be used on the kinds of roads where you drive below a certain speed. I.e. we probably want no auto-pilot on residential streets, having driveways people can back out of, and kids that could suddenly run across. It's probably really only sufficiently safe outside of (busy) cities.

And the complete cancelling means you deliberately have to set the speed you want to use, when traffic conditions might've changed since the last number you picked.

4) Ah, so the Prius needs a "Stuck mode"!

7) I'm trying to imagine how roadside assistance organizations would support these vehicles. I guess be able to provide/sell you a spare battery for the trunk for booting/running the computer, then a gallon or two of gas for E1, and then a high voltage battery onboard the tow truck to spin M1.

Comment: Re:One solution to air hijackings (Score 1) 9

by Bill Dog (#49172715) Attached to: gun garbage [long]

Interesting; like a mini version of shotgun ammo, for one's pistol. And yet the FAMS eventually abandoned it.

And I generally agree about the door system, except for the one loophole of radicalizing an existing employed airline pilot. He uses the element of suprise and the cockpit pistol to blow away the other(s) in the room, and then can crash it into whatever he pleases. We really could use sufficiently advanced auto-pilot technology, where a signal could be sent from the FAA to a given plane and it would discontinue recognizing inputs from the onboard controls and switch to automatically proceeding to and landing at the nearest airport (approved for this and in the database of the system as such).

Comment: Re:Good luck with that. (Score 1) 480

by pla (#49172515) Attached to: Why We Should Stop Hiding File-Name Extensions
Did you?

Why, I did! Thanks for asking!

"The "mystery" is that nowhere in your code does it mention the word "split".

It's still a stupid argument, because any problem you can solve with a free and common library is not a real problem.

Well, I have to agree with the "stupid" part, insofar as if you can't figure out how to parse a simple delimited string without pulling in multi-MB frameworks, you have no place writing code. Beyond that, though, the whole conversation amounts to a holy war. Do you prefer Emacs or Vi? Top or bottom? Allah or Jesus? Pointy end or round end?

But to get back on topic - Do you prefer extensions or icons? Correct answer: "Why not both?"

Comment: "WILL" be too fragmented? (Score 1) 125

by pla (#49172411) Attached to: Will you be using a mobile payment system?
Google Wallet / Android Pay. Apple Pay. CurrentC. Samsung Pay.

Competition works well when all players adhere to certain standards. It doesn't work well when everyone does their damnedest to lock out the competition.

Personally, I find Samsung's announcement the most interesting so far; because while Google and Apple require the clearly unreasonable expectation that merchants won't actively disable NFC on their card readers, Samsung plans to work with existing card-swipe readers.

That should lead to an interesting legal showdown, eventually, because CurrentC forces exclusivity terms on their retailers, while retailers can't block Samsung's approach as easily as they could Google and Apple's.

Comment: Re:B0ll0cks... (Score 3, Informative) 464

Not defending her, but both your excuse that the other lizards did it

Did you respond to the wrong post? Nothing I wrote can be read as "The other lizards did it" - not without cropping the entire post to remove all context.

The point I made (I'm not even "excusing" her) is that the law she's accused of breaking is an executive decree that was made TWO YEARS AFTER SHE LEFT OFFICE.

Comment: Good luck with that. (Score 2) 480

by pla (#49171629) Attached to: Why We Should Stop Hiding File-Name Extensions
it might be time to admit that users need to understand, embrace and responsibly use the only plain-text, obvious indicator of what a file actually is.

Oh man, good one! You had me going until that line. Beautiful!

I just responded in another thread where actual programmers argued about whether or not it counts as "confusing" to split a delimited string without actually using the name "split" for the method that does the work.

And you want to try to get the average end user to understand the difference between ".XLS", ".XLSX", and ".XLSX.EXE"?

May as well swing for the fences, I suppose.

Comment: Re:c++? (Score 2) 372

by pla (#49171491) Attached to: Ask Slashdot: Which Classic OOP Compiled Language: Objective-C Or C++?
Three includes! Two methods! A loop! Six lines! And he didn't call it "George" like you would have!

...vs pulling in a massive amount of overhead with something like Boost or QT, complete with their own huge list of dependencies... For a program that may well do nothing more than parse a CSV file.

"What if" if needs to work on UTF-16? No, wrong question by a wide margin - What if it doesn't? Do you always use a CNC to cut a 2x4 in half, just because you have access to one? What if you have 5/4 lumber? What if you have cellular PVC? What if you have rebar? All valid questions - And all completely irrelevant if you just need to cut a 2x4 in half.

We can all agree that building some not-strictly-required flexibility into our code generally counts as a good thing, that will frequently save us time and effort down the road. We don't need to build a tilt-a-whirl for someone that wants a tire-swing, though.

"Well, if you can't believe what you read in a comic book, what *can* you believe?!" -- Bullwinkle J. Moose