- 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
Things are going to start getting ricockulous soon
Admin
Admin
poolSize not marked volatile.
Admin
Why would this surprise anyone? Everyone knows that they produce excrement; it's even in their name.
Admin
C# has delegates, C++ has lambdas and function objects (that use type erasure and sometimes the heap under the hood) and all three languaues can do the same task using virtual (vtable) method dispatching.
In which way is branching through an array of pointers better than plain virtual method dispatching or a plain good old jump table automatically generated for you by a good compiler from the switch statement?
It depends on the context and the overheads one wants to assume. I suppose that the array of funcptrs comment came from an embedded developer.
But even in an embedded environment an array of pointers is not always superior to a switch statement, even more when the switch case values are sequence ordered. In this last case a good compiler will generate the jump table for you and just jump to another code location without needing a function call.
Admin
Admin
If you answered "No" to any of these questions: Congradulations, your code is a candidate for an empty catch block.
Catch and Release Error checking!
Admin
I still don't see any System.out.print() or e.printStacktrace() call in this codeblock. Only a logger call, which depends on log4j setting. It can send the message to logfile, console or both.
Admin
продвижение сайта в топ 10 яндекса seo продвижение веб сайта https://flokinh.com продвижение сайтов спб