BlackTigerX

Stories submitted by BlackTigerX

Small but useful refactoring for working with nullable types(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 4 years, 7 months ago

nullable types open a nice posibility, however writing the code to verify if there is a value, then using the value is repetitive and long, here's a solution read more...

add a comment |category: |Views: 0

tags: another

Code reuse, next level(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 6 months ago

A common mistake that developers have been making over the years is to place conditional statements that always evaluate to the same result (until a property changes) inside a loop, here's an alternative to solve this problem read more...

add a comment |category: |Views: 3

tags: another

How to: Instantiate a class with a private constructor(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 6 months ago

Following up the post about "how to instantiate (another's class) private methods", here we see how easy is to instantiate a class, regardless of the visibility of it's constructors read more...

add a comment |category: |Views: 6

tags: another

Escape characters to use reserved words as variable names in .NET (ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 7 months ago

one of the biggest advantages of .NET is that it is language agnostic, but what happens when you are using code written in another language, and they used a variable name that is a reserved word in your language? read more...

add a comment |category: |Views: 22

tags: another

How to: Execute (another's class) private methods(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 7 months ago

Do you need to get access to a method that has been marked as private? here's how you can read more...

4 comments |category: |Views: 23

tags: another

quest for a better CAPTCHA(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 7 months ago

Current CAPTCHA implementations suffer mainly from the problem of being unreadable, here's an idea read more...

add a comment |category: |Views: 10

tags: another

Simple Generic Factory in C#(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

a very simple and elegant factory that can be reused with any products read more...

add a comment |category: |Views: 1707

tags: another

Simple factory pattern using dictionaries of methods(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

a technique (using dictionaries) to simplify calling code when you have a pattern of 2..n values, where for each value you want to execute a different method of the same signature read more...

add a comment |category: |Views: 17

tags: another

Diccionaries of methods in C#(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

Follow up of the article "arrays of methods in C#", as noted by some of the commenters, it is possible to implement this technique using dictionaries read more...

add a comment |category: |Views: 0

tags: another

simple factory pattern made simpler(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

arrays of methods allow for a simpler implementation of this pattern read more...

add a comment |category: |Views: 52

tags: another

arrays of methods in C#(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

a technique that can reduce your code when you have a pattern of 2..n values where for each value you want to execute a different method with the same signature read more...

add a comment |category: |Views: 0

tags: another

hiding generics complexity part II(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

Here's another technique for hiding generics syntax complexity that allows for additional extensibility read more...

add a comment |category: |Views: 2

tags: another

Hiding generics types complexity(ebersys.blogspot.com)

submitted by BlackTigerXBlackTigerX(460) 5 years, 8 months ago

Generic types can get quite ugly, here's a technique to hide that complexity (both at writing and reading) while keeping all the benefits of generics intact read more...

add a comment |category: |Views: 8

tags: another