One liner is fine, but I always add the brackets since getting stung by a badly formed #define or macro (can't recall which). It had a ; in it, so only the first statement in the do something was executed
Steve Owen
Posts
-
Code Reviews -
User Experience question (edit 2D curve)In your example you are deleting four nodes leaving only the start and end nodes, so I would expect to select the four nodes (left click) and then delete. You can't delete a single segment without some mechanism for re-connecting the remaining segments (or leaving 2 unconnected lines), but you can delete a single node to merge 2 segments, hence selecting nodes is more functional than selecting segments. Only use delete key or right click context menu. Don't invent new ways of interacting when the existing ways work just fine. If you have to explain your UI then the UI isn't right.
-
Oh fer Elephant's sake...Same thing happened to me recently (Iresa went bust) I had a large credit balance because they never billed me and they also paid me interest on my credit balance! maybe explains why they went bust.... Advice was don't change, any outstanding balance(credit or debit) will be transferred to a new company appointed by the regulator. Any credit balance is protected by the regulator. It all went smoothly, with the new supplier putting us onto their best tariff and charging my credit balance for the power used on the original Iresa rates. Once balance transferred we could then move to another supplier. If you change mid-bankruptcy it can delay refunds of any credit balance. Apparently multiple smaller suppliers at the cheaper end of the supply market have gone under this year.
Click to edit signature
-
How to become an enemy in your office, the quiest wayMy interpretation - your comment 'how little the fix technique' would make me wonder why the team was so incompetent they didn't find it themselves.
-
Time off in lieu vs overtimeIt depends if the overtime hours are spent producing more product which can be sold (production overtime), or if they are spent trying to fix a problem or catch up on a late project which cannot be charged to the customer (R&D overtime). The former equals more profit, the latter is more cost.