|
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
|
|
|
|
|
Mike Hankey wrote: miss the Soapbox!
My favorite place!
Will Rogers never met me.
|
|
|
|
|
Roger Wright wrote: My favorite place!
Sometimes you just gotta loosen your belt and say f*** it.
PartsBin an Electronics Part Organizer - An updated version available!
JaxCoder.com
|
|
|
|
|
I'm not Fatboy although I often got mistaken for him.
|
|
|
|
|
Wow, it is nice to hear from you ! Too bad you dropped software, but heck, my last productive line of code was almost 15 years ago, turns out I am better at managing others to do the job for me.
What are you playing ?
I wish you all the best with the kids, and the rest, times are hard.
pompey-boy wrote: I used to own code project but Chris won it off me during a wild poker game in a strip club in malibu.
I thought we agreed we would not talk about this anymore
|
|
|
|
|
Are you in this camp
void AFunc(){
}
or this one
void AFunc()
{
}
I'm in the second
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Depends on the language.
C#:
Method()
{
}
Javascrip / Typescript:
function() {
}
|
|
|
|
|
same. in C++ i do the latter. In C# I do the former.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I have no opinion about braces one way or the other but I have to ask - Why use different styles in different languages? Given it's a choice it seems your personal sense of style would prefer one style all the time. No?
|
|
|
|
|
I generally just use what's in the specific language's style guide. It makes it easier when different developers work on a project if we stick to those.
|
|
|
|
|
Jacquers wrote: I generally just use what's in the specific language's style guide. For C/C++ there is about 42 different bracing / indentation styles fighting for dominance, so referring to "the specific language's" style, as if it was unambiguous, is meaningless.
From a logical point, I would prefer
void AFunc() {
} but I have never seen that promoted in any style guide.
The opening brace comes when the statement cannot be completed on the current line, indicating that a block is to follow. You should before you leave the line that you won't find a single one-statement line, but a block. I am one who think "if (day==sunday) weekend = true;" in one line is perfectly fine. "if (day==sunday) {" shows that the statement is not complete.
The following block is indented. An indentation always follows a brace. No an indentation without an opening brace; no opening brace without an indentation.
"if (day==sunday)
{
} starts the indentation before the brace - that is inconsistent!
Undenting follows a closing brace. No undentation without a closing brace, no closing brace without an undentation.
"if (day==sunday)
{
// indented code block
} undents before reaching the closing brace - that is inconsistent.
Noone seems to agree with my logic. So I bow my head and follow whatever style guide is enforced upon me.
Switch statements mess up indentation in C/C++. One common layout is:
switch (day) {
case (day == saturday):
case (day == sunday):
celebrate();
break;
default:
gotowork();
break;
} The case alternatives are not blocks, so they don't need braces (that is also why they need the 'break'!), but they are indented! I certainly wish they were blocks, for consistency's sake (and I really dislike the 'default is fall through'), so I prefer to make them blocks, adding braces, to justify the indentation. Very few agree with this logic, too - they are so used to seeing indents without any braces justifying it that the inconsistency doesn't bother them.
|
|
|
|
|
Why not just put blocks in if you prefer it that way? It also makes it so you can declare variables under the case without the compiler yelling at you.
case 1: {
}
break;
To err is human. Fortune favors the monsters.
|
|
|
|