http://sdtimes.com/nasas-10-rules-developing-safety-critical-code/
Tuesday, January 27, 2015
Monday, January 26, 2015
What is real purpose of Enable Visual Studio Hosting Process?
According to MSDN:
"The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation"
In real world:
Sometimes, vshost.exe always running, and you can't even kill it from Task Manager. (After killed it, it restores automatically, need to quit Visual Studio)
Need to disable this feature/bug by following steps:
Properties of project =>
"Debug" tab =>
uncheck "Enable the Visual Studio hosting process"
"The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation"
In real world:
Sometimes, vshost.exe always running, and you can't even kill it from Task Manager. (After killed it, it restores automatically, need to quit Visual Studio)
Need to disable this feature/bug by following steps:
Properties of project =>
"Debug" tab =>
uncheck "Enable the Visual Studio hosting process"
How to solve in C++ upgraded project for error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ" (?.cctor@@$$FYMXXZ)?
Remove /Zl from Configuration Properties -> C/C++ -> All Options -> Additional Options
Friday, January 23, 2015
TDD is about Development not Design
TDD is about Development not Design
In initial design stage, need to hide unrelated detail as much as possible, cover high level scenario only.
Test Driven Design forces thinking on low level details. In this way, it is very easy to lose focus.
Try a new project to see if TDD stands for Test Driven Development, or Test Driven Design
In initial design stage, need to hide unrelated detail as much as possible, cover high level scenario only.
Test Driven Design forces thinking on low level details. In this way, it is very easy to lose focus.
Try a new project to see if TDD stands for Test Driven Development, or Test Driven Design
Thursday, January 22, 2015
Why I Don't Teach SOLID
"The main culprit is SOLID's focus on dependencies. "
"These all lead developers to create interfaces everywhere. They litter the codebase with interfaces like IFooer, IDoer, IMooer, and IPooer. Navigating it becomes a nightmare. "
http://qualityisspeed.blogspot.nl/2014/08/why-i-dont-teach-solid.html
Personal experience:
I ever worked on a similar project: this project has two functions: a wrapper for Icewarp API to create/update email accounts.
3k line of codes, near 10 layers of interface. Indeed, it is "SOLID" :)
"These all lead developers to create interfaces everywhere. They litter the codebase with interfaces like IFooer, IDoer, IMooer, and IPooer. Navigating it becomes a nightmare. "
http://qualityisspeed.blogspot.nl/2014/08/why-i-dont-teach-solid.html
Personal experience:
I ever worked on a similar project: this project has two functions: a wrapper for Icewarp API to create/update email accounts.
3k line of codes, near 10 layers of interface. Indeed, it is "SOLID" :)
Subscribe to:
Posts (Atom)