The Weird and The Wonderful
The Weird and The Wonderful forum is a place to post Coding Horrors,
Worst Practices, and the occasional flash of brilliance.
We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid
workarounds and developers just not quite getting it. And then somedays we come across - or write -
the truly sublime.
Post your Best, your worst, and your most interesting. But please - no
programming questions . This forum is purely for amusement and discussions on code snippets. All
actual programming questions will be removed.
|
|
 |

|
REMOVED
Bob Dole The internet is a great way to get on the net.
 2.0.82.7292 SP6a
modified 13 Mar '13 - 9:30.
|
|
|
|

|
Of course it works.
|
|
|
|

|
I think it works be cause the constructor and initialization sections both return a reference to the newly constructed object. But trying to call another function at the end will not work since the show function does not return a reference to the object.
|
|
|
|

|
Do you get paycheck deductions every time you use a semicolon?
Epic misuse, IMHO.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|

|
In that case, it works does not mean you should use it. This is totally unreadable at first. In the professional World, when any day you can be out of project(read job, as worst case) and some other poor sod has to maintain it, this is one of the things that leads to rants and posts in this very forum.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin