No smilies, no avatars, no flashing gifs. Just discuss the issues of the day, from last night's telly via football to science or philosophy.
Started by GyratingTrampoline on Dec 23, 2021 10:02:14 AM
Branching vs Switching between versions at runtime

See post 1

Previous
|
Next
|
Top
|
Bottom
GyratingTrampoline - 23 Dec 2021 11:59:01 (#8 of 11)

Feature flags. That's a good name for what I'm doing.

So far its mostly just taking buttons off the ribbon and making certain things non-editable in phase 1.

If we start needing more than one of such flag or finding it's value being checked in more complicated places that's when I will start to worry

dmlc133 - 23 Dec 2021 12:28:04 (#9 of 11)

It's a fairly standard technique and there's plenty of best-practice literature out there. As you say, it should be used to avoid complexity, as soon as it becomes a source of complexity itself you may need to re-think.

Policywatcher - 23 Dec 2021 23:05:00 (#10 of 11)

Main thing is to encapsulate all the feature flags into a clean feature flags API so it's clear to find all the places each one has been used

It's not uncommon for such flags to become redundant, and it's easy for them to go zombie.

Dead, but still lurking in the landscape and killing things.

Where is for actual version separation though, that almost feels more like a case for a set of global constants and conditional compilation rather than runtime decisions.

machiavelli - 23 Dec 2021 23:19:43 (#11 of 11)

Make a bad Carry On style joke, then, ffs!

Oooh Matron - the TFT screens!

Previous
|
Next
|
Top
|
Bottom
Check Subscriptions
|
Home » IT & Computers