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
J

Joop Eggen

@Joop Eggen
About
Posts
11
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C declarations are half backward
    J Joop Eggen

    Java's stupid (=political) C compatibility C started as a simple language on top of assembly language. Lingual considerations of abstractional consistency had no priority. As error awareness. Everything is an int, boolean, pointer, array, functions. In fact declarations have a weird kind of syntax requiring a large parsing. Or for a human a bit of back-and-forth reading. As java was launched, it intended to improve some parts of C++/C. So in java the entire type info becomes separate from the variable.

    char[] jarr; // Normal java.

    But as novice java kept the C style for accustomed C/C++ programmmers:

    char jarr[]; // Obsolete C style java.

    If one looks at java's:

    char[] jarr = new char[1024];

    one get's an idea why C chose:

    char str[1024];

    The 1024 is not part of the `char*` data structure as field, but some compile time allocation. In general one should accept C as it is: a compiler strong, thin layered, fun language. For language features it is pedagogical unsuited w.r.t. type systems, actual data, error prevention and so on. Taking any language, like a simple Pascal, might give less confusion with pointer versus array like in parameter passing. Then going back to C one sees that arrays are passed as pointers i.o. the pointed-to data as in Pascal.

    The Lounge data-structures question

  • So my little arduino clone is fun but I was wondering something
    J Joop Eggen

    K=kathode/-, A=anode/+; so indeed a generalisation of LED-/LED+.

    The Lounge hardware help question

  • When do you cut your losses?
    J Joop Eggen

    Throw a Linux on it; say Ubuntu or a variant. Lubuntu is said to be fast.

    The Lounge help question linux hardware announcement

  • Mental arithmetic
    J Joop Eggen

    (I want MathML.)

    The Lounge html com question

  • Mental arithmetic
    J Joop Eggen

    Though one mistake, (a+b)² + (a-b)² = 2a² + 2b². Good we are still as intelligent as then (?). Probably the same trick the teacher would demonstrate. It would be interesting if some mathematician historian would check whether such tricks were indeed collected for instruction - of numerical math.

    The Lounge html com question

  • Mental arithmetic
    J Joop Eggen

    (12-2)²+(12-1)²+12²+(12+1)²+(12+2)² using (a+b)² = a²+2ab+b² will cancel those 2ab. Hence remains 5*12² + 2*4 + 2*1 = 5*146 = 10*73 = 730. Divided by 365 = 2. So the exercise is indeed for the application of (a+b)²+(a-b)² = 2a²+2b².

    The Lounge html com question

  • internationally approved symbol for a glitch?
    J Joop Eggen

    - Large & in color: a banana peel. - Small: a reversed box with a this side up arrow at the bottom.

    The Lounge help graphics question

  • A new date standard?
    J Joop Eggen

    This is format dd-MM-uuuu, where the year may be negative: -1 here, as opposed to yyyy. Maybe a hotel reservation in Bethlehem.

    The Lounge csharp javascript database linq com

  • Why do TAR files always need to be decompressed twice?
    J Joop Eggen

    The decompression can be combined, but indeed the format packed twice as .tar.gz or `.tar.bz2` or such. This is à la Unix where small operations are combined into on large operation. Its advantage here: tar (tape archive) concatenates all files, and the ensuing gz compression can do a "far" better compression over all content. As opposed to .zip compression.

    The Lounge question

  • English: 3rd person singular s
    J Joop Eggen

    Take "Twelve Roses is a nice book" - the name/title of something may be plural, but that does not make the something plural. One should read "The company 'Texas Instruments' makes ..."

    The Lounge c++ visual-studio question discussion

  • What's a poor developer to do?
    J Joop Eggen

    That experience will lead to specialized projects. The more specialized, the better. Otherwise projects tend to take much time. Do active search in small firms. I would still advice to jump on Java. They have libraries for everything. Start with Java 6. Open Source projects come to mind; they provide some continuancy, need active, lasting people. Can offer "commercial" support. Do not immediately start a new project though, only when having something to dedicate oneself to.

    The Lounge c++ help tutorial question learning
  • Login

  • Don't have an account? Register

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