Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
Slashdot Deals: Deal of the Day - Pay What You Want for the Learn to Code Bundle, includes AngularJS, Python, HTML5, Ruby, and more. ×

Comment Re:I didn't know had names (Score 1) 304

This begs the question: are they really different operators, or are you just writing the same operator in a different orientation? The fact that we type them differently is perhaps an artifact of the way we encode text on computers. We don't represent characters as a codepoint+rotation duple; instead, we can only record different characters, with a different glyph for every orientation.

"=" is the only relational operator which is commutative. a = b implies b = a.
= (Slashdot filters out the single glyph representation of this operator, U+2264) is not commutative. a = b does not imply (or preclude) b = a.

Is there a name for the property of "" which is that a b implies !(b a)? You could call that operator "anti-commutative", perhaps?

Comment Sets and operators (Score 1) 304

The state of set operators is terrible. In a lot of languages, you have to do crap like MyHaystack.Contains(MyNeedle). SQL has set operators, but not much better. I have always hated SQL predicates of this sort:

WHERE Orders.OrderNumber >= 6 AND Orders.OrderNumber < 56;

It's just so much to type. Wouldn't it be much nicer if we could just use the set operators we learned in algebra?

FROM Orders
WHERE OrderNumber [6,56);

-- Argh! Slashdot... there should be an "element of" operator (epsilon) there after OrderNumber...
-- but alas, you have filtered out the &isin; entity.

See here for what should really display above.

I do most of my SQL in the Watcom dialect (SAP SQL Anywhere) . You can do:

FROM Orders
WHERE OrderNumber BETWEEN 5 AND 10;

which is nice... but I like the idea of being able to express (shortly) both open and closed intervals.

You can also say:

FROM Orders
WHERE OrderNumber IN (5,10);

but that means in the set {5,10}, not the open interval (5,10), which I find to be confusing.

Part of the issue is that the set operators (e.g. epsilon) are not on 101-key standard US keyboards and are hard to type. The other issue is that the set and interval delimiters (, ), {, }, [, and ] have been misappropriated as code block delimiters. My first commercial-grade high-level language was PASCAL, and I thought BEGIN and END were just fine (they persist in Transact and Watcom SQL today). I also like Python's group-by-indent approach.

Comment Copyright needs reform (Score 1) 93

If anything, the digital dissemination of copyrighted works, on the whole, increases the speed with which they depreciate, since more people who desire to purchase a legal copy of a copyrighted work can do so much more quickly than was previously possible, and since legal copies of copyrighted works don't degrade in quality over time (if you have a good cloud to store them in). I think that copyright term should be reduced to account for this.

Comment Postgres hands down (Score 4, Informative) 320

I come from a Sybase SQL Anywhere shop. It never ceases to amaze me how stuff that can be elegantly expressed in a couple of queries in Watcom-SQL typically takes four times as much code in MySQL's dialect. I love Sybase's support for the ANSI standards, subqueries, Java/.NET/C/PHP/Perl stored procedures when they are the right tool for the job (ever needed to resize raster images in an INSERT trigger coming from some third-party application?), and great drivers. I shouldn't have to spend 10 minutes trying to figure out why MySQL doesn't support the standard casting string concatenation operator by default (||), or why subqueries don't work like they ought, etc.

Having used Postgres, all of the worthwhile MySQL features are there, most of the SQLA features are there, and the pain level is much, much lower in Postgres than MySQL for someone coming from a full-featured commercial RDBMS.

What really sucks is all of the applications that are so coded around MySQLisms that they don't run on ANSI-compliant engines.

Comment It's a hard problem (Score 1) 134

I don't think Facebook is competent to decide whether or not a church's refusal to recognize the legitimacy of homosexual couples is hate speech, or whether or not the state of Israel is a terrorist organization, etc.

I'd rather them stick to standards that are not so subject to interpretation, like no depictions of one person's genitalia in contact with another person where either person is not of the age of majority. Let the nation states decide what those ages of majority are. Those sorts of standards are much less subject to interpretation.

Comment Some ideas (Score 2) 107

My first programming language (5 years old, 1985) was Apple BASIC. Online interpreter:

When I was in 3rd grade, we programmed in LogoWriter. Looks like there is a web-based LOGO interpreter here:

Next, I learned PASCAL.

None of that stuff is OOP (although imperative is still a very important paradigm).

Once you want to move past kiddie stuff, I'd set her down with a C# IDE (the free-as-in-beer Visual Studio edition or the free-as-in-really-free MonoDevelop) and some YouTube tutorials.

Comment Andi Graph (Score 1) 359

Andi Graph is the bomb... you can switch between any TI-8x ROMs. The only thing I miss about it is the tactile keys.

I own a TI-85. Therefore, I have no remorse about using the TI-85 ROM on my Android devices, as I'm not letting anyone use my calculator at the same time. I paid for the software.

In conjunction with BlueStacks on my Samsung ATIV Pro 900T, I can even project and take screenshots of the whole calculator without any special TI hardware.

Comment More nuanced choices would be nice here. (Score 4, Insightful) 437

I'm a parent of four precocious kids in a small college town in the mountains of NC.

We have taxpayer-funded public transportation here. 12 years old and up are allowed to ride the bus alone (to go to the library, etc). Would I let my 7-year old if he were allowed? No. Would I let him go with his 12-year-old brother who has a way to stay in touch with me? Probably.

I don't think the issue here is automotive safety. A fully-automated car should be safe enough for kids to ride in by themselves, or it shouldn't be on the road. I think the bigger concern is, when is it okay to let your kids out in public without supervision? 72% of the people who said flat out "no" did so because they have the impression that parents should be attached to their children at the hip, or because there was no option for, say, 15 and up. Maybe kids should be able to earn the freedom of being out without their parents with good grades above a certain age, etc. The survey sucked. There should have been an option for unlicensed adolescents but not younger children, etc. Parental consent and discretion should be part of the equation as well. We're the ones responsible for our kids, and with that responsibility should come some discretion on our part.

On a side note, I think autonomous cars will reduce the need for us to go out for non-social things. I mean, aside from losing the ability to pick the best produce, I certainly wouldn't mind telling my car to make a run to the grocery store for me. For me, shopping is just time I'd rather spend with my family.

Make it right before you make it faster.