Here is what you get as briefly as I can say in code. _snprintf(buf, n, “%d %u %ld %lu”, i, ui, l, ul); becomes oformatstream ofs(“%d %u %ld %lu”, &a_string_stream); ofs << i << ui << l << ul;
I’m quite sure there will be some who will ask “Why did you build this ?”. Yes, it is slower
Well, we don’t hate it per se. It’s more of a love/hate relationship, if we’re honest with ourselves. You can do it wrong: excessive top-down structure is the kryptonite of developer brilliance. Or you can do it right: setting up the team so everyone feels empowered and blameless accountability lets you evolve from mistakes and improve over time.
This article shows how we can read the thread token and inspect the Privileges and Groups are assigned to it. Aside from the things we can do with a token, it can be convenient to be able to display them for troubleshooting purposes. In this article I will show how to retrieve that information.
I’m working on some code
Developers and software companies are always chasing anything that will make them more productive: to shorten the distance between thinking of a solution and coding it down to near-zero. We’ve talked about the mindset and methods for getting into a flow state on a previous episode of this series, but what if part of unlocking that flow is just better
In a large system, main() can easily become a mess as different developers add their initialization code. This article presents a Module class that allows a system to be initialized in a structured, layered manner. It then evolves the design to show how the system can perform a quick restart, rather than a reboot, to recover from serious errors such …Read More
In many organizations, once the work has been done to integrate a
new system into the mainframe, say, it becomes much
easier to interact with that system via the mainframe rather than
repeat the integration each time. For many legacy systems with a
monolithic architecture this made sense, integrating the
same system into the same monolith multiple times would have