Every place I've worked that used C/C++ in the past 35 years dictated this style (and it's my style of choice). if () { } else if { } else { }
John Wellbelove
Posts
-
if else Style -
Why would any solo dev release open source?I think here needs to be a corporate culture shift in their view of open source software. If they don't start to support it, then quality OSS projects will start to disappear or stagnate.
-
Why would any solo dev release open source?I started an open source project on Github back in 2014. Its initial purpose was to share some of the techniques I used to replace the STL with a library that was more tailored to C++ embedded projects. Over the years it became more and more popular around the world and now I have many hundreds of users registered on the project's Slack group. Over time (nearly 9 years), feature requests and my own additions have turned it into a major project that can take a significant amount of my spare time, to the point where it could easily be my full time job. I've tried to monetise by asking for sponsorship, so I can earn my living from the library, rather than fitting it around the day job, but sponsorship only brings in beer money. Developers are keen to financially support the project, but their managers can't see the point of paying for what they're already getting for free. I've tried offering 'paid support', but there were few takers. I have to admit that I have become very cynical of the whole business of companies using my unpaid work to boost their productivity and profit, on a project that, if I were creating it as part of a full time role, I would be paid very well for. I'm feeling like I am just an unpaid employee to most companies. I can easily see why some projects are pulled or abandoned.
-
What's your font?Droid Sans Mono Slashed
-
Should we / I worry about AI "taking over the world "?I'm not afraid on them taking over the world, I'm afraid that they'll turn out like the ones in 'The Hitch Hikers Guide to the Galaxy' and they'll be insistently and annoyingly 'helpful', whether you like it or not.[
Share And Enjoy.mp3
-
tyops?'false' always comes out as 'flase'
-
Do you like your keyboard for coding?I use a simple and unexpensive Cherry KC1000. Nice low profile keys with a nice action.
-
VectrexI think the the early 1980s was more "Cambrian Explosion". A massive diversification of computers, most of which died out after the dominant species took hold.
-
Anyone know any motivational techniques?You have motivational burnout. If it's not crunch time then a week or two's holiday. It's great for motivation recuperation. Just make sure that you do NOTHING to do with work during that time, no calls to work, no calls from work, no taking work away with you.
-
Do any of you guys (in the UK) use FreeAgent for Accounts/PayrollI've been using it for several years now and I've found it a breeze to use. I had some issues early on, but one was down to me miscategorising a few items and the other was due to invoices been raised before "FreeAgent day" and being paid afterwards. I previously used to use a spreadsheet but it became a nightmare to ensure that I had got all the formulas right and correctly cross linked. I used to employ an accountant to create and file to HMRC and companies house for me. I file 'realtime' payroll every month with a few clicks, and will be filing my CT600 with HMRC direct from FreeAgent this year. It will even do your tax return, if you have no other outside income (from rental property for example).
-
M5 Stack Fire - can recommend!This sounds like a manufacturer created ad.
-
How do you take your coffee?Ground coffee - Black Instant coffee - With milk
-
That's one way to do itThe British English convention is to put an 'and' between any hundreds and non-zero tens/units and 'point' to indicate the fraction part. Therefore 123,456.789 is... "One hundred and twenty three thousand, four hundred and fifty six point seven, eight, nine"
-
That's one way to do itThey've missed a whole set of entries for those that speak British style English. American: Thirty-Two Thousand One Hundred Twelve British: Thirty-Two Thousand One Hundred And Twelve I'd better get editing...
-
Easter EggsI once worked on the design of video surveillance equipment, back in the days of dial-up modems. I put several Easter eggs into the code over the years. One was an insect that ran up the screen after 1 hour of complete inactivity by the operator. To test it I could trigger it by pressing one of the buttons 8 times in a row. When sales finally found out about it, they integrated it into their demos by saying that there was "one known bug in the system". Another was a screen saver that I added to the device. It was called "Rapid Vision" and an R would continuously morph into a V and back in different parts of the screen. Every 1000th morph, it would turn into the word "Hello" The last was when I left the company. I left an image of myself with mad animated eyes, that could be triggered by pressing a very particular (and highly unlikely) sequence of buttons on the keypad. I haven't done anything like since, apart from a simulated flashing LED indicator, on a GUI, that showed me that the timer interrupt was still functioning. It was labelled "GFL" (Gratuitous Flashing Light)
-
Progressives.... not getting along with meI tried getting progressive lenses (called varifocals here) for computer work. I use a dual screen setup and found that the focus was not consistent across the width. I found myself having to turn my head to look at each screen instead of just glancing across with my eyes. In the end I took them back and got a pair of bifocals. I got the join between the two distances set to a custom height for me so that the join lined up with the base of the monitors.
-
Do you all use wysiwyg web site editors.That's the one I use, but I'm not a professional web designer, just a programmer that needs a website.
-
Your preferred Git UI (if any)?I've tried a number of Git GUIs, but I ended up using Fork. Simple, cheap and regular updates.
-
Your preferred Git UI (if any)?I avoid doing "complex stuff" in Git. I almost always turns out doing something that I never intended it to do!
-
Would you trust a self-driving car?I'm looking forward to seeing how a self driving car would cope with the residential roads in my home city of Portsmouth in the UK. Victorian/Edwardian roads, built before cars existed, require a mutually agreed "code of conduct" between drivers to stop a logjam forming in the single car width between the parked vehicles. You need to anticipate the actions and respond to signals (light flash/pulling over) over a distance of 100 yards or more to be able to negotiate the streets here. I can't see a self driving car being able to comprehend any of that. What I expect to see is it causing a multitude of traffic jams as it ignores Portsmouth road 'etiquette'. See pic to get the idea of the issue.