×

Announcing: Slashdot Deals - Explore geek apps, games, gadgets and more. (what is this?)

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!

Comments

top

A Tale of Two MySQL Bugs

Literaphile Re:who cares? (191 comments)

  1. MSSQL is ahead by a whopping 8 points in that scale, 1313 to 1305. Next month, the scores could be reversed.
  2. All that "survey" really measures is how much people are talking about the systems, not their actual usage. I'll bet you'll find MySQL installed on more active servers than Oracle or MSSQL, especially since it's the go-to choice for shared hosting.

about a year ago
top

A Tale of Two MySQL Bugs

Literaphile Re:who cares? (191 comments)

No, but it is how you tell whether something is "of historical curiosity", which obviously MySQL is not, since it's the most popular RDBMS by far.

about a year ago
top

Book Review: Programming PHP 3rd Edition

Literaphile Re:Facebook? (155 comments)

As someone who also works with PHP every working day, I'd just like to respond to your examples of "what went wrong":

- Arrays and hashes are the same data structure, for no readily apparent reason. Also, the simplest way of using that data structure is "array(a,b,c,...)", not "[a,b,c, ...]" like everyone else.

So? Does this gripe have any practical implications? Or is it just a whine for a whine's sake? Also, as of PHP 5.4 (which has been March 2012 BTW), you CAN use the [a,b,c] syntax to create arrays.

- All variables start with $, in imitation of Perl, but don't use the @ or % prefixes the way Perl does, instead just pretending everything's a scalar even though it's not.

Again - so what? You presumably learned how PHP variables work, so you're doing OK. Don't worry about Perl when you're using PHP.

- For a long time, OOP was an afterthought.

But it's not an afterthought now. Or are you still using PHP 4?

- Unlike other scripting languages like Python, Ruby, and Perl, PHP can't figure out which files to include for you when you reference something outside of the current file. Instead, it offers a global facility called an "autoloader" that allows you to write your own code to tell it how to find it, which completely breaks when multiple libraries have competing autoloaders trying to pick up two different classes with the same name.

Again, don't worry about other languages. You're using PHP. And, more importantly, why are you using libraries with their own autoloaders?

- Library functions display no consistency whatsoever. Some are camelCase, some are under_scored. Some search functions put the needle before the haystack, some the other way around.

I agree that this is annoying. But is it a show-stopper?

- Some operators are funky: Values can be equal without being the same thing, for example.

Once again: so what? It's not random behavior. Learn how this stuff works and then move on with your life.

- A significant number of errors, instead of generating exceptions that can be caught and handled, generate fatal errors, which crash your application no matter what. By comparison, Perl, Python, Ruby, and Java allow you to handle almost any error.

What do you mean by "handle"? If you mean catch and log, then PHP allows you to catch all errors, including fatal ones (see register_shutdown_function for example). If you mean "recover from", I would suggest that attempting to "recover" from a fatal error is a very bad idea. A fatal error means that something is seriously wrong with your application - the "recovery" should be fixing it, not pushing it under the rug.

Your points just touch on the same old, tired "but it's not like $randomLanguageName and therefore it's bad!" If you constantly compare PHP - or any language - to other languages than I'm afraid you'll have a long road to hoe. If PHP is your chosen tool - as it is for me - learn it inside and out and stop comparing it to other languages.

about a year ago
top

Book Review: Programming PHP 3rd Edition

Literaphile Re:Facebook? (155 comments)

This just in, people still use the most popular programming language on the web, the size of which makes all other web programming languages niche choices by comparison.

about a year ago
top

So What If Yahoo's New Dads Get Less Leave Than Moms?

Literaphile Re:Canada!~ (832 comments)

Great! More business for Canadian owners then. Everyone wins.

about a year and a half ago
top

So What If Yahoo's New Dads Get Less Leave Than Moms?

Literaphile Re:Canada!~ (832 comments)

I saw a TV special about social programs in Norway once. Believe me, I'm jealous!

about a year and a half ago
top

So What If Yahoo's New Dads Get Less Leave Than Moms?

Literaphile Canada!~ (832 comments)

Happy to live in Canada where both men and women can take 35 weeks of parental leave, covered by employment insurance.

about a year and a half ago
top

So What If Yahoo's New Dads Get Less Leave Than Moms?

Literaphile Re:As a guy that was a stay at home dad for 7 year (832 comments)

Nothing motivates you better to go back to the grind of corporate work than 7 years of shitty diapers. I love my kids, but 7 years of diapers was enough. Much happier with a regular paycheck and a nanny.

Maybe your problem was leaving your kids in diapers until they were 7?

about a year and a half ago
top

Canada Revenue Agency To Tax BitCoin Transactions

Literaphile Re: Okay (297 comments)

That doesn't make sense. You are taxed on any gains when you sell shares of a company - does this mean that you should be able to pay your taxes with stocks?

about a year and a half ago
top

Facebook Letting Everyone See How Much Data-Center Power It Consumes

Literaphile Re:Privacy dashboard (86 comments)

Delete your account, stop worrying, and get some sleep.

about a year and a half ago
top

No "Ungoogleable" In Swedish Lexicon, Thanks to Google

Literaphile Re:Natural result of government power over somethi (207 comments)

That's a little dramatic, don't you think?

Sweden is not alone in having an official body to oversee their lexicon - lots of countries do it. English is somewhat of an anomaly in that way, since, unlike most other languages, it's just kind of a big melting pot for everything else.

about a year and a half ago
top

Are Plastic Bag Bans Making People Sick?

Literaphile Re:What about paper bags? (533 comments)

The only objective to ban plastic bags was to minimize the costs to supermarkets. It was a disgusting lobby with an "eco friendly" excuse. There is no chance in hell they will distribute paper bags or any non re-utilizable bag.

As with any generalization, you're bound to be wrong. The dominant supermarket chain around here (Victoria, BC) uses paper bags.

about 2 years ago
top

Microsoft CEO Steve Ballmer: Forget the iPad, Surface Is the Tablet People Want

Literaphile Re:First impressions on Surface (403 comments)

Throwing in an incorrect fact or two adds to the authenticity!

about 2 years ago
top

Microsoft CEO Steve Ballmer: Forget the iPad, Surface Is the Tablet People Want

Literaphile Re:First impressions on Surface (403 comments)

Wow - that's probably the clearest example of a shill comment that I've ever seen.

about 2 years ago
top

Facebook Loses Users, Satisfaction Higher at Google+

Literaphile Re:Hmmmm, yeah (274 comments)

I remember when "everyone" was on MySpace, "Everyone" was there and nobody used "Facebook". Until one day ... Nobody used MySpace and everyone was on Facebook.

But "everyone" was not on MySpace. Facebook has 10x more users than MySpace had at the height of its popularity. It won't be as easy for Facebook just to disappear.

more than 2 years ago
top

Canadian Supreme Court Entrenches Tech Neutrality In Copyright Law

Literaphile Re:Fill me in, eh (54 comments)

In Canada, does their Supreme Court make laws? Or did the court just interpret an existing law which will be quickly altered to void this inconvenient decision?

It depends on how you define "make laws". Technically, the legislature in Canada is supreme - they make the laws. Just like in the US. But all laws are subject to the Constitution and more specifically the Charter, which means that they can be struck down by the judiciary; i.e. Canada has de facto judicial supremacy. And of course, the common law is judge-made law, just as it is in every common law country.

But in this case, yeah, the legislature can just go ahead and introduce a new law that it thinks will pass the judicial test. That's how the system is supposed to work anyway.

more than 2 years ago

Submissions

Literaphile hasn't submitted any stories.

Journals

Literaphile has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?