Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:What about 10 year old mysql bugs? (Score 1) 191

Don't forget MySQL's translation of NULLs in NOT NULL constrained fields to 0 or empty strings instead of rejecting the update as a proper RDBMS should. Somebody needs to explain to them that missing data is missing, not 0. I can't tell you how many problems I've seen this cause (ofc, whether and how NULLs should be used is another discussion entirely...).

Comment Re:fast, but wrong (Score 1) 191

Let's not forget how it "enforces" constraints. For example, consider:

CREATE TABLE emps (id INT(10) AUTO_INCREMENT,
fname VARCHAR(50) NOT NULL,
sname VARCHAR(50) NOT NULL);
INSERT INTO emps (fname) VALUES ('John');

In a proper RDBMS, that would fail for violating a constraint. MySQL/MariaDB just massage the missing sname into an empty string, which is about as valid as just sticking 'sldfjpsdj;ksdj;fsdljkfsd.'

Comment Tail recursion (Score 1) 242

You've stated (http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html) that you consider tail recursion to be "unpythonic." Could you elaborate on that a little more. What about algorithms that are by their very nature recusive? I've found that a combination of memoization and tail recursion can, under the right circumstance, provide wonderfully clear code without taking too much of a performance hit, and Python's decorator facility always seemed more or less ideal to me for that sort of application.

Comment Multi-line lambdas (Score 3, Interesting) 242

One of the most common complaints about Python is the limitations of its lambdas, namely being one line only without the ability to do assignments. Obviously, Python's whitespace treatment is a major part of that (and, IIRC, I've read comments from you to that effect). I've spent quite a bit of time thinking about possible syntax for a multi-line lambda, and the best I've come up with is trying to shoehorn some unused (or little used) symbol into a C-style curly brace, but that's messy at best. Is there a better way, and do you see this functionality ever being added?

Slashdot Top Deals

Systems programmers are the high priests of a low cult. -- R.S. Barton

Working...