Can your code detect this case and at least show a warning? I realize it’s extra LoCs, but sitting here and tapping the damn phone with no feedback is not much fun :)
With regards to the const part of the discussion -
Does anyone knows any research or even a state of affairs of const inference in language design?
The idea is similar to type inference whereby a compiler (or some other tool in a chain) would take care of understanding which arguments/variables/functions are going to be const and generate appropriate warnings based on that. For example,
void foo(int * a) { (*a)++; }
void bar(int * b) { foo(b); }
void baz(const int * c) { bar(c); }
A compiler would generate a warning when baz function, because foo() includes a non-const operation on its argument, bar() is non-const for the same reason, and so it cannot be called for a const pointer.
Hmm, OK. Try a different example - the compiler should allow the following code without any warnings:
void foo(int * a) { }
void bar(int * b) { foo(b); }
void baz(const int * c) { bar(c); }
Point being is that the compiler should warn of the const violation based on whether a function argument or a class member is getting touched in the function code.
In fact, the example above is more relevant, because what I am ultimately aiming for is to not need to make member functions const, and yet be able to call them for const class instances.
Foreign language was a mandatory class in all Soviet schools. Vast majority of schools taught English, few schools had German and even smaller fraction had French.
Can't speak for Soviet era, but in Tsarist Russia, French was the status language of the upper classes.
The allusions to French influence are everywhere in "Fathers and Sons". The novel itself is a meditation on Russian society at the time, specially the two leading intellectual camps, the established landed gentry and the young nihilists who rejected the status quo. Turgenev subtly highlights their shared francophile elements, both types usually educated in France or French schools, or taught themselves French to absorb Western culture for subversive reasons.
I think that remained true at least until the early twentieth century. My high-school Russian teacher said this was because wealthy Russian families often employed French nannies, who taught some French to the children.
You can see this in the film Burnt by the Sun, which is fictional, but perhaps historically accurate in this respect. It's set in 1930's Russia. A respected Soviet military officer is eating by himself while his wife's upper-class family converses in the other room. The maid asks why, and he responds, "I can't speak French." The purpose of this scene is clear: the inability of high-status Russians to speak French is a sign of broader social change.
It's still a mandatory class, but most people treat it as another mandatory class, so the majority of people you'll meet don't speak a foreign language well. However, learning English has been seen as useful for career advancement, and many people take classes later in life. The classes taught in public schools aren't enough to teach a language with no extra practice.
Agreed. If you give me a survey and mark all the questions "required", if I find anything I don't want to answer, you're out of luck on the whole survey because I will just click back.
> mpjamesmoore: @doctorow "let the consumers decide what they want" is my position.
What a hypocrisy.
Determining what consumers wanted was the goal of having public consultations. It worked out that consumers didn't want what the (heavily lobbied) government officials wanted, so whatever the public said was quietly ignored and they proceeded pushing for a bill that they had.
Cultural thing - sure, but keep in mind that professional programmer with 10+ years of experience typically can do more in 9-to-5 than your average college graduate on a 24/7 schedule. He needs to be paid appropriately though, which is something that a "startup" full of college kids may not be able to afford.
I tend to ask, can you afford not to have at least one seriously experienced programmer? It's not just a question of units of code per time, but the right code in the right (enough) architecture. As PG has noted, a whole bunch of the dot.bomb crowd were technical failures.
Another I noticed after programming C/C++ for more than decade was an ability to hone in on many bugs in seconds/minutes where the less experienced could take hours/days. How do you value that type of "productivity"?
Indeed, I myself learned Lisp before I learned C. Unfortunately it was hard not to use or be forced to use C/C++ in the '80s and early-mid '90s, although what I could do with Perl 4 and early Perl 5 in the latter part of that period changed a few minds.
Absolutely. But now's different... and someone who's programmed in C since the 90s is going to be really upset when they sign up for a startup and they're coding in Ruby.
I just generally find this discussion interesting, since I'm a 'recent graduate' with 10+ years of experience...
I know programmers who programmed Fortran in the 70's, Lisp in the 80's, C++ in the 90's, then switched to Java, now programs python, and is learning Scala. Just because you're over 30 doesn't mean you cannot learn new things.
However I'm guessing the assumption that they can't might be another reason why 23 year old startup founders are loath to hire them.
Absolutely. But now's different... and someone who's
programmed in C since the 90s is going to be really upset
when they sign up for a startup and they're coding in Ruby.
For the sake of argument, let's assume that "Ruby" in that sentence is a proxy for any of the "newish" langauges that are out there. If we can go with that assumption...
Well, let' see; as somebody who started programming in the 90's with C and C++, I would say that your assertion is simply not true. Maybe some people are dinosaurs and don't change with the times, but I made the switch from (primarily) C/C++ to (primarily) Java about 2002, and started dabbling in Erlang and Ruby about 2008, and am doing a lot of work in Groovy now, while spending some time learning Scala and Clojure.
And I've written some Python and Ruby as well. So no - based on my experience (and observations of colleagues about my age) I don't think it holds that somebody who was doing C/C++ in the 90's is necessarily a fossil who won't be interested in doing Ruby (or whatever).
To be fair though, I was just starting in programming in the 90's, so I may be younger than whatever stereotypical character you had in mind by saying that. <shrug /> I still think it's dangerous to generalize in this fashion though.
> Chinese like everything simple, doesn't have to be too exact
Oh, don't start. "I don't know what the bug was, but I fixed it." - verbatim quote. This was a mode of operation of disturbingly large number of Chinese devs I have worked with. After several bugfixing iterations of this kind it was easier to throw the code away and redo it from scratch than to understand how that managed to work. So, yeah, "don't have to be exact" is certainly there.
LOL Anyone who's ever worked with a Chinese PhD's, grad students or serious developers (such as in finance) knows this is complete horseshit...
But you're right, this thread is the perfect place for some casual racism to vent your frustrations in working with third-rate developers foisted upon you by your company's outsource policies.
My primary experience stems from working for a Canadian-based company with 200+ developers (located in Canada), 80% of which were Chinese programmers. The CTO of the company was Chinese and he had an obvious preference for hiring graduates from his own university and/or country. Top picks, but few with more than a couple of years of non-Chinese experience.
Just to emphasize - EIGHT PERCENT of my coworkers came from Chinese software development companies and they quite naturally brought their work ethics with them. My four years in this company is a basis for my original comment.
If it's not obvious, I am not talking about Chinese nationality, I am talking about developers with Chinese way of working in a software development environment. The way that revolves around never saying No to the boss, which in turn is deeply rooted in their cultural heritage. If the project manager says that the bug needs to be fixed today, it will be fixed today. Meaning that it will no longer be reproducible. How it will be fixed and what else is going to broken along the way is secondary. This will create another bug that can be taken care of later in the same manner.
And this was the company that developed sophisticated networking software including their own embedded OS down to the kernel level. Moreover most of these guys were perfectly capable of NOT cutting corners and doing a splendid coding job if forced. But god forbid if they would ever do it on their own accord. Everything was always done in a rush and sketchy-patchy way. I don't have any other explanation except for it to be a cultural thing.
You can certainly call it a horseshit and a casual racism if you'd like. However that's how things are in reality.
No, that's how things are in your reality, which is not necessarily anyone else's reality.
You've just perfectly described under-skilled, over-worked, under-paid H1b-style immigrants who get deported if they're fired. Not talented people working at the top of their game in finance, biotech, startups, etc.
When you're at the bottom of the pond everything looks like shit. You even said yourself they're fresh grads with very little experience. Dumbass.