|
Great point about printers and the challenges of underscores. Thanks for sharing.
This is also the reason we used to like Hungarian notation so much back then too.
We did "offline" code reviews where we sat around a table and looked at code print-outs.
Hungarian made sense because you could be a couple pages down and still know the type without looking back up at the declaration.
Of course, there was no intellisense back then either so...
These kids don't know what they got!!! 
|
|
|
|
|
raddevus wrote:
so much back then too. ...you could be a couple pages down and still know the type without looking back up at the declaration
Also when it was less clear that a context that was pages long was probably going to end up being a problem for maintenance no matter what it looked like.
Like an actual C++ class that I worked on that I calculated had 20,000 lines of code, hundreds of variables and hundreds of methods. It also spanned multiple files. I might not have even found all of the files.
|
|
|
|
|
raddevus wrote: Hungarian made sense because you could be a couple pages down and still know the type without looking back up at the declaration. A couple of pages? The biggest type declaration I have been almost in touch with (I was offered an opportunity to see it, but declined ) was about 8300 lines long. 72 lines per page makes a 120 page book for that declaration alone.
For the curious ones: The type declaration appeared in the CHILL source code of the System 12 telephone switch, when the very first software version was being prepared. My guess is that it grew considerably further throughout the lifetime of System 12. It defined a message format, with variant fields for different function codes all embedded in a single type declaration, 'to have it all in one place'. The number of codes / variants most likely grew in later releases.
|
|
|
|
|
I use pascal case in .NET, camel case in JS, and snake case in my libraries in C++.
To err is human. Fortune favors the monsters.
|
|
|
|
|
wow! you use snake_case in C++?
I only use snake_case in Rust bec I'm forced to. (oldish c/c++ dev here).
|
|
|
|
|
particularly for my libraries. I also tend to make heavy use of Generic Programming and thus templates, and so my libraries tend to be very STLish as it is. Consequently, I tend to follow STL patterns.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Ahh...never used much STL stuff because I (oddly) took up C# (in 2000/2001 very early) & that was when STL was coming on more strongly. My loss / lack of experience.
|
|
|
|
|
I don't use it a lot because it doesn't handle IoT very well without custom allocators and such, and even then it is heavy on little allocs and deallocs.
I do study it though, because I believe in generic programming as a concept, when it comes to C++. If you aren't coding with GP, you aren't using the most powerful, flexible feature of C++. Templates really are where it's at with this language. They are first class, and if they aren't first class in your code, you're probably not using it to its full potential.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I pretty much do whatever strikes my fancy at the moment, throwing structure, conventions, and consistency to the wind.
I find that adopting a care-free attitude to coding makes for a more interesting and fun time while testing and debugging my code in Production.
|
|
|
|
|
I actually love this bec I feel very similarly.
But it is probably the latent Artist hiding in my brain which is usually beaten senseless by my inner Computer Scientist. 
|
|
|
|
|
I'm a solo dev and as such have complete autonomy to do as I please. It's funny that it has changed through the years as IDEs/autocomplete have gotten better, and my eyesight has gotten worse!
In the beginning, I followed the way I was taught at uni, which was either scopeTypeName for public/global or typeName for locals. Back then before IDEs got smarter, I also used very short variable names.
As time wore on and my eyesight got worse, I started to favor snake_case_descriptive_names so that it was easier for me to read and understand. Additionally, IDEs had improved such that long names weren't an issue as far as typing and type recognition while reading/debugging.
As for generic objects like iterators, indexes, database objects (connections, datatables, readers, etc.) I have a stock set that I have used for 20+ years. IMHO, these are distinctive enough as to basically serve as a digital fingerprint.
Currently, I'm the only on working on my code, but I realize that may not always be the case. I'd like to think that between descriptive variable name, my shorthand, and sparse commenting, that the next poor chap who sees it can understand what this mess actually does!
Regarding curly braces, when I have to use them, I like the opening brace on a new line with everything indented between.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
PascalCase for non-locals, sometimes prefixed by "_" for private /protected values. snake_case for locals.
For some reason camelCase has always offended my sensibilities.
Software Zen: delete this;
|
|
|
|
|
It depends on the language. For JavaScript and TypeScript it's camelCase . For C I'll use all three depending on my mood and the project.
As an aside, I too want to like Rust, but its opinions are a bit too opinionated. While I understand the reason they chose snake_case for a systems language, I just can't help but feel that's an old convention for what's supposed to be a modern language. At the very least, it shouldn't be a compiler error if someone wants to use something else.
Jeremy Falcon
|
|
|
|
|
Just a brief visit, was going through my old emails and thought I'd pop in to check if id overtaken griff in the rep points yet and see how you geeks are doing. Still Virgins im guessing but apart from that hope you're all good.
Me? I'm good. I gave up software about 5 years ago because it's a lot more boring than Tony Stark makes it out to be. Jokes. I gave it up to be a single dad. Had been split from the kids mum for about 18 months, when she came and dropped them to me one weekend - apparently they were getting in the way of her hedonistic lifestyle- and off she f***ed. The change from a decent salary + bonuses to universal credit was (and still is) difficult to say the least. And is only possible by supplementing with side earns such as selling friends flower buds or Knocking (buying gold on doorsteps). I also consider myself a (semi) professional gambler now.😂😂 Well I take more than I give, so why not. Plus it sounds better than "dosser" . Wouldn't change it for the world though as I know the kids are safe, and it's all about them.
So those I know and remember me, how's things? What's changed with you in the last 5 years? Still playing the game...oh sh*t sorry.
Those that don't know me, feel free to say hello. I'm pompey boy, I used to own code project but Chris won it off me during a wild poker game in a strip club in malibu.
|
|
|
|
|
Liar! It was a Pétanque tourney in a lap dance club in Tehran!
Welcome back - you don't have to still be a regular developer to pop in and post drivel, we even allow dossers these days.
Have a few extra points to get you at least closer ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I do remember a time when I actually was above you in the rankings and CG was top.🤣
|
|
|
|
|
Its been a long time. Good on you taking care of the kids. I probably would have kept the boring day job - having the kids and all.
|
|
|
|
|
Good to hear from you slack.
|
|
|
|
|
In 5 years? I got married, changed two companies and a dozen customers, got into an altercation where weapons and pseudo-mobsters (that's what they tried to pass for, they aren't) were involved followed by 2 criminal lawsuits that are still going on. I doubled my income and now I'm working in the best place I ever worked in, with even a couple of coworkers whom I was friend with during Uni.
I started playing MMOs and I'm liking it. I read bout a couple hundred books and I discovered myself a fan of the Xianxia genre. I discovered a lot of bands, from old classics like Fleetwood Mac and Blue Oyster Cult to local bands that formed less than a year ago, passing through innovative sounds like Mongolian folk metal (The Hu). I started my own LP collection.
Oh and I helped a friend to not end himself.
That's the brief summary I'd say.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
modified 12-Dec-22 8:56am.
|
|
|
|
|
I love my music. I've not had a TV for a year out of choice. So would just listen to Spotify most days. I'm into the UK drill(diff to us drill). According to Spotify I listened for 6300 hrs last year and my favourite artist was headie one. I'm in his 0.0001% listeners for 2022. If you Google his wiki you'll probably come to the conclusion that if he knew a 45 year-old white male was his top listener it would f*** his street cred 🤣
Based on what you've told me I think you'd like Louis dunford, fairly unknown even in UK but amazing.
|
|
|
|
|
I changed work 2 times and I doubled my income too (like den2k88).
Family grew up.
Hair in my head got reduced and a lot more white.
I started with Kempo.
...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
pompey-boy wrote: Still Virgins im guessing
I lost it, but I'm slowly getting it back. Also had to change my display name, because in my previous company the concepts of "discretion" was not present.
There is only one Vera Farmiga and Salma Hayek is her prophet!
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
|
Nope, but I'll take that as a compliment. The big guy is still hanging around, I think I saw a message from him recently. I'm just someone with unpronounceable Slavic name that was active here about the same time you were.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Welcome back, miss the Soapbox!
PartsBin an Electronics Part Organizer - An updated version available!
JaxCoder.com
|
|
|
|