- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
What's the bet that
AbstractTrier
usestry-catch
blocks? Y'know, for ultimate :wtf:eryAdmin
But, but, then you can change the behaviour of all your catch blocks at the same time by just modifying that single class - genius!
Admin
And you would want your testing patters to do that ... why?
Admin
In order to make a daily WTF article of course
Admin
I'd love to see the implementation of this, especially for methods using the implementations of ILooper and IConditional that can throw exceptions. If you must reinvent the wheel, at least it needs to be round, right?
Admin
Stop thinking inside the box. We already have round wheels, this one somehow extends into other dimensions, and doesn't roll in any of them
Admin
This codes brings me no satisfaction.
Admin
And if you have any sense at all, you'll now invoke something on IQuit.
Admin
Heh...and it looks like it took a few tries before @PaulaBean was satisfied that the topic was listed:
[image]Filed Under: IListTopic,IBrillant
Admin
So, you know how a curious/confused dog will tilt its head sideways while looking at whatever is confusing it? I totally just did that, and I make no attempt at roleplaying as a canine.
Admin
Shame ... there is totally place for a resident dog here ...
Admin
Admin
Admin
https://www.youtube.com/watch?v=QF7odK55gkI .
Admin
Yet more to chalk up to either:
Either way, run for the hills!
Admin
That should be a
finally
block. It says it right there in the lyrics:Admin
It looks like ITrier is available...
Admin
And he tries Oh my God, do I try I try all the time, In this institution
Filed Under: HEYYEYAAEYAAAEYAEYAA
Admin
I've driven roads in the Top End that probably would yield a smoother ride with square wheels.
Admin
Do you drive those in your little tiddler car?
Admin
I haven't driven that particular road in my little car, but I have driven local roads that are damn near as bad. I've also driven local tracks that saner men would probably hesitate to tackle in a four wheel drive. The little car's wheelbase is so short and so narrow that it's usually possible to find a way to tiptoe from rut to rut and hump to hump without suffering from its proportionately tiny ground clearance.
It doesn't ford rivers well, though.
Admin
I've seen deterministic coding, but this is the first time I've seen nihilistic coding.
Admin
Let's see, he needs a few other things. IIfer, IRecurser, ISwitcher, ICaser, IWhiler, and IUntiler come to mind. Oh wait, forgot IGotoer.
Admin
Admin
Remember, interfaces are abstract. It doesn't have to be a bathroom.
Admin
Not to be confused with
IUntiller
, which re compacts prepared soil in gardensAdmin
I get why this was done. I hate it, but I get it.
If you're trying to implement a section of the application in functional style, or you're trying to create a function/action/lambda that calls exception-throwing code, this would give you a clean wrapper to do so.
The reason this type of mechanism is required in Java is that you can't dynamically declare/catch Exception types covariantly, meaning you have to manually implement the class once for each Exception you need to catch. Ew.
I thought C#'s type system w.r.t. exceptions was smarter than that, though.
Admin
Admin
ICameFrom
INB4 :giggity:
Admin
I think they also need an ISmacker which can slap silly developers.
Admin
Admin
Now if the topic was testing catch functionality when getting a testbed to throw the exception in the first place, we could have a good discussion [yeah, I keep forgetting where I am]
Admin
Nonsense! Obviously, you make the roads roll instead.
Admin
Admin
Wording suggests original material reference.
I however do not agree with not attempting to
kickAss();
anyway, regardless of bubblegum supply status.Admin
Better?
Admin
It's WAY smarter than what you just described.
Admin
Someday they'll take me off of Java projects. Someday. :sob:
Admin
Because you're the kind of idiot who doesn't trust the language and writes ILooper.
Or the kind who "doesn't trust the database's transaction features" and writes his own quarter-assed transaction "manager".
Admin
FTFY
Admin
Admin
Admin
https://twitter.com/nihilist_arbys
Admin
This is still better than what my "Tech Lead" with 15 years experience once told me during a code review:
On further "analysis", I found out that the team had never used exception handling before (or since, because I left the team shortly afterwards).
Admin
At least that saves you the hassle of dealing with checked exceptions.
Admin
Citroen used to make small cars designed for awful French country roads, with air suspension that could get you across ploughed fields. There was a lever to raise the suspension still further for fords and big rocks. Also, when you parked, the car sank so low that it could not be wheelclamped. Unfortunately the hydraulic suspension was expensive to maintain, but it was fun to play with.
Admin
To be fair, it's only in the last 15 years that it has been really safe to write multiuser transaction code for some databases. There was one accounts system I remember that regularly got its knickers in a complete twist, even with only 4 simultaneous users, and it took the vendor a long time to fix.
Admin
Citroën still produces cars with hydropneumatic suspension. Regarding maintenance costs, not sure about the newer stuff, but no, not really. Not on a Xantia it wasn't. More expensive, that is.
Admin
In Progress databases it's been safe to do that for, I dunno, probably the entire existence of the commercial product. Certainly far longer than the time I saw someone do just that. I wasn't talking about Access.
Admin
That reminds me of something I saw once. Someone was driving a Ford 4WD pickup slowly along a rocky mountain road... a rut. I happened to be watching them when the front differential case of the pickup snagged a rock--abrupt stop! Thud! Back up and drive around.
(I walked over and looked at the rock afterward...it was scratched but it was otherwise unaffected for the next million years.)
It's useful to be able to raise the suspension, but something still has to connect to the center of the wheel.