Follow Slashdot stories on Twitter


Forgot your password?
Note: You can take 10% off all Slashdot Deals with coupon code "slashdot10off." ×

Comment Re: Swift (Score 1) 365

I'll grant you it's more easily debugged. But the whole point of lining them up vertically instead of a bunch of if/else's is so that it's more readable and therefore more maintainable. Ternary operator is awesome when used properly (which is maybe 5% of the time).

Comment Re: Swift (Score 1) 365

I will agree that anyone nesting/chaining ternary operators more than twice is not a good idea.

I totally, completely, and utterly disagree with you there. I regularly chain 3 or more ternary operators, with great success. Readability of chained ternaries all about formatting/indenting in a reasonable way.

Slashdot is telling me I have "too many junk characters" when I try to paste an example, so I'll just paste link to an image giving an example:

Line those suckers up vertically and you have extremely readable code.

Open Source

Calculating the Truck-Factor of Popular Open Source Projects 79

An anonymous reader writes: The Truck Factor describes the minimal number of developers that have to be hit by a truck (or quit) before a project is incapacitated. Wikipedia defines it as a "measurement of the concentration of information in individual team members. A high truck factor means that many individuals know enough to carry on and the project could still succeed even in very adverse events." The term is also known by bus factor/number. In this article, the authors calculate the truck factor for 133 popular GitHub applications. Spoiler, but unsurprising: Linux ranks near the top (meaning that it's highly resilient).

And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones