Tag Archives: code style

Super SuperClasses – Code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. In our previous post, we looked at refactoring our code in a way that makes it more extensible, using dependency injection (DI) and … Continue reading

Posted in How-To's | Tagged , , , , | 7 Comments

Dependency injection doesn’t strictly require frameworks – Code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. Last week, we looked at using constructors vs. factory methods, and how sometimes factories can help make our code more readable. In this post, let’s … Continue reading

Posted in How-To's | Tagged , , , , | 13 Comments

Every method begins with “new” – Code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. Last week, we looked at additional ways of bringing the code language closer to the business language. Today, we will discuss the usage … Continue reading

Posted in How-To's | Tagged , , , , | 13 Comments

Put it down in layman’s terms – code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. So far in this series about code smells, we’ve made the point that keeping the language of the code close to the language of the … Continue reading

Posted in How-To's | Tagged , , , , | 4 Comments

Easy conversions and readability – code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. Welcome back to our series about code smells! Today, we’ll look at overriding the ToString method and making use of extension methods. … Continue reading

Posted in How-To's | Tagged , , , , | 3 Comments

Join data items that want to go together – code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. In the previous post of this series, we presented the value of using data containers instead of plain primitives to provide a … Continue reading

Posted in How-To's | Tagged , , , , | 15 Comments

The simple case of special string types – Code smells series

This post is part of a 10-week series by Dino Esposito (@despos) around a common theme: code smells and code structure. Good to see you back! In our series about code smells, so far we have seen various theoretical cases. Today, we will … Continue reading

Posted in How-To's | Tagged , , , , | 10 Comments

Sharpen your sense of (code) smell

For the next 10 weeks, we’ll have weekly posts by Dino Esposito (@despos) around a common theme: code smells and code structure. Keep an eye on our blog! As humans, we have plenty of sweat glands all over the skin. As … Continue reading

Posted in How-To's | Tagged , , , , | 5 Comments

More formatting updates in ReSharper and Rider 2018.1.2

Our latest release of ReSharper 2018.1.2 includes improvements in formatting that we have not yet showcased in previous blog posts. We have already written a series about maintaining consistent code style with formatting inspections earlier. Now let’s look at some of the … Continue reading

Posted in How-To's | Tagged , , , | 7 Comments

Embrace deconstruction with ReSharper 2018.1

Deconstruction is a great feature that was introduced with C# 7. A while ago, we showed how ReSharper (and Rider) can help generate deconstructors for us. ReSharper 2018.1 adds even more enhanced support to fully embrace the elegance and power of deconstructions … Continue reading

Posted in How-To's | Tagged , , , , | Leave a comment