* Posts by JohnFen

5648 publicly visible posts • joined 20 Feb 2015

Boffins debunk study claiming certain languages (cough, C, PHP, JS...) lead to more buggy code than others

JohnFen

Re: It's "What's the best language" all over again

"I dislike seeing comments in code except as headers on methods saying what they do and offering information about parameters"

Me too -- those sorts of comments are harmful. But I disagree with you about comments in code being a red flag of some sort.

A bad comment is one that tells you what's happening (the code already tells you that). A good comment is one that tells you why it's happening.

JohnFen

Re: I'm glad its not my job.

" I'm sure someone will pop up shortly to say that if you're a good programmer and write tests for everything as you go along etc. then you will never have bugs"

Anyone who says that is demonstrably wrong. All nontrivial programs, without exception, have bugs. Skill & good process can reduce the number of them, but they can never reduce the number to zero.

JohnFen

Re: I'm glad its not my job.

"I grew up dealing with DoD's "Ada is the answer" abortion"

Oh, man, that triggers flashbacks. I remember spending a fair bit of pain and time becoming competent with Ada before everyone realized that it wasn't really suitable for much.

JohnFen

Re: Rust

"as the claim is it removes memory bounds issues."

But that's only one class of errors. There is a whole ocean of other errors that can happen.

JohnFen

Re: And they get paid money to do this?

Also there's something that academics are well aware of but the general public too often isn't: a single study means little. It only becomes significant after other independent researchers replicate the results. It may sound wasteful, but it's an important protection against error.

JohnFen

Re: It's "What's the best language" all over again

True. But in the hands of a skilled craftsman, the difference that a good tool vs poor tool makes isn't in the quality of the product, it's in how long it took to produce, and how much swearing was involved.

JohnFen

Re: It's "What's the best language" all over again

"you can blame Java, VB, APL, Assembler, etc for your bugs but you're the one who wrote the code."

Yes, the old adage "it's a poor craftsman that blames his tools" continues to remain in full effect.

JohnFen

Too simplistic

This seems too simplistic of a premise to me. Different languages have different strengths and weaknesses, and as a result are best suited for different sorts of tasks -- that, at the heart of it, is why discussions about "good" and "bad" languages are suspect right up front -- a given language can be the best choice for one sort of task and the worst for another.

If you're using a language for a task that it isn't well-suited for, you're going to have to write more (and more complex) code in order to make it work. I would expect that doing this would result in a higher defect rate. Using the same language for a task that it's designed for means that you'll have to write less (and less complex) code, which I would expect to result in a lower defect rate.

A study that just tallies defect rates with language use, but fails to take into account whether or not the language was suited for the task, means little. I would expect that sort of study would average out the defect rates and result in more-or-less the same "quality" score across the board.

Which appears to be the actual result in this study.

The Six Billion Dollar LAN: Intel hopes to gobble network kit biz Mellanox 'for $6bn'

JohnFen

Re: Monopoly?

Remember that in the US, it's 100% legal to be a monopoly. What's illegal is abusing your monopoly position.

Are you a Windows 1 in 10 (1809)? Or a mighty 80 percenter (1803)?

JohnFen

Re: 1803

Be careful about clicking the "Check for updates" button. Microsoft thinks that clicking that button means you want pre-release versions of all future updates to be automatically installed.

You like JavaScript! You really like it! Scripting lingo tops dev survey of programming languages

JohnFen

Re: Javascript is a horrible language

"IDEs could and it would make code more consistent."

Any language that requires a special (or any) IDE to make it usable is a fundamentally broken language.

JohnFen

That's equally true for all other programming languages as well.

JohnFen

Re: It will not last ...

This. I find Javascript tolerable. Java, not so much.

JohnFen

Re: Yeah...

If that's true, that's a huge condemnation of JavaScript.

JohnFen

Re: "frameworks" === "problems"

I agree -- Javascript itself is fine. Those frameworks are a problem.

JohnFen

JS is fine

As a developer, I have no beef with Javascript. It's fine. However, as a web user, I won't allow JS to run by default. But that's not JavaScript's fault -- that's a policy that I have for any code, in any language, that a website wants to run on my machine.

FTC gets back to work: Now, where were we? Break up Facebook and fine it $2bn, you say?

JohnFen

Re: Three companies that need to be broken up...

"Amazon tends to get blamed for mismanagement"

I don't fault Amazon for that. I fault Amazon for slurping huge amounts of data, just like Facebook, Google, etc.

JohnFen

Re: Three companies that need to be broken up...

"Was that an improvement?"

Yes, I think it was. Not to say that Verizon is great or anything, but the breakup of AT&T did solve a huge number of problems. That it introduced some new problems doesn't change that.

JohnFen

Re: He Speaks!

Wow. Sir Nick sounds like he's just as huge of a scumbag as Zuckerberg.

JohnFen

Re: FTC hadn't imposed a single fine ....

"Only when one part of Big Business is in opposition to another part does "social justice" legislation have a chance."

Maybe, but it's not much of a chance and only by accident.

JohnFen

Re: Three companies that need to be broken up...

So you're arguing that Amazon should be allowed to engage in abusive behavior across all of society because they give you, personally, good customer service?

Hey boffin, take a walk on the wild side: Stuffy academics need to let out their inner black hat

JohnFen

Is this a new thing?

I've been a "hacker" for decades, and in the past have never noticed a serious gulf between academic security researchers and non-academic security researchers. Yes, they each have their own different playgrounds, but I've not noticed cases where either side simply discounts the other's efforts. More typically, they have each informed the other.

Has this changed and I didn't notice?

Apple: Trust us, we've patented parts of Swift, and thus chunks of other programming languages, for your own good

JohnFen

Re: Just use Python. You need nothing else.

Yes, really. I didn't just make that up. The problem almost always comes in the form of tabs vs spaces, and is VERY hard to spot. I could be mistaken, of course -- but even if I am, whitespace issues have cost me at least as much time as programming errors.

It would be helpful if the Python interpreter could call out that specific sort of error, but it can't (or at least, the ones that I use don't), so it just ends up being a mysterious failure.

JohnFen

Re: Daniel Belin is right

Well, that's easy enough. Although I prefer C++, probably half of the programming that I professionally do is in just plain C anyway, so I would be fine sticking with that and avoiding all C-like OOP languages.

JohnFen

Re: Genuine Question

Yes, the problem you cite is a very serious one. Unfortunately, "defensive" patents are things that are effectively unavailable to anyone but the very well-funded. If you can't defend your "defensive" patent -- which takes money -- then it's all but useless.

The patent system has devolved to the point where it only provides benefits to large corporations and the very wealthy. It no longer performs the function that it was intended to perform.

JohnFen

Re: Daniel Belin is right

The point I was trying to make is that whether they are saints or not (and they're not) is not an important factor in determining whether this (or any) patent is a good or bad thing.

JohnFen

Re: Missing the point

Yes, but that stopped being the actual purpose of the US patent system years ago. Which is a fundamental reason the entire system is broken.

JohnFen

Re: Just use Python. You need nothing else.

That meaningful whitespace has cost me more time than actual programming errors. It's the main reason that I despise Python.

(Did that satisfy your desire to see whining?)

JohnFen

Daniel Belin is right

"Daniel Berlin observed in a Hacker News discussion, the patent claims Apple has made are "worrying.""

I agree. It's extremely worrying -- and ensures that I won't be using Swift until the patent expires.

Apple may have a good record and good intentions. But the history of software patents makes it very clear that having good intentions is not reassuring. You never know what the future holds. Apple may change its mind, or may transfer the ownership of the patents to another company that is less well-intentioned.

With patents (like contracts), the only thing that matters is their legal meaning. Intentions or how saintly the parties involved are mean nothing in the face of the written language.

Mozilla security policy cracks down on creepy web trackers, holds supercookies over fire

JohnFen

Re: Err didn't Microsoft get slapped down for this?

Do Not Track is different, because it's merely advisory for websites. A website has to actively agree to honor it.

The things discussed here do not require the cooperation of websites.

JohnFen

If Mozilla pulls this off

If Mozilla actually manages to block the things that are effectively impossible for me to block myself (supercookies and fingerprinting are the most obvious things), that might actually convince me to use the new Firefox. Although I strongly dislike the new Firefox because of unfixable usability issues, the ability to stop that sort of thing would likely be enough to make me suffer the UI in exchange for protection I can't get anywhere else.

Apple: You can't sue us for slowing down your iPhones because you, er, invited us into, uh, your home... we can explain

JohnFen

Re: The saddest thing about all this

"as far as I can tell, what Apple did was actually well-intentioned."

Maybe. It's honestly hard to know. But let's say they were well-intentioned. If so, it only highlights the abhorrent Apple attitude of "we know what's best for you, and we'll make all the decisions for you. Suck it up."

The truly sad thing is how far this same attitude has permeated from Apple into the wider computer industry. I see it everywhere these days, and it's horrible.

JohnFen

Re: Is everyone taking crazy pills?

"given the choice between my phone performing a task more slowly and my phone turning off, it's a pretty easy sell for the former."

Except that's not the choice.

JohnFen

Re: Built-in Obsolescence

This. As a person who doesn't value warranties, I don't pay attention to how long they last. I certainly don't consider them an indication of expected lifespan. If Apple is making the claim that the duration of the warranty is an indication of expected lifespan, then that immediately rules out buying any Apple product for me, as it makes them even more overpriced than I thought they were before.

JohnFen

"When the battery wears which parameter do you make effort to preserve?"

How about notifying the user of the problem and letting them decide?

JohnFen

That's not how it is

"Sorry you don't like the fact that we knocked down the wall to the lounge and installed a new air vent through the ceiling, but that's just how it is."

This is faulty logic. If you hire a contractor to do renovations, and the contractor determines that it's necessary to do work that was outside the original deal (such as having to knock down a wall to install a new air vent), the contractor will explain it to you and get your permission before taking that wall out.

Apple's own analogy demonstrates that they were in the wrong.

Whats(goes)App must come down... World in shock as Zuck decides to intertwine Facebook, Instagram, WhatsApp

JohnFen

Re: blissfully aware

"Actually, they ARE aware - just dont give a crap."

There have been numerous studies trying to address this, and so far they all indicate that the vast majority (80%+) of facebook users aren't aware of this at all, and get upset (or refuse to believe) when they are informed.

JohnFen

Re: Strange

"I can guarantee you they contact each other much more easily."

I don't think that you can. Whatapp and the like aren't any easier than the alternatives. They're just more feature-laden.

JohnFen

Re: Damn

You have the freedom to believe that.

JohnFen

Re: Damn

I don't know anyone who uses it, either, and I'm not a hermit. But I also don't live in Britain.

JohnFen

Re: BlackBerry Messenger

BBM? You mean the service that Blackberry is proud to allow law enforcement access to and that had no problem allowing nations to backdoor as a condition of entering their markets?

JohnFen

Re: Telegram

"I do believe that individual messages are not readable by Facebook or anyone else"

Why do you believe that? Better, why do you believe that won't change in the near future? Because of some old whitepaper?

Wow, fancy that. Web ad giant Google to block ad-blockers in Chrome. For safety, apparently

JohnFen

Re: Hosts

A DNS server couldn't, but your DNS client can absolutely ignore anything in the hosts file, and applications don't even have to use your DNS client to begin with anyway.

JohnFen

Re: DNS blocking will not work for long...

In my opinion. encrypting DNS communications is badly needed. However, doing it through HTTPS is a terrible, terrible idea. To be useful, any such encryption scheme must be done in a way that doesn't prevent users from being able to monitor and manage their interactions with DNS.

Also, overloading the HTTPS (or HTTP, for that matter) with non-web-related services is bad on many levels, and ultimately harmful for both the web and the internet.

JohnFen

Re: How many browser engines are left?

"It supports CSS and basic HTML but won't do all that interactive stuff that the modern Web requires."

That sounds great, actually! I'll be checking that out.

Six Flags fingerprinted my son without consent, says mom. Y'know, this biometric case has teeth, say state supremes...

JohnFen

Re: So I gather

"If they treated it like Apple does fingerprints for Touch ID, where it generates what amounts to a 'hash' of your fingerprint, so it can compare A to B to see if they match, but would be unable to produce a copy of your fingerprint"

That's how 99% of all fingerprint scanners work (and is a big part of why it's easy to spoof them). To do otherwise rapidly becomes prohibitively expensive. So I would be very surprised if this one worked any other way.

JohnFen

Re: Thank you!

"it appears the park's crime was neglecting to get consent and not providing info on how the fingerprint would be handled"

Yes, and consent is the fundamental issue with these sorts of things, so that's appropriate.

JohnFen

Thank you!

I needed some good news today!

Fake broadband ISP support scammers accidentally cough up IP address to Deadpool in card phish gone wrong

JohnFen

Re: Who is to blaim for being taken by scammers?

"To be fair to the street cops who've dealt with me, they are actually the least likely to demand compliance"

Yes, this has been my experience as well. Although I imagine that they probably go directly to demanding compliance if they have reason to think that you, specifically, are engaging in a crime.

JohnFen

Re: Who is to blaim for being taken by scammers?

"Should we disable all javascripts on unknown sites?"

Yes.

But I'm one who takes it a step further, and disables (mostly) javascript on ALL sites by default. If a site carries ads, it can't be trusted enough to allow Javascript to run without examination.