Hacker Newsnew | past | comments | ask | show | jobs | submit | snips's commentslogin

The German finance minister played Sudoku on his iPad during a heated Greek bailout debate.


Tablets and smartphones are allowed, just laptops are not.


Oh, in that case he's off the hook I guess, there's nothing to see here, move along.


As somebody who distaste the bailouts, I hope he did it to tell Greece that enough is enough.


If you have control flow that increases cyclomatic complexity it should be visible (explicit if), not hidden in an expression (ternary operator).


The if/else is no more explicit than the ternary operator.

On the contrary, the ternary operator makes the specific operation (setting ONE variable) more explicit, and ensures you only set one var. Consider:

if a == 1: foo = "PASS" else: foo = "FAIL"

and

foo = (A == 1) ? "PASS" : "FAIL"

Why repeat the foo (and risk an error by mistyping it the second time, especially in a dynamic language or with type inference)?

And they add the same amount of cyclomatic complexity (not that you implied otherwise, just sayin').


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: