Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Cesar de Souza

@Cesar de Souza
About
Posts
90
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Article competition - question
    C Cesar de Souza

    How could I miss that :-D Thanks for the answers Sean, and thanks for pointing out that my article was in the Database section, Pete! I hadn't even thought about looking there, but I guess it makes lots of sense since it was mostly about interpreting and extracting information from tabular data. Thanks! Best regards, Cesar

    Machine Learning, Image and Signal Processing for .NET - The Accord.NET Framework.

    Article Writing question csharp dotnet com

  • Article competition - question
    C Cesar de Souza

    Thanks for the answer, Sean! So it means that only the rating is taken into account? If that is the case, then I suppose someone could post an article at the last minute of the month and vote himself a five. Then it would have higher chances to be in the top 10 for that month than an article posted in the first day of the month, which got much more visibility, but as well more chance to have received votes of 4 just because it was exposed for more time. For example, how would an article that received 10 votes of 5 (thus averaging 5.00) be compared against another that received 1000 votes of 5 and 1 vote of 4 (thus averaging somewhere around 4.99)? Would the first be ranked better than the second, or is there some correction applied to this situation? Best regards, Cesar

    Machine Learning, Image and Signal Processing for .NET - The Accord.NET Framework.

    Article Writing question csharp dotnet com

  • Article competition - question
    C Cesar de Souza

    Hi CodeProject people, May I ask which is the rule for selecting whether an article should be included in the article competition for a given month? I had posted an article called Statistics Workbench[^] in the C# section, which I thought had received enough positive feedback (in terms of votings, bookmarks and download counts) to have been at least selected between the top 10 for the month of May. This is not a rant or a complaint, but I would like to know better what is the criteria that allows an article to be selected or not. Can please someone shed some light on how articles are selected for the competition? Thanks! Best regards, Cesar

    Machine Learning, Image and Signal Processing for .NET - The Accord.NET Framework.

    Article Writing question csharp dotnet com

  • Well, I'm on GitHub
    C Cesar de Souza

    For me, the best Git client I've ever used was definitively SmartGit[^]. The only problem is that it requires a commercial licence; but it was so worth the company I was working for bought it for everyone. No more merge conflict surprises and crappy GUIs :)

    Machine Learning, Image and Signal Processing for .NET - Meet the Accord.NET Framework.

    The Lounge csharp wpf com graphics game-dev

  • Which code you suggest?
    C Cesar de Souza

    It seems a lot of people follow to this "rule" without ever questioning why. My manager was also an advocate of the "single return improves readability" fallacy until I explained to him why this wouldn't be the case with examples. Plus when I completely rewrote a ugly mass of haired code in our system into actually maintainable code, he was convinced. I think it needs some luck, and having open-minded management helps too.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Weird and The Wonderful com question

  • Which code you suggest?
    C Cesar de Souza

    OriginalGriff wrote:

    I think that's an unnecessary restriction - I prefer to do all my validation code / user notification en mass at the top of a method, and exit immediately.

    Exactly. I share the same view - do validation and exit as soon as possible, to avoid crippling the logic down the road.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Weird and The Wonderful com question

  • Which code you suggest?
    C Cesar de Souza

    Exactly. I share the same view - do validation and exit as soon as possible, to avoid crippling the logic down the road.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Weird and The Wonderful com question

  • Any CP'ians from France?
    C Cesar de Souza

    I would feel the same. Doesn't mean I am not trying to learn, though! :)

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • Any CP'ians from France?
    C Cesar de Souza

    Huge thanks. I am glad you mentioned the part about social services and insurance. By the way, I guess this would be something new for me, as public social services do not really work on most of Brazil. I am expecting a greater income tax / social contribution deductions, but on the other hand, I am also expecting to be able to use it when its needed. On Brazil we mostly end having to pay for everything twice, as we end up having to pay for both the public services which do not work and we can't rely upon (via taxes); and for private services for the same things, which are the ones that actually work. Cesar

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • Any CP'ians from France?
    C Cesar de Souza

    Thanks! I foresee the language is going to be a nuisance at the beginning, but won't last long. Few of my friends had worked on other European countries, such as Germany and Czech republic without speaking a word of German or Czech before. Plus I guess I will be taking some French classes, just for good measure ;P

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • Any CP'ians from France?
    C Cesar de Souza

    Hi all! After finishing my master's degree, I've been greeted with an opportunity to work on France. I am under the impression it would be an astoundingly opportunity for me and I am almost ready to jump in. However, I have no idea on what constitutes a fair salary in Europe for a software developer. Also, even if I knew, I have no idea about the living costs there. People outside Brazil may think the living costs of living in Europe must be substantially higher than living in Brazil, but this simply isn't true. Some things are far cheaper here than in Europe, and other things are far, far cheaper in Europe than Brazil. So, would any of the fellows CodeProject members had any advice or tips on what should I expect from living and working in a developed country (after being a student with barely any money for years)? How much would you consider a fair wage for a software developer in Europe? Cheers! Cesar

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • My first language and interesting early software projects.
    C Cesar de Souza

    EasyUO[^] (yeah, really) Not a resource constrained one, but my first language. If it hadn't been for Ultima Online I guess I would never have learned actual programming years after.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge delphi csharp c++ css hardware

  • Does this language feature seem strange to anyone else?
    C Cesar de Souza

    Interesting! I suppose this is one of the reasons for the existence of the CA1008 code analysis rule.

    Quote:

    CA1008: Enums should have zero value[^] Cause: An enumeration without an applied System.FlagsAttribute does not define a member that has a value of zero; or an enumeration that has an applied FlagsAttribute defines a member that has a value of zero but its name is not 'None', or the enumeration defines multiple zero-valued members.

    Perhaps by specifying a default value with a "no action" behavior it would have been easier to spot this one, or at least it wouldn't lead on the weird behavior (you would have to explicitly handle or ignore the .None values).

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp database design help question

  • The winter is coming!
    C Cesar de Souza

    Exactly, autumn has just started and the weather is already like this...

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • The winter is coming!
    C Cesar de Souza

    I guess I would survive exactly ten minutes in -16,5 degrees. I have no idea how cold this would be.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

    The Lounge csharp dotnet com question

  • The winter is coming!
    C Cesar de Souza

    ... it is barely autumn here in the southern hemisphere and I am almost freezing with a 20ºC (68ºF) in Brazil. No kidding, I find astonishing that there are people facing negative or near 0ºC temperatures somewhere!

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Sequence Classifiers in C# - Part II: Hidden Conditional Random Fields

    The Lounge csharp dotnet com question

  • Google shutting down Reader
    C Cesar de Souza

    Actually, I've never been impressed with Reader. The experience was terrible, the way it organized feeds was just confusing, and always required a huge effort to follow them all (instead of displaying everything in a quick glance like iGoogle does). I always loved iGoogle, but it is also going away. None of the alternatives looked appealing, though. Don't know what to do.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Haar-feature Object Detection (With The Viola-Jones Framework) in C#

    The Lounge html question

  • goto... Who uses it?
    C Cesar de Souza

    It is often considered OK to call a goto from a deeply nested loop in order to terminate all loops altogether early, without the need of adding and maintaining several guard variables in the loop conditions. Of course if you can afford to place your loop in a separate function, you can also return from that, eliminating the goto but still doing the same.

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Haar-feature Object Detection (With The Viola-Jones Framework) in C#

    The Lounge question learning

  • Method chaining with short-circuit parameter evaluation
    C Cesar de Souza

    Sorry, I should have meant "handle the error case first and exit as soon as possible", even if this "as soon as possible" will only occur in the middle of the function. Usually I don't have problems with multiple exit points in a function. Those are particularly useful, for example, when implementing a syntax parser from a LL(1) grammar. Another situation may happen, for example, if you are in the middle of a very nested loop and would like to exit them all. Refactoring the loop into its own function and using a return is often one of the clearest ways to quit all loops at once, specially in comparison with the alternative which is to maintain quite a number of done variables guarding the loop exits as in

    for (int i = 0; i < n && !done; i++)

    By the way, another sensible alternative for this case is also to use a goto statement, this being one of the few justified cases for using it. I know this doesn't have anything to do with your question either, but I am just keeping up the discussion :)

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Haar-feature Object Detection (With The Viola-Jones Framework) in C#

    The Lounge csharp c++ php com design

  • Method chaining with short-circuit parameter evaluation
    C Cesar de Souza

    Not really an answer for the question you asked, but just a comment about error handling. A good strategy to avoid endless nested checks in error handling is to handle the opposite case first. So instead of writing

    Test.NotNull(myObject);
    if (myObject != null)
    {
    Test.NotNull(myObject.MyProperty);
    if (myObject.MyProperty != null)
    Test.IsPositive(myObject.MyProperty.Id);
    ...
    }

    we would have

    Test.NotNull(myObject);
    if (myObject == null)
    return;

    Test.NotNull(myObject.MyProperty)
    if (myObject.MyProperty == null)
    return;

    Test.IsPositive(myObject.MyProperty.Id);

    ...

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Haar-feature Object Detection (With The Viola-Jones Framework) in C#

    The Lounge csharp c++ php com design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups