Well readers another week has come and gone. As you know last week I learned quite a few new things. This week was not as fruitful as last week but regardless I did learn a few new things and I hope you did as well.
In the past I read a few posts how you can use Razor outside of asp.net but until this week I never had a practical purpose for using it. We are developing an email based alert system that requires tokens for user data. This sounds like perfect usage of razor as a templating engine for emails. After installing the Nuget package and a bit of working I was up and running quickly and generating
<html/> emails from
On this subject if you want to have intellisense work follow this guide. The only change I made was just using
TemplateBase<T> instead of the custom type.
note, if resharper says you are safe to remove redundant namespaces, just let them there,
Models caused an error until I did
Convention over Configuration
With the Alert system we are building we decided to go with convention over configuration. Our simple convention is our email templates are named the same as the alert type, simple but effective. Configuration is fun until you have to make those configuration changes.
Relearn Old Things
This week a follow coworker shared how
Parallel.ForEach() helped improve performance of the application he was developing. This is one of the topics I used in the past but simply forgot. I took this opportunity to engage in conversation and learn more about how he used this technique. This dialogue allowed me to learn from him and share ideas when we might be able to use this in the future.
As you may know I have passion for software development and solving problems. Everyone is passionate about something and it is your job to find out what you are passionate about. When you find that passion you enjoy going to work and will excel in your career.
On to Next Week
Well I hope everyone has had a wonderful labor day and always, learn something new.