NCG_Mike's comments

NCG_Mike | 5 years ago | on: Unit Testing Is Overrated

I'd suggest that someone who thinks that UTs are over-rated are over-rating their ability. I'd also suggest that those people are the exact people that should have extra testing done on their code.

NCG_Mike | 5 years ago | on: Make LLVM Fast Again

A couple of things a C++ developer can do is to put template instantiation code into a .cpp file, where possible.

"#pragma once" in the header files helps as does using a pre-compiled header file.

Obviously, removing header files that aren't needed makes a difference too.

NCG_Mike | 6 years ago | on: Your First THINK C Program

Wow. Going back a long time. I was in the MPW Shell camp but did use ThinkC With Objects and it was so much faster than the C compiler in MPW.

NCG_Mike | 6 years ago | on: Model-View-Controller in iOS: A Blueprint for Better Apps

The way I built MacOS applications in Obj-C was to use a dictionary with key/value pairs held inside either a NSDocument or a controller of some kind. I'd bind the views to the model, via the controller. No sub-classes of views.

It also had the benefit of been able to add undo/redo with a few lines of code. This even would undo radio button clicks as those controls were also bound to the model.

Saving the model was just a case of saving the dictionary or converting the dictionary in save and load from some other format, say ICC Color Profiles.

I'm not surprised to read that less experienced developers bung all their controller and model code in a sub-class of some view. It was a common thing to see in the MFC or PowerPlant days.

NCG_Mike | 6 years ago | on: A simple C++11 thread pool implementation

Not sure but there may be two bugs in the code. The use of notify on the condition outside of the mutex lock.

I know this would cause problems with boost, not sure about std::.

NCG_Mike | 6 years ago | on: A History of Pizza

There's a kind of pizza that I've had at a Turkish restaurant that comes without tomatoes. Really nice.

I'd assume a common origin with the Italian variety via the Romans (ancient).

page 1