|
Captain Capacitor posted:He checked in for the first time since March to his "private" branch in Git. He says that as long as he's not checking in to the main branch he's not subject to code reviews. Yeah, that makes no sense. I guess he just expects that his code is awesome and will pass review. I'm also guessing code reviews at this place are "glance briefly at the code as a formality, where any suggestion for improvement will be ignored, and there is no set of circumstances under which the code will fail at review"
|
# ? Jul 15, 2015 05:14 |
|
|
# ? May 26, 2024 21:07 |
|
So, how does he intend to get the code from his "private" repository to actually running in production? In a sensible organisation, he'd have to merge his code into the actual repository before it can be deployed anywhere, and the first thing a reviewer would say to a giant merge is "gently caress off with that poo poo, come back with individual changes that I can actually review".
|
# ? Jul 15, 2015 05:19 |
|
Captain Capacitor posted:He checked in for the first time since March to his "private" branch in Git. He says that as long as he's not checking in to the main branch he's not subject to code reviews. Raise these issues with a higher level manager/project manager. I have been coding 20 years and back in 2004 I had to go in and tell the directors how the idiot they had got in as a contractor had just taken them for 3 years and produced nothing. Then I recoded a working system in 1 month flat. To be honest that was also bad code and I would do it differently now. (it was J2EE 1.1 on Jedit and Jboss 1.0)
|
# ? Jul 15, 2015 06:28 |
|
Captain Capacitor posted:He checked in for the first time since March to his "private" branch in Git. He says that as long as he's not checking in to the main branch he's not subject to code reviews. If you send out a Resume + Cover Letter once a day it doesn't feel like too much trouble but you can cover a lot of ground. Figure out the bare minimum amount of work you can do to stay off the radar at your current shithole job and work hard to move elsewhere. I say this with a huge amount of experience in almost this exact situation. I tried to tough it out for ~2 miserable years and it was a huge mistake. You've got to get out of there!
|
# ? Jul 15, 2015 06:29 |
|
I'm already looking into other teams within the company. I've been trying to raise my concerns, but my direct boss (who's technically on the same level as the new dev) says that they'll probably consider his experience over mine. Even though I've been doing web dev for years.
|
# ? Jul 15, 2015 06:43 |
|
Captain Capacitor posted:I'm already looking into other teams within the company. I've been trying to raise my concerns, but my direct boss (who's technically on the same level as the new dev) says that they'll probably consider his experience over mine. Even though I've been doing web dev for years. I would log something in writing with them, (or at least email) so when the brown sticky stuff hits the metal rotating thingy you have some evidence that you tried to tell someone.
|
# ? Jul 15, 2015 06:59 |
|
Is he at least competent enough to be productive despite his inefficient practices? Even if so, he is still being an antisocial rear end in a top hat and you should find someone else to work with.
|
# ? Jul 15, 2015 10:08 |
|
He's productive, but he works 10 hour days and takes the longest way to do anything. So I'm not exactly sure how that adds up in the long run.
|
# ? Jul 15, 2015 10:37 |
|
I wrote .ElementAt(0).First() today. There was reasoning to back it up (other nearby uses of ElementAt() on the outer collection) but it still looks ugly as sin.
|
# ? Jul 15, 2015 11:20 |
Ithaqua posted:Yeah, that makes no sense. I guess he just expects that his code is awesome and will pass review. I'm also guessing code reviews at this place are "glance briefly at the code as a formality, where any suggestion for improvement will be ignored, and there is no set of circumstances under which the code will fail at review" He knows his code is poo poo and wants to keep it hidden away as far as possible so he still gets a paycheck
|
|
# ? Jul 15, 2015 14:55 |
|
Manslaughter posted:He knows his code is poo poo and wants to keep it hidden away as far as possible so he still gets a paycheck I bet he doesn't. It's the opposite side of Dunning Kruger: People who are good underestimate their skills, people who are bad wildly overestimate.
|
# ? Jul 15, 2015 14:59 |
|
Ithaqua posted:I bet he doesn't. It's the opposite side of Dunning Kruger: People who are good underestimate their skills, people who are bad wildly overestimate. i'm the psychoanalysis of some other random guy nobody has met based on a code snippet and a few paragraphs, max, talking about his behavior
|
# ? Jul 15, 2015 15:54 |
|
He probably has sexual fantasies about his mother, but then again, who doesn't.
|
# ? Jul 15, 2015 16:26 |
|
Suspicious Dish posted:i'm the psychoanalysis of some other random guy nobody has met based on a code snippet and a few paragraphs, max, talking about his behavior
|
# ? Jul 15, 2015 17:01 |
|
Ithaqua posted:I bet he doesn't. It's the opposite side of Dunning Kruger: People who are good underestimate their skills, people who are bad wildly overestimate. Their estimates are still positively correlated with ability.
|
# ? Jul 15, 2015 17:11 |
|
loinburger posted:He probably has sexual fantasies about his mother, but then again, who doesn't. s/his/your/
|
# ? Jul 15, 2015 17:24 |
|
No Safe Word posted:It's true of the industry in general, it doesn't necessarily have to be commentary on the individual to be a good generalization. and you're a judgmental nerd who hates all his coworkers and can't go five seconds in a conversation without saying "well actually" it's true of the industry in general
|
# ? Jul 15, 2015 17:35 |
|
Suspicious Dish posted:and you're a judgmental nerd who hates all his coworkers and can't go five seconds in a conversation without saying "well actually"
|
# ? Jul 15, 2015 19:36 |
|
Spatial posted:looks like we've moved onto projection now Actually,
|
# ? Jul 15, 2015 19:44 |
|
baquerd posted:Well, that is basically how you would get the index of an object in an array? Generally you'd just use myArray.indexOf(val) instead of writing your own. Then again, maybe he doesn't trust the built in language type's implementation.
|
# ? Jul 16, 2015 00:53 |
|
I used to implement my own hash tables because I didn't trust the standard library's hash tables, but in my defense I was very stupid.
|
# ? Jul 16, 2015 00:59 |
|
loinburger posted:I used to implement my own hash tables because I didn't trust the standard library's hash tables, but in my defense I was very stupid. One of the big problems with roll-your-own everything is that you're generally responsible for bug fixes when the rest of the world moves on.
|
# ? Jul 16, 2015 02:21 |
|
This was fifteen years ago, so I hope that my code is no longer in use
|
# ? Jul 16, 2015 03:09 |
|
Who started the trend of prefixing names with "my"? It drives me nuts when I see it, because it seems so superfluous. I've even seen stuff like IMyInterface.(Where IInterface would suffice.)
|
# ? Jul 16, 2015 03:10 |
|
Perl I guess?
|
# ? Jul 16, 2015 03:29 |
|
Microsoft. But I've never seen it used in type names...
|
# ? Jul 16, 2015 03:48 |
|
Lumpy posted:Generally you'd just use myArray.indexOf(val) instead of writing your own. Then again, maybe he doesn't trust the built in language type's implementation. That doesn't look like a "coding horror" example for me at all because 1. it's simple and straightforward? 2. it's javascript, of course you should be wearing your tinfoil hat super hard IIRC the problem with array.indexOf() is that it's easy to mix it up with string.indexOf() that has a subtly different behaviour. In python terms, one is like list.index() and the other is str.find(). Also I guess array.indexOf() wasn't even a thing for a long time? Anyway, unless you consider yourself a javascript expert, sometimes it just feels safer to write your own for loops for stuff like this than to stop coding and go study all the nuances for poo poo that isn't even interesting.
|
# ? Jul 16, 2015 04:14 |
|
sarehu posted:Mycrosoft.
|
# ? Jul 16, 2015 06:10 |
|
If you can't come up with anything descriptive about that object - if there's nothing unique about it or its purpose - I'd much rather read Thing myThing = new Thing () than Thing thing = new Thing () because gently caress case sensitivity.
|
# ? Jul 16, 2015 08:03 |
|
NihilCredo posted:If you can't come up with anything descriptive about that object - if there's nothing unique about it or its purpose - I'd much rather read Well ideally classes and variables should be in different namespaces. Does it still bother you in that situation, even though it's not relying on case sensitivity?
|
# ? Jul 16, 2015 09:11 |
|
loinburger posted:I used to implement my own hash tables because I didn't trust the standard library's hash tables, but in my defense I was very stupid. Eh, depends. It's a good idea to be aware of what your standard library is actually doing, much like with any other library. For instance, the C++ STL more or less mandates a linked list-backed implementation of std::unordered_map. As a result there are a lot of hand-rolled linear probing versions around, some of them entirely well-motivated.
|
# ? Jul 16, 2015 12:56 |
|
Xerophyte posted:Eh, depends. It's a good idea to be aware of what your standard library is actually doing, much like with any other library.
|
# ? Jul 16, 2015 13:30 |
|
SupSuper posted:That and std::unordered_map only became available in C++11.
|
# ? Jul 16, 2015 13:47 |
|
I believe the interface was slightly different in each thus the new name to not break compatibility. http://fgda.pl/post/7/gcc-hash-map-vs-unordered-map A bit more informative than this: http://stackoverflow.com/a/1646288/175849 I always use boost::unordered_map because Microsoft's one is broken, slow and has a limit of 500,000 entries. http://tinodidriksen.com/2009/10/04/cpp-map-speeds-msvc-edition/ MrMoo fucked around with this message at 14:14 on Jul 16, 2015 |
# ? Jul 16, 2015 14:10 |
|
So, horrors. I just came across this deep in the bowels of some test codeC++ code:
|
# ? Jul 16, 2015 15:47 |
|
Vectors? What are those?
|
# ? Jul 16, 2015 15:52 |
|
MrMoo posted:I always use boost::unordered_map because Microsoft's one is broken, slow and has a limit of 500,000 entries. To be fair that link is 6 years old and Microsoft's C++ support has improved in general since. Is it still true?
|
# ? Jul 16, 2015 16:55 |
|
Dylan16807 posted:Well ideally classes and variables should be in different namespaces. Does it still bother you in that situation, even though it's not relying on case sensitivity? I have a habit of doing 'void Foo(Bar bar){}'. I've always figured this was the only decent exception to not naming variables literally after their type. If I'm inclined to do this in any other case, then I probably hosed something up design wise, the way I figure it.
|
# ? Jul 16, 2015 19:19 |
|
Dylan16807 posted:Well ideally classes and variables should be in different namespaces. Does it still bother you in that situation, even though it's not relying on case sensitivity? That would be ideal, but it's not the case in C/C++ at least.
|
# ? Jul 16, 2015 19:52 |
|
|
# ? May 26, 2024 21:07 |
|
Subjunctive posted:That would be ideal, but it's not the case in C/C++ at least. In C, structs and variables are indeed in different namespaces... C code:
|
# ? Jul 16, 2015 19:58 |