|
Of course we can't all simply do what we like if we want our work to fit together, but no bloated rulebook with (literally) hundreds of 'rules' and 'conventions' for and against everything, plus 'code reviews' which do little more than nitpicking over these rules (with different interpretations of the rules, depending on the reviewer) and endless discussions about some new rules which someone wants to add, just to cover some more special cases.
I have been in a place where they really went overboard with this and we were going nowhere mighty fast. Despite all the time and work put into this, the code was still as disfunctional as before. There were too many fundamental flaws that no obscession with 'cosmetics' could ever solve. As if lipstick on a pig ever solved anything.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: As if lipstick on a pig ever solved anything. So long in business and don't know yet, that you should use silk on a monkey?
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.
|
|
|
|
|
Sander Rossel wrote: But using string.Empty instead of "" is actually a useful memory optimization! If it were the case, I'd prefer to waste some memory and have readable code.
Your brain processes "" faster than string.Empty.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Sander Rossel wrote: But using string.Empty instead of "" is actually a useful memory optimization!
It does not have effect on memory consumption due to string interning.
The main reason I use string.Empty is that var foo = "" looks ugly to me.
|
|
|
|
|
Yeah, but "" still needs to create an object, while string.Empty doesn't.
At least that's what I always understood
Anyway, the gain, if any, is negligible.
I prefer string.Empty, because that's what I've been taught and because Microsoft recommend(ed?) it
|
|
|
|
|
Strictly speaking, you're right, the line obviously can lead to that exception, but ultimately the problem lies with whatever other lines of code that follow (and you've omitted) that blindly assumes the string wasn't empty.
Or are you claiming the exception is thrown on the assignment itself? In which case, yeah, time to take VS behind the tool shed with a shotgun...
|
|
|
|
|
VS says the exception occurs on that line. About a million times. Well, every time that function gets called, anyway.
Code following it is just an if/else, do THIS if it's not empty, do THAT if it is. (I don't have the actual code handy...it's at home, and I'm at work.)
The program works as expected, if I tell it to ignore those exceptions, of course. (Which is the default, apparently, in VS. I guess they already know it's bogus. )
The only reason I even knew about it was the continuous line of little red diamonds in the running monitor (whatever it's really called. The part that shows memory use, etc.)
|
|
|
|
|
|
Was more of a TV Flash news when the election winner was announced. But it has taken its time to come around & hit the target somewhere else that nobody predicted it would happen so soon.
Now some of my friends are becoming victims of these[^]
May be Trump should have done a more balanced schemes than affecting so many families in India all of a sudden.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
And our blatantly lying IT Minister : Job losses in IT sector are exaggerated: Prasad | Business Standard News[^]
Layoffs are being processed on the name of 'newer technologies'. Unfortunately,here in India,90% people doesn't know as to why new tech should be used/implemented. Every company needs a 'superman'.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
modified 24-May-17 2:02am.
|
|
|
|
|
Bit soapbox but I'll bite:
"Indians do not steal jobs, but rather create new jobs. Indian IT companies have created as many 400,000 jobs abroad..."
that's the people needed people to fix the shite these guys put out...
|
|
|
|
|
We didn't need to hire to fix the made-in-India software. It was tossed out for the junk it was.
Then they got more (there's a special depth in hell for management) - and that took months to make even usable (not my job, this time).
One of the problems: all the "textbook quality" development is just that. So in the real world it falls flat because textbook solutions are only idealized. And they can be created by another application, anyway - so the drones aren't needed.
This is not to say there are no good excellent developers in India! But when you outsource to a mill you get mill-work.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Yeah I am sorry, but a disagree. STRONGLY!
The indian low cost outsourcing triggered a race to the bottom.
I don't know how it is in the US, but here in Canada there are many indian companies with a small sales office in Canada and a huge development team in India.
These guys dump on the IT market first and then do not deliver. I get routinely spammed by them with some offers about 3 to 6 months contracts to fix their crap.
I want them all, those companies to go away. Good riddance.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Yeah how stupid it is to say, "Automation took your job in couple of days".
They are completely patching it up with ridiculous reasons heaping all buzz words together. AI, Automation, Robotics & all blah blah behind your lost job. All these happen in a week?
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Vunic wrote: All these happen in a week? You would be surprised what can be done in just one day
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.
|
|
|
|
|
I'm talking about the Robots paratrooping into the field and firing employees in a week. It should be a gradual process done over a period of time.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
And I am talking about saying "bank notes of XXX" are not valid anymore from one day to the next.
If the ones in charge don't give a ----- (censored, we are not in the soapbox) about the people... what is so surprising?
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.
|
|
|
|
|
Correct. And they go on increasing Govt. pay scale tossing up the parity in society between Govt & private workers. But the crap all happened because of this so called instant Indian IT boom that started in late 1990s. IT pays were so high & everyone started buying Flats,properties & switched to lavish life style. This kicked up the inflation fixing ridiculous price tags on anything in the city. Govt took steps to maintain the parity with Govt employees. 5th pay commission, 6th, 7th & so on. Now the lowest possible class worker in Govt sector is getting paid better than a so called mid level "techie" in IT. And the bubble is just burst they are gonna get pushed to the 1990's salaries. But Govt is all up to announce the next pay commission. Well done!
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Very true. I'm impressed by the level of information you have.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
|
Actually not real information needed, just common sense
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.
|
|
|
|
|
Thanks. Been following things from late 90s.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
I don't think that there's anything here to blame on the USA, this is entirely down to India.
India won't be the first or the last nation to do this, but this it how it works:
1) A government decides that career area X (in this case IT) is THE FUTURE.
2) A government tells just about every youngster in the nation that career area X is THE FUTURE and it's what they should be doing with their lives regardless of personal aptitude.
3) In order to facilitate this, the government creates an education system for are X and scales it up to a size that cannot possibly work.
4) The bloated education system spews out millions of graduates - a large proportion of them knowing sweet FA about area X because they've been taught so badly.
5) The nation finds itself with an industry that has become fattened to a ridiculous extent by people who would be far better suited to doing other things.
6) The industry soon gets to a point where the only advantage it has is that is cheap.
7) This attracts custom for a while but people soon realise that it's a false economy as they get far better value when paying more to companies in countries where that sector has grown in a more organic way.
8) Orders dry up and those poor souls that have been shoe-horned into the industry are the ones that suffer - along with their families.
It's known as putting all your eggs in one basket and is a classic recipe for a "boom and bust" scenario. Pumping such a large proportion of your resources into one sector is always going to be a high risk strategy and one that's not likely to end happily in the long run. It certainly isn't the fault of other nations when it all goes horribly wrong.
98.4% of statistics are made up on the spot.
|
|
|
|
|
PeejayAdams wrote: I don't think that there's anything here to blame on the USA, this is entirely down to India. Always popular to find a scape-goat. Human nature is dependable that way.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Agreed.
The rules of engagement for handling problems (in large corporations and all governments):
1. Before working on the problem, we must establish blame.
2. See #1.
Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree".
Anonymous
|
|
|
|
|
Well put! This was all boiling down there. Now it's just blown up with a trigger called Trump.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|