On the subject of coding style, what's the most common way of differentiating class variable names, and the variables used to assign them values in the constructor. Python doesn't have this problem because it uses "this.variableName = variableName" but in a language like C++, these have to be different.
WTF. Motif is the worst. Maybe they made the GUI bad on purpose to keep nubs from trying to use it.
Motif may have been the worst, but it was also the first. Well, okay, except for maybe Sun's OpenLook, which really wasn't any better. Both Motif and OpenLook date to the late 80's/early 90's. GTK+ and Qt didn't show up until the mid to late 90's. As far as trying to keep nubs from using it... well... I think it was a case of just not understanding how to make a decent GUI along with a whole "GUI designed by committee" thing. Of course, even if the GUI itself sucked, the API was even worse. You needed something like 30-40 lines of C code, most of it boilerplate crap, just to put a button on screen and have it do something when you clicked on it.
On the subject of coding style, what's the most common way of differentiating class variable names, and the variables used to assign them values in the constructor. Python doesn't have this problem because it uses "this.variableName = variableName" but in a language like C++, these have to be different.
Where I work, we prefix class variable names with an m_ so we get things like m_numItems and stuff like that. Other alternatives include prepending with an underscore so you get _numItems or appending so you have numItems_.
On the subject of coding style, what's the most common way of differentiating class variable names, and the variables used to assign them values in the constructor. Python doesn't have thid problem because it uses "this.variableName = variableName" but in a language like C++, these have to be different.
That is a great question. I tend to always just use as similar a name as possible, modifying it slightly.
I tried to skim through Code Complete to find a solution, but it took too long. It's a large book, and the index and table of contents weren't much help. I also found this StackOverflow thread.
Which gave me an idea. What if you called the setter from the constructor? Something along the lines of this not complete code. Would this even work?
class Foo { int parameter; Foo(int parameter){ setParameter(parameter); } void setParameter(int newParameter){ parameter = newParameter; } }
Using the newParameter language in a setter function makes sense, and it would allow you to use the name of the variable as the parameter name in the constructor. The added bonus is that any code in the setter to validate the input would be triggered in the constructor for more DRY and added protection and consistency.
On the subject of coding style, what's the most common way of differentiating class variable names, and the variables used to assign them values in the constructor. Python doesn't have this problem because it uses "this.variableName = variableName" but in a language like C++, these have to be different.
What if you called the setter from the constructor? Something along the lines of this not complete code. Would this even work?
class Foo { int parameter; Foo(int parameter){ setParameter(parameter); } void setParameter(int newParameter){ parameter = newParameter; } }
Using the newParameter language in a setter function makes sense, and it would allow you to use the name of the variable as the parameter name in the constructor. The added bonus is that any code in the setter to validate the input would be triggered in the constructor for more DRY and added protection and consistency.
On the subject of coding style, what's the most common way of differentiating class variable names, and the variables used to assign them values in the constructor. Python doesn't have this problem because it uses "this.variableName = variableName" but in a language like C++, these have to be different.
What if you called the setter from the constructor? Something along the lines of this not complete code. Would this even work?
class Foo { int parameter; Foo(int parameter){ setParameter(parameter); } void setParameter(int newParameter){ parameter = newParameter; } }
Using the newParameter language in a setter function makes sense, and it would allow you to use the name of the variable as the parameter name in the constructor. The added bonus is that any code in the setter to validate the input would be triggered in the constructor for more DRY and added protection and consistency.
I tried that and it worked.
Great, now I feel like I'm too clever for my own good.
Usually people use camelCase and PascalCase to differentiate between the two.
Interestingly enough, the Windows API was originally conceived as a Pascal API and later redone as C in the Win16 era, hence the wide use of PascalCase in it. Win32 was C-based from the start, but kept many of the conventions of Win16, including PascalCase, to allow for ease of porting.
BTW, the absolute worst thing to come out of the Windows APIs was Hungarian notation.
Edit: correction. Win16 actually used Pascal calling conventions to save memory (or so Microsoft claims) over C calling conventions, but was never originally written in Pascal. It was written in a mix of C and assembly.
Anyone able to translate this for me? A cool Japanese indie-pop guy wrote this about one of my songs and the Google translated version is fairly incoherent in regards to that last line.
OMG the Hungarian notation when I did some Visual Basic in high school. I don't even know how the Hungarians can get any code written.
Fortunately for the Hungarians, only one of them actually came up with and used it. Unfortunately for everyone else, the Hungarian who came up with it was the lead programmer on the original DOS version of MS Word and wielded crazy influence at Microsoft as a result.
Apparently if you sign up you can still get a free 1-user account. It used to be the free account was 10 users. Our account is so old we have even more users than that for free. I got that shit when it was still called GMail for your domain.
Apparently if you sign up you can still get a free 1-user account. It used to be the free account was 10 users. Our account is so old we have even more users than that for free. I got that shit when it was still called GMail for your domain.
Same here. I still have something like 100 total users on my account, of which I think I'm using like 5 that I gave out to family and friends.
Hopefully they won't deprecate us. I sort of rely on this. If it comes to that, we will have to pay. ;^)
I'd rather not pay if it comes to this... I'll probably need to set up some sort of forwarding arrangement via my domain registrars and have things forward to straight-up Gmail accounts if that's the case.
Hopefully they won't deprecate us. I sort of rely on this. If it comes to that, we will have to pay. ;^)
$50 per user per year isn't awful if we all pay individually, but I'd rather not.
In my case, the people who I set up accounts for would be quite cranky if they had to pay anything for it. I mean, as you said, $50/year isn't that awful, but if you're used to free and really don't need the features other than having a stable email address that stays constant even if you change ISPs or email providers and doesn't have a jrandom23939392@gmail.com look to it, you may be better off just using email forwarding via your DNS provider.
I can't help but think that every time Scott says that he doesn't lie, but Rym does, it's actually just a ploy so he can lie with impunity whenever he feels it necessary.
Comments
I tried to skim through Code Complete to find a solution, but it took too long. It's a large book, and the index and table of contents weren't much help. I also found this StackOverflow thread.
http://stackoverflow.com/questions/760777/c-getters-setters-coding-style
Which gave me an idea. What if you called the setter from the constructor? Something along the lines of this not complete code. Would this even work? Using the newParameter language in a setter function makes sense, and it would allow you to use the name of the variable as the parameter name in the constructor. The added bonus is that any code in the setter to validate the input would be triggered in the constructor for more DRY and added protection and consistency.
BTW, the absolute worst thing to come out of the Windows APIs was Hungarian notation.
Edit: correction. Win16 actually used Pascal calling conventions to save memory (or so Microsoft claims) over C calling conventions, but was never originally written in Pascal. It was written in a mix of C and assembly.
歌い方もどことなくJohn Fを思わせるところがある
LSDjとギターを基調にしばしばチップゲイズ的な場面もある3分間ポップを展開
Anyone able to translate this for me? A cool Japanese indie-pop guy wrote this about one of my songs and the Google translated version is fairly incoherent in regards to that last line.
Expand the pop scene for three minutes, which is also a chip (gaze) often toned guitar.
That's the best I can do.
If I die...Someone tell Rubin that Zax is a word and they look like this.
Also, check this out.