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
T

Toyist

@Toyist
About
Posts
7
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I remember...
    T Toyist

    when I had to enter my bios by hand when my clock speed jumped from 1MHz to 2MHz when my HD was 5M when my RAM was 32K http://www.imsai.net/

    The Lounge database com testing beta-testing question

  • Random Tips on Windows.
    T Toyist

    It's been awhile, but that's how the Amiga worked as I recall. only single click.

    The Lounge com performance question lounge

  • Can someone tell me why should I upgrade from VS 2008 to 2010 or 2012
    T Toyist

    I agree with using multiple tools/languages in projects. I do all of my engineering work in MATLAB and generate C++ code from that (saves 100's of hours if the math is complex). I clean it up in VS. When I really need performance I drop into C and run it through my Lattice C compiler (20yrs old but still the best for generating super-clean assembly language) and if I really need to get scary I write pieces in machine code. IMHO I think the first programmimg language anyone should learn is assembly. When you understand the internals of a CPU you become vastly better in any language.

    The Lounge visual-studio csharp sales

  • Anybody else read the Java thing in the daily news?
    T Toyist

    There's a billion (~) starving people in the world, does that make starvation good?

    The Lounge csharp c++ java dotnet hardware

  • Do you think math people are the best programmers?
    T Toyist

    Couldn't agree more; I'm an EE :). I think the things you get as an EE are an understanding of the underlying hardware and what is actually happening in the processor for every line of code, a discipline for viewing everything as a (hopfully closed loop) system, and intense and applied math. (Most math majors I know don't really apply math to anything.) Next to EE's I find musicians pretty easy to train as really great programmers.

    The Lounge question discussion

  • Why the world hates Hungarian notation?
    T Toyist

    I always publish a data dictionary with every project and a style guide for any deviations from "standards" and to define which "standard" I am using. A single file holds the definion and type for each variable. Easy to find the datatype and you actually know what the variable means in the real world. This also helps keep business variable names distinct and consistant across an entire project (e.g., never "name", always clientName, providerName, and clientName everywhere) which I feel is a critical practice. I also publish "global" names that are reused. (e.g., ndx is always used for the innermost indexer in loops). You can write scripts that will find most variables and add them to a dictionary. For Property-backs I use _whatever so I know I will have a Property Whatever on the object. Though I sometimes shortcut when it is very clear. (e.g., On the "Client" object I may have _clientName on the back, but "Name" on the Property. I always (and only) use type prefixes for GUI object types in stuff like ASP.net (e.g., "asp:Button btn_SaveClient") and always publish the prefixes btn =button, tb =textbox in the data dictionary. This really helps in the code behind when VS creates event handler names for you - tb_Client_OnFocus, tb_Client_TextChanged. Every naming convention is only designed to make code clearer. A data dictionary does this best (IMHO), and if you inherit multi-convention code this really helps "fix" it. (e.g., if in one file I have clntCode and in another ClientID and another intClient I can add them all to the dictionary, make sure I understand them, and then find-replace for each - clntCode int; -> clientCode Int32; ClientID decimal(6,0); -> clientCode Int32; Not perfect, but a good start. Which convention doesn't matter if you are consistant and document well. A Data Dictionary does this, provides a big step in documentation, and helps provide a global view of your application.

    The Lounge question csharp c++ collaboration tutorial

  • Revenge of Redmond – C# and the .Net Frameworks
    T Toyist

    In the end it's all goto's. The processor turns everything into a goto to a memory address or register. Contained within a procedural function a goto is much more efficent than a bunch of if-then-else's or cases. It is also much more readable to an experienced programmer when used properly. Goto's are not bad; misuse or no use is poor practice.

    The Lounge csharp announcement delphi dotnet visual-studio
  • Login

  • Don't have an account? Register

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