Tag Info

Hot answers tagged

4

It's not clear what you're trying to do in that example, and the implementation details of your framework will limit somewhat what you need to do. Here are some guidelines that I use, which have been successful. There are of course other approaches that are successful. I use C# as my primary language, things similar to C# can use this approach. Other ...


4

Beware of uncertainty. A given feature may be released or not: it may be postponed, or simply dropped. Also, migrating to the new version of a language and framework is not an easy task. For instance, in Microsoft's community, this sometimes requires a new version of Visual Studio, which may have a very substantial cost for a company. If you still want to ...


3

A good thing to do is look at most languages' String class. Strings in any language I can think of are immutable, but most of the time nobody has any problem working with them. It's good to think of the ways in which you interact with Strings and ask yourself if you can work on your class in the same way. For example, if you want to take a String and ...


2

It's not you. It is something that a lot of developers struggle with and it is something you learn to live with as a developer. As soon as your code is typed it will probably be outdated. Here's a few tips on how to deal with that... Building something in a new framework/library/language is the best way to learn A lot of developers have projects 'on the ...


1

Making some of your objects immutable is an architectural decision that should rarely be changed later, so I would not recommend that you start refactoring all of your stuff just because. You should also think about the disadvatages of immutability when changing your project. For example, immutability can cause severe performance problems if you have to ...


1

Yes, and its a hindrance to the industry. This continual churn of technologies only serves to help people who create them and those who sell training courses. So Microsoft is happy as it gets to sell new tools every few years and we all have to buy them because we've been indoctrinated to "stay current". Whilst some change is necessary, IT seems to be the ...


1

Sometimes (rarely), it seems that creating a function that takes a decent amount of parameters is the best route. Using several parameters is often a clear indicator, that you violate the SRP in this method. A method, which needs many parameters is unlikely to do only one thing. Excpetion may be a mathematical function or a configuration method, where ...



Only top voted, non community-wiki answers of a minimum length are eligible