Random Link ¯\_(ツ)_/¯ | ||
Apr 8, 2025 | » | Attributes and Reflection in C#
5 min; updated Apr 8, 2025
When you compile code for the runtime, it is converted into common intermediate language (CIL) and placed inside a portable executable (PE) file along with metadata generated by the compiler. Attributes allow you to place extra descriptive information into metadata that can be extracted using runtime reflection services. Example of reflection in C#: All types descended from the System.Object base class (the root of the type hierarchy in .NET) inherit the GetType() method.... |
Jul 5, 2020 | » | Of Code Smells and Hygiene
10 min; updated Nov 30, 2022
#code-hygiene Pick up from: IEEE’s International Conference on Software Maintenance Improving Code: The (Mis)perception of Quality Metrics Springer’s Software Quality Journal On Abstractions If you find yourself adding more parameters and if-statements to an existing abstraction, is the abstraction still apt? Why not remove the old abstraction and re-extract a new [more apt] abstraction? Devs frequently succumb to the sunken cost fallacy thinking that there must have been a reason that the code was written in a certain way.... |