Something original
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
Makes sense. You wouldn't want people getting a compiler error because they mis-capitalized something. That said, there's 212 ways to capitalize "manufacturer". You have some work to do...
What is this talk of release? I do not release software. My software escapes leaving a bloody trail of designers and quality assurance people in its wake.
-
Makes sense. You wouldn't want people getting a compiler error because they mis-capitalized something. That said, there's 212 ways to capitalize "manufacturer". You have some work to do...
What is this talk of release? I do not release software. My software escapes leaving a bloody trail of designers and quality assurance people in its wake.
You forgot the most important test case. I mean the empty string, but because you cant have empty string for variable name you have to take all the symbols available for variable name and make variables with them for names :)
Microsoft ... the only place where VARIANT_TRUE != true
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Difference between big and small M/manufacturers :) Still another thing puzzles me... being that name in plural and it's type a String... what value goes in there? Some kind of CSV? I think you have much more to worry about there mate... :D
-
Its not in plural. I guess this is part of some filter functionality.
Microsoft ... the only place where VARIANT_TRUE != true
-
After all there are at least 2 types of manufacturers and one of them is with large M for the really iMportant ones :D
Microsoft ... the only place where VARIANT_TRUE != true
True! :laugh:
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Its not in plural. I guess this is part of some filter functionality.
Microsoft ... the only place where VARIANT_TRUE != true
You right mate!
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
That allows you to specify "Manufactured for Company X by Company Y".
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
A guy that worked here for 7 months left for us a mvc application that only has 1 view model for 17 views. Where do you think he put all the data? yes, on that view model. That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (like 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região'). All of those properties have a different meaning. You're lucky that you only need to deal with low/upper case differences.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
A guy that worked here for 7 months left for us a mvc application that only has 1 view model for 17 views. Where do you think he put all the data? yes, on that view model. That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (like 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região'). All of those properties have a different meaning. You're lucky that you only need to deal with low/upper case differences.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
Ho yeah! That's a better one hey!! :)
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
A guy that worked here for 7 months left for us a mvc application that only has 1 view model for 17 views. Where do you think he put all the data? yes, on that view model. That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (like 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região'). All of those properties have a different meaning. You're lucky that you only need to deal with low/upper case differences.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
:omg: :wtf: :~ :doh:
brisingr_aerowing@Gryphon-PC $ rake in_the_dough Raking in the dough brisingr_aerowing@Gryphon-PC $ make lots_of_money Making lots_of_money
-
Inheriting the maintenance of some 3rd party code today! Mused over it, looking at the compilation warningS.... I did find this piece of code, aw... I should say, while I know it's valid C#, it displays a creativity beyond my own!!!
public class DesignRegistrationSearchCriteria
{
public string Manufacturer { get; set; }
public string manufacturer { get; set; }
// ...
}My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
A *much* better version:
public class DesignRegistrationSearchCriteria
{
private string _Manufacturer;private string \_manufacturer { get { return \_Manufacturer; } set { \_Manufacturer = value; } public string Manufacturer { get { return \_Manufacturer; } set { \_Manufacturer = value; } } public string manufacturer { get { return \_manufacturer; } set { \_manufacturer = value; } } // ...
}
-
A guy that worked here for 7 months left for us a mvc application that only has 1 view model for 17 views. Where do you think he put all the data? yes, on that view model. That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (like 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região'). All of those properties have a different meaning. You're lucky that you only need to deal with low/upper case differences.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
Sentenryu wrote:
That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (latike 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região').
Coool. What does "regiao" mean, anyway? A LOT of :java::java::java:?
Greetings - Jacek
-
A *much* better version:
public class DesignRegistrationSearchCriteria
{
private string _Manufacturer;private string \_manufacturer { get { return \_Manufacturer; } set { \_Manufacturer = value; } public string Manufacturer { get { return \_Manufacturer; } set { \_Manufacturer = value; } } public string manufacturer { get { return \_manufacturer; } set { \_manufacturer = value; } } // ...
}
public class TrafficLightsWentWrong
{
public string manufacturer
{
get { return Manufacturer; }
set { Manufacturer = value; }
}
public string Manufacturer
{
get { return _manufacturer; }
set { _manufacturer = value; }
}
public string _manufacturer
{
get
{
// reducing memory usage
return manufacturer;
}
set { manufacturer = value; }
}
}Greetings - Jacek
-
Sentenryu wrote:
That thing has properties that differ only by casing, only by swapping 'c' with 'ç', only by using accentuation (latike 'Região' and 'Regiao') and by all of that('regiao', 'região', 'Regiao', 'Região').
Coool. What does "regiao" mean, anyway? A LOT of :java::java::java:?
Greetings - Jacek
Portuguese for region, but he also has properties for coffe, 5 different types of coffe. And some bird species. Sadly, no woody woodpecker :sigh:
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
Portuguese for region, but he also has properties for coffe, 5 different types of coffe. And some bird species. Sadly, no woody woodpecker :sigh:
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
Is there a single property for each actual type of coffee or each type of coffee has it's own set of properties (with various accentation variants, like Blackcoffee, blackçcoffee, Milkçoffee, milçcoffee, etc..)?
Greetings - Jacek
I could copy and paste the code and you wouldn't believe, you nailed it. Each type of coffe has it's own set of properties. I'm very luck that i don't have to deal with that code... yet...
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
I could copy and paste the code and you wouldn't believe, you nailed it. Each type of coffe has it's own set of properties. I'm very luck that i don't have to deal with that code... yet...
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"