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
X

xtofl

@xtofl
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A greener aviation alternative
    X xtofl

    I can't help but remember how I enjoyed the silence when all aircraft were grounded during the pandemic. Aircraft engines are _still_ very loud.

    The Lounge question

  • do any of you others have little coding mantras that save your behind?
    X xtofl

    * How would I explain this code to the cleaning personnel * If you can explain how it's done, you can script it

    The Lounge csharp css visual-studio question

  • Units of Measurement
    X xtofl

    Since all these prefixes are from ancient Greek, I presume the 32-core would be called a triacontakaiduo-core (cf. [Greek Numbers and Numerals (Ancient and Modern](http://www.foundalis.com/lan/grknum.htm)). But honestly... if you want people to understand you, go for "thirtytwo-core" :)

    The Lounge asp-net help tutorial question

  • I hate JavaScript
    X xtofl

    Really? No syntax hilighting? `function` is blue and `funtion` is grey. Or you're using the wrong editor. Otherwise, prepend this to all your javascript:

    var funtion = function(){ throw new Error("you typed _funtion_ instead of _function_"); };
    var x = funtion() {};

    The Lounge learning javascript python com functional

  • Github Atom
    X xtofl

    The '...' probably meant 'even though' :)

    The Lounge question

  • Python, Good or Snake in the grass??
    X xtofl

    'Industrial Strength': if you refer to performance, I wouldn't worry so much. Python is compiled to pretty fast code (take a look at http://stackoverflow.com/questions/672857/is-python-slower-than-java-c[^]). If you want to compare C# to Python, take a look here: http://onstartups.com/tabid/3339/bid/128/Python-vs-C-Business-and-Technology-Tradeoffs.aspx[^]. Python is way more than a pet language for sure. It's been there for ages, it has a huge community to support you, and a 'batteries included' standard library (including serialization, metaprogramming, async programming, ...).

    The Lounge python question

  • Embarrassing code admission of the day (or why C.S. is good for you)
    X xtofl

    From the msdn (msdn entry on List.RemoveAt) "This method is an O(n) operation, where n is (Count - index)." Keeping Count as close as possible to index may improve performance with a factor O(n^2) :)

    The Lounge question csharp android com design

  • i have a question about for_each
    X xtofl

    This is called 'generic' programming. The term 'generic' means that the definition of the for_each function does not assume anything else from the template argument than that it has an operator()( T ). If they would have implemented it using a function pointer, # they would have needed to specify the function pointer's type (e.g. void (*) (int)) and thus would have disallowed any other type of function (remember C) # they would have disallowed the use of stateful functions (e.g. accumulators), like often needed for the algorithms Also, the usage of templates greatly improves the optimizer's chances: it knows _at compile time_ what the body of the for_each block is going to be, so it can often skip parameter pushing etc..., hence reducing function call overhead.

    ATL / WTL / STL wpf graphics question

  • Object Oriented c++ Visual Studio Problem.
    X xtofl

    An often ocurring syntax error: a class declaration should end with a semicolumn.

    // -> no semi column => compiler sees this:
    class C {
    } void f(){
    }
    // which is invalid syntax.

    C / C++ / MFC c++ oop help csharp 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