News for hackers. Stuff that matters.
Re:What Makes a Great Software Engineer? Just My Thoughts by segmondy on Saturday July 09, 2016 @12:40PM (#12062088)
For magic numbers, just use a well named variable, constant or configuration parameter.

private const TIME_DELAY_SECONDS = 5; $this->executeAfter(TIME_DELAY_IN_SECONDS);

Re:What Makes a Great Software Engineer? Just My Thoughts by gknoy on Saturday July 09, 2016 @07:06PM (#12063739)
I'm a fan of named parameters, too:

    # python
    self.executeAfter(func=myCallback, delay_in_seconds=5)
    # or
    self.executeAfter(func=myCallback, after=delay(seconds=5))