|
Smalltalk never had an if-statement. In some contexts its been dead for 30 years.
someCondition ifTrue [ ... ] ifFalse: [ ... ].
Looks much like an if statement, but is really sending messages to the value of someCondition.
The rest of the world will catch up one day.
ps. Intentionally not formatted as code - the code formatter doesn't suit Smalltalk.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
I love the replies, geeks being geeks offer little critique of the code but plenty of "If it was me, I'd [...]"
speramus in juniperus
|
|
|
|
|
Yeah, that's the real reason why we can't get to "software engineering" IMO: even if someone developed the perfect algorithm for something, every other dev would go, "Yeah, but that doesn't really work for me."
--------------
TTFN - Kent
|
|
|
|
|
Thank God it was real engineers who put man on the moon and not the software variety...
speramus in juniperus
|
|
|
|
|
"how less fewer control structures lead to better code" (fixed that for him)
Yes, but, much of that is simply sweeping things under the rug -- Linq in particular merely hides loops and such, which is still OK, but don't say "there is no loop", only "I didn't have to write a loop".
Anyway, yes, many if s can and should be eliminated -- and not with ternaries.
|
|
|
|
|
Older software programmers have long complained of age discrimination. But according to study conducted by researchers at North Carolina State University, companies should think twice before hiring a young hot-shot hacker over a seasoned developer. Even better? A developer drinking scotch
|
|
|
|
|
Even better? An old (aged?) developer drinking old scotch...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
:politeCough:
Gin. Always gin.
speramus in juniperus
|
|
|
|
|
|
Luke Skywalker had it right. Push away the screen and go with The Force from time to time. "An elegant weapon, for a more civilized age."
|
|
|
|
|
DDoS tool targets the federal Affordable Care Act website. But will it work? Didn't the developers already do that?
modified 10-Nov-13 18:37pm.
|
|
|
|
|
(i.e. already to that -> already do that)
Getting information off the Internet is like taking a drink from a fire hydrant.
- Mitchell Kapor
|
|
|
|
|
Not grammar in this case, just spelling/typing skills, but thank you!
--------------
TTFN - Kent
|
|
|
|
|
Amazon dominates the cloud, but IBM, strengthened by its SoftLayer acquisition, has unleashed a marketing campaign that fires on all cylinders. Whether IBM's cloud is, in fact, better may matter less than Amazon's ability to challenge a company that's made many competitors crumble over the past 102 years. “Old age and treachery will overcome youth and skill”
|
|
|
|
|
As is often the case with satellite reentry, no one's exactly sure when, where, or how GOCE will come crashing down. Much of the craft will burn up in this atmosphere, but there's at least a chance that some chunks will make it to the surface — the thought of a single flaming pound of white-hot space debris hitting your car or house is terrifying enough, but The New York TImes reports that pieces as large as 200 pounds could hit the ground. Heads up!
|
|
|
|
|
There's tons of advice out there about how exactly to answer interview questions, what to wear to that interview and how to follow-up afterwards, but what if you're having trouble even getting your foot in the door? For many people, it isn't a lack of experience, education or training that is keeping them from getting a call back — or these days, an e-mail back. Instead, it often comes down to how you're presenting yourself via your resume. That "40 years experience with MUMPS". Likely not going to help much.
|
|
|
|
|
Microsoft recently announced it plans to consolidate the Windows and Windows Phone stores, and some leaks have hinted that the company will slowly combine the two operating systems. The only thing Microsoft hasn’t tipped its hat about is exactly how its convergence between platforms will take place. "Storm'd at with shot and shell, boldly they rode and well"
|
|
|
|
|
Microsoft is actively looking for a new CEO to replace Steve Ballmer, and one of the potential candidates is Stephen Elop. In an interesting story published earlier today, Bloomberg, citing several unnamed sources, claims that the former boss of Nokia would introduce sweeping changes to Microsoft should he get picked for the top job. Bouncy castles for everyone!
|
|
|
|
|
I think they really need the "ever shifting maze garden".
For those not familiar with the idea: his is basically a complicated set of paths in a densely grown garden and you hire gardeners full time to constantly change everything all the time to make it as confusing as possible for everyone.
Employees who are brave enough to venture in this garden to have lunch and are noted to find shortcuts and navigate the garden more easily will get automatically recommended for a promotion.
.
|
|
|
|
|
0bx wrote: For those not familiar with the idea: his is basically a complicated set of paths in a densely grown garden and you hire gardeners full time to constantly change everything all the time to make it as confusing as possible for everyone.
That is a lovely, evil plan. I have to start work on one next year.
Could we put a few grizzlies and mountain lions in there as well to cull the herd?
--------------
TTFN - Kent
|
|
|
|
|
The Holy “Scrum” War blog by Brian de Haaff argues that those who claim Scrum will save your company are wrong. Scrum is good and/or bad for you!
|
|
|
|
|
"Scrum does not explain the “why”"
Exactly. While it's nice to have the developers agree with the "why", it's not necessary and they don't always agree anyway.
There was a project I worked on in which I disagreed with a feature I was supposed to implement (it was needlessly customer-hostile) and the "why" wasn't very convincing (that's the way the legacy system does it). I held off implementing that feature for about six months.
Think of developers as galley slaves on a ship; you just want them to row, they don't need to know where you are going and why.
|
|
|
|
|
PIEBALDconsult wrote: I held off implementing that feature for about six months.
Was the feature every missed?
I always suspect that these types of features are best ignored until someone notices the need, then they might end up with a better "how" to go with a real "why".
--------------
TTFN - Kent
|
|
|
|
|
They kept asking when I'd have it done. I implemented it eventually. Then I had to create a report that would show management exactly how much money they were stealing from their customers each month.
|
|
|
|
|
Apple’s history with Taiwanese manufacturer Foxconn and its sprawling network of suppliers in Southeast Asia is checkered with stories concerning the human rights abuses rampant in the region, and the company has made much progress in the effort to resolve them. Today, a Bloomberg Businessweek report reveals how, following last year’s iPhone 5 announcement, the pressure to produce components for the new Apple smartphone resulted in workers on factory lines being forced into debt and indentured servitude. But it's shiny, artfully designed indentured servitude
|
|
|
|