tterrace
Joined 15 years ago
Joined 15 years ago
See: https://twitter.com/jasonfried/status/1168986962704982016 and the SS in the reply: https://twitter.com/webiyo/status/1205534848192045056?s=20
In terms of underpowered build steps, I have several fairly complicated, 1k-2k line build factories, with multiple codebases and hundreds of steps (some custom, some from the stdlib). There's many dependencies between the steps, and many different properties that can be toggled in the UI. All these steps need to be defined up-front in the master, but their actual execution often depends on runtime information, so it becomes a mess of doStepIfs. I think it would be an improvement to give a program on the worker the power to tell the service what it wants to do, rather than the other way around.
https://github.com/luci/recipes-py/blob/master/doc/user_guid...
Some other ideas that I've heard that may be better: store the secrets on a separate "offline" server that only the web server can talk to. Or have the file readable only by root, run a bootstrap script as root that would read the file, drop root privs, and then start the webserver.
python -m timeit --setup "from collections import namedtuple; Point = namedtuple('Point', ['x', 'y']); p = Point(x=0, y=0); get_y = Point.y.fget; get_x = Point.x.fget" "get_x(p) + get_y(p)"
Maybe I’m looking back with rose-colored glasses but I remember Visual Basic being intuitive and approachable for beginners in a way that I haven’t seen since.
The fader text is a nice touch too, that immediately makes me nostalgic.