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
W

w peuker

@w peuker
About
Posts
8
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • JavaScript
    W w peuker

    AspDotNetDev wrote:

    JavaScript does also have a sinsible way to create a regex variable:

    var reggy = new RegExp("someregex", "options");

    As for JavaScript, just keep in mind that the literal form

    /regex/

    is compiled once (when the script is loaded), whereas the explicit constructor call

    new RegExp(pattern, options)

    is compiled every time it's passed. see JavaScript RegExp Object... Regex is more enjoyable if you (can!) use(=write) it when needed. I have never regretted to have learned. (syntax isn't a big challenge any more)

    The Lounge javascript question

  • JavaScript
    W w peuker

    MehGerbil wrote:

    Placing the regular expression into forward slashes is something I'd never guess - and placing a modifier on the end was even stranger. Coming from a C#/VB background I would have expected quotes around the regular expression and the modifiers to be a 3rd parameter.

    Coming from a Perl background I found it surprisingly clear ;)

    The Lounge javascript question

  • Static Code Analysis Tools
    W w peuker

    Cppcheck, it's OSS, good at C and C++ (even C++11), and it gets better every 2-3 months (see their roadmap). BTW: the team is very reactive to well-formed bug reports! :)

    The Lounge csharp c++ tools question

  • Obscure C++ Features [from the newsletter]
    W w peuker

    You mean

    #define ever ;;

    The Lounge c++ com question

  • Best 404?
    W w peuker

    BTT. There was a lovely monster living in Mozilla's room 404, but I can't find it any more. Does anybody know where it is now?

    The Lounge php question

  • Revolutionary programming technique / IDE
    W w peuker

    autocompletion is the next to disable :-) We should never be allowed to write faster than we can think.

    The Lounge css visual-studio tutorial lounge

  • Is there a reason you would initialise variables like this?
    W w peuker

    ...and don't forget that the compiler processes the initializer list following the declaration order given in the class definition. So you better stick to that order in the list (to prevent confusion). There are tools availabe that check this (e.g. cppcheck)

    C / C++ / MFC oop question announcement

  • Is there a reason you would initialise variables like this?
    W w peuker

    Some compilers initialize memory to zero. But for compatibility reasons, the C++ standard leaves (built-in type) members untouched (I don't know the latest one). Of course, if your members have default constructors, they will be called (before the constructor body) unless you place them in the initializer list.

    C / C++ / MFC oop question announcement
  • Login

  • Don't have an account? Register

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