Programming

Programming

basic_oformatstream template class – CodeProject

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;

Introduction

I’m quite sure there will be some who will ask “Why did you build this ?”. Yes, it is slower

Read More
Programming

We hate Scrum and Agile…when it’s done wrong (Ep. 489)

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.

For today’s

Read More
Programming

Win32 Security: retrieving Privileges and Groups for an

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.

Introduction

I’m working on some code

Read More
Programming

Can integrating hardware with software save developers time

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

Read More
Programming

Robust C++: Initialization and Restarts

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
Programming

Revert to Source

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

Read More