|
Brian Kernighan is a man.
Dennis Ritchie is a man.
Hence K&R consists of only men.
QED
K&R braces are All-man braces.
Problem solved.
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
Bonus points for a delightfully contrary reply!
Software Zen: delete this;
|
|
|
|
|
Since I took up Visual Studio, I've been programming C#. In C# context, there is no similar issues: You just set up the line break, indentation rules and bracing style you want, delete and retype the closing brace, and that is it.
I assume that VS can do the same for C / C++ code.
Sure, if your source file style is to make every function, no matter how tiny, into its own source file (with typically 60 lines of copyleft, 20 lines of #include and 10 lines of C code), then you probably have a several thousand files to open. All C++ code I have been handling had the entire class definition, with all its methods, in a single file. If you have several thousand classes, then you are talking about a huge system! (Or possibly a poorly chosen class structure.)
|
|
|
|
|
Gary R. Wheeler wrote: I'm doomed.
clang format.
|
|
|
|
|
That's easy. Just run your compiled exe through a decompiler and you will have consistent braces
|
|
|
|
|
[Puts on asbestos suit]
Now this won't be popular but C style languages have irritated me since the 80s. Probably something to do with being taught that the future of programming (I also dislike the word "coding" for similar reasons) would involve natural language and a specification of the problem rather than the solution.
In line with that (puts on 2nd asbestos suit) more "verbose" languages (e.g. COBOL or later, VB!) seemed to make sense and I never fully understood people's reaction that something was "too verbose."
However, when a conversation involves how to space punctuation marks, I think the point is made for me!
|
|
|
|
|
Autocomplete/intellisense has made me less concerned about brevity but when I was coding in the 1980s and 1990s I found it helpful that C and C++ didn't saddle me with a bunch of redundant text to wear down my fingers with.
Real programmers use butterflies
|
|
|
|
|
A fair point, but there were examples of keyboard shortcuts to save typing the whole word, depending what you were using.
|
|
|
|
|
REMOVE ASBESTOS SUITS AND BURN THE HERETIC!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Hopefully the Burn function will accept a delegate as input. If only I could remember what shape brackets to use for that ...
|
|
|
|
|
#define begin {
#define end } Problem solved, at least in C and C++.
C#, not so much unless you use one of the add-on preprocessors I've seen wandering about.
Software Zen: delete this;
|
|
|
|
|
55" 4k QLED monitor
Ryzen 7 16-hw threads with NVMe and 32GB of RAM
A custom built, convenient solderless hardware development platform I built specially for ESP32 boards, sitting under a brilliant little led magnifying lamp
wired up via USB to my desk mounted backlit 11 port USB3x powered hub
Interfacing with a backlit gaming keyboard just to keep a little ambient desk lighting even at 6am like now when it's otherwise dark here.
It's finally everything I could have wanted - a computer I can't keep up with, a screen with more real estate than i even really need, where everything is as crisp as it is on my phone, complimented by a work desk where I can quickly wire up USB powered IoT widgets that I can actually see to build without bifocals - All the hardware above working brilliantly in tandem to give me a marvelous experience.
I'm such a nerd that I get thrilled by something like this but oh well.
My development lair is complete.
I'm sure I'll find ways to improve on it eventually, but right now it's more than I could have hoped for. The last time I remember feeling that way about my dev environment was when I went from being a couch surfing teenager hacking on whatever i had available to working at the Microsoft corporate monster where I had a fancy professional workstation - a paycheck with a reliable place to sleep at night - and someone else to worry about IT.
So I'm pretty excited about it.
Real programmers use butterflies
|
|
|
|
|
I'm very pleased with my new LED nightlight with PIR sensor that turns on when I go upstairs early in the morning to my home office. No more stumbling around in the dark on the stairs!
|
|
|
|
|
Technology is elephanting amazing.
Real programmers use butterflies
|
|
|
|
|
It is nice to live in the future!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
All you are missing is (a) a retractable lighting rod, and (b) an assistant called Igor.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Well I do have a broomstick and a black cat.
Real programmers use butterflies
|
|
|
|
|
And a butler named Willikins.
|
|
|
|
|
But can it run Crysis?
|
|
|
|
|
What's that?
It runs games fine, unless you try to run them at 4k. Then it gets like 20-30FPS depending on the game.
Real programmers use butterflies
|
|
|
|
|
Not quite as funny if I have to explain[^]
I remember reading a review back in the day and my PC could probably run it at lowest settings.
The requirements were so high it hurt its popularity, but then it became a meme and people are still talking about it
|
|
|
|
|
I don't know a lot about games. Or memes.
Real programmers use butterflies
|
|
|
|
|
Nice setup! I suppose it's only natural that we are all (well, most of us) working on hardware that gets better every year.
Personally, I have nothing at all to complain about with an off-the-shelf tower (only upgrade being SSD) connected to twin 27 inch monitors. It's definitely the best system spec-wise I've ever had and best of all, it's the quietest system I've ever had. This is complemented with a 6 y/o laptop also with pretty good specs that I should be able to get another 5-6 years out of.
IMHO, hardware improvements have plateaued to the point that even 10 y/o systems are still 'good enough' for most people. 20 years ago my desktop/laptop replacement cycle was around 2 years and now it's at least 10 years.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
Yeah, this machine for me is intended as a 10 year device. My last "monitor" purchase was a 1080p 55" I got secondhand - in 2016** but I tend to throw about $1500 at a mid-high level system every 10 years, not counting the monitor, which usually gets upgraded independently, depending on a variety of separate factors that have nothing to do with the cpu.
** I prefer secondhand or display model large TVs because these things *often* fail 3-6 months in if they're going to fail, and maybe 1/3 of them I've encountered do. There's nothing I despise quite like trying to yank a 55" widget off of a wall to take it back to store, much less try to return it to an online retailer. I'd rather pay, even full price for a used one that will be good for another 10 years because it lasted the first year.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: I'd rather pay, even full price for a used one that will be good for another 10 years because it lasted the first year.
The problems I find with second hand flat displays are:
(1) The backlights fail.
(2) They get damaged in transit.
In an entirely opposite resolution to you, I've resolved only to buy brand new flat screens!
|
|
|
|