Apr
26

WebAPI (ASP.NET Core API NTier)

This stencil is based on the article - Developing Great Web APIs Architectures w/ ASP.NET Core 2.1 given by Chris Woodruff at QCon.

The design is based on the following and uses very good standard practices:

  • Single Responsibility Principle simplifies implementation and design
  • The Ports and Adapter Pattern decouples business logic from other dependencies
  • Decoupled architecture makes testing much easier and more robust

This stencil will generate the same code used in this presentation. However, the beauty of stencils in CodeStencil is that you can swap and use your own database, define the name of your project, namespaces, etc. and the generated code will automatically use these.

The solution and all code from this article's examples can be found here in Chris' GitHub repository ChinookASPNETCoreAPIHex.

The stencil for this example can be downloaded from here: WebApi on github

Continue reading
0 Comments
  0 Comments
Jan
09

CodeStencil - Another app to add to your tool chest

Another application to add to your tool chest CodeStencil comes with a new approach to code generation. Even though there are a lot of tools and libraries out there being used today for code generation and scaffolding, once you have an output it isn't easy to reconfigure and have a do over without complicated changes to the original scripts/templat...
Continue reading
0 Comments
  0 Comments
Jul
17

What is CodeStencil?

I have always been a firm believer of the saying.. "Do not reinvent the wheel". So, I am always looking for ways to speed up or cut out repetitive tasks.

The concept of CodeStencil is simple... string replacement.

CodeStencil is simply an IDE that helps you intelligently use existing code to build a stencil (or in familiar terms - a Template) that can be used to generate the same code, again, but at the same time allowing you to define the strings to replace.

From the screenshot below, NAMESPACE will be replaced by "Dolasoft" during code generation:

Unlike standard code generators, you do not need to learn a template language. If you do not want to build your Stencil from scratch, you can create it within minutes from already generated code. 

Continue reading
0 Comments
  0 Comments
© 2018 CodeStencil - Zera Systems Inc. All Rights Reserved.

No items in cart