|
Janin posted:They wrap every "cryptic" function with a "properly named" one, usually without bothering to figure out the exact behavior of the function being wrapped: Okay, so 'TryToRemoveFile' is pretty bad. As is Ex and W. Verbose names though? Sorry my IDE autocompletes and I can name things descriptively
|
# ? Apr 10, 2010 01:26 |
|
|
# ? Apr 29, 2024 07:52 |
|
wrok posted:Verbose names though? Sorry my IDE autocompletes and I can name things descriptively Goondolences about your small vocabulary.
|
# ? Apr 10, 2010 02:27 |
|
Avenging Dentist posted:Goondolences about your small vocabulary. Suppose it could be worse, PHP devs seems to like the complete opposite of the spectrum, i.e. T_PAAMAYIM_NEKUDOTAYIM. (Yes, I'm well aware of the etymological reasons behind this name)
|
# ? Apr 10, 2010 06:15 |
|
Avenging Dentist posted:Goondolences about your small vocabulary. I was going to complain, but then I typed "Goondo" about your small vocabulary.
|
# ? Apr 10, 2010 18:39 |
|
Captain Capacitor posted:(Yes, I'm well aware of the etymological reasons behind this name) It doesn't make it any less of a horror.
|
# ? Apr 10, 2010 19:29 |
|
615 Line switch statement to parse "I can't believe it's not HTML" badly (from the source code of pidgin, in gtkimhtml.c)
|
# ? Apr 11, 2010 06:58 |
|
Otto Skorzeny posted:(from the source code of pidgin, in gtkimhtml.c) Also, the pidgin devs are arrogant dicks.
|
# ? Apr 11, 2010 07:25 |
|
Also Pidgin is terrible and I was really psyched when I found out that Gnome got rid of it as the default IM client until I found out they replaced it with Empathy.
|
# ? Apr 11, 2010 07:32 |
|
Avenging Dentist posted:Also Pidgin is terrible and I was really psyched when I found out that Gnome got rid of it as the default IM client until I found out they replaced it with Empathy. You are the coding horror. You should never be psyched for any IM that runs on Linux.
|
# ? Apr 11, 2010 07:48 |
|
hurp durp durp
|
# ? Apr 11, 2010 07:52 |
|
code:
|
# ? Apr 11, 2010 12:25 |
|
code:
|
# ? Apr 11, 2010 18:02 |
|
Otto Skorzeny posted:615 Line switch statement to parse "I can't believe it's not HTML" badly
|
# ? Apr 11, 2010 18:46 |
|
BigRedDot posted:from here, there are naught but coding horrors. A gtk horror, from the Chromium valgrind suppressions file: code:
|
# ? Apr 11, 2010 19:02 |
|
Otto Skorzeny posted:615 Line switch statement to parse "I can't believe it's not HTML" badly It's really true, a state machine lexical parser is too for the average coder. The person who wrote this needs to be chained in a basement with nothing but Ragel and water for a week.
|
# ? Apr 11, 2010 23:59 |
|
I thought my coworkers were the only ones who coded like that. Also, the next person who tells me Object Orientation sucks because V-Pointers make everything slow, I think I'm going to shove that case statement in their face.
|
# ? Apr 12, 2010 01:15 |
|
What do objects and that switch statement have in common? Or why would that shut them up in that debate?
|
# ? Apr 12, 2010 01:21 |
|
pokeyman posted:What do objects and that switch statement have in common? Or why would that shut them up in that debate? The people who have complained that they hate object orientation because it is slow tend to write their code like the linked switch statement. Or more appropriately, they will try to write something using a switch to avoid using object v-pointers. Overtime however, the switch statement dissolves into similar statements as above.
|
# ? Apr 12, 2010 01:28 |
|
Oh, ok. Carry on with the unmasking of the incompetent coworkers!
|
# ? Apr 12, 2010 03:06 |
|
HFX posted:The people who have complained that they hate object orientation because it is slow tend to write their code like the linked switch statement. Or more appropriately, they will try to write something using a switch to avoid using object v-pointers. Overtime however, the switch statement dissolves into similar statements as above. By this, do you mean using polymorphism and passing a pointer of super class type and calling virtual functions on it?
|
# ? Apr 12, 2010 14:39 |
|
LockeNess Monster posted:By this, do you mean using polymorphism and passing a pointer of super class type and calling virtual functions on it? This is what I usually see: code:
So yes, it seems many of them while "knowing" Java, C++, whatever else, don't understand polymorphism, inheritance, etc. Every datastructure usually ends up being an array or if I'm lucky a containerized array. I might get a hashmap if the language has good support for it. Linked lists, trees, etc can be a total crap shoot. I shouldn't say all my coworkers are that way. Some are very good and have good practices. Unfortunately, most of them leave after a year or two. HFX fucked around with this message at 16:01 on Apr 12, 2010 |
# ? Apr 12, 2010 15:55 |
|
HFX posted:This is what I usually see:
|
# ? Apr 12, 2010 21:12 |
|
floWenoL posted:A gtk horror, from the Chromium valgrind suppressions file:
|
# ? Apr 13, 2010 12:11 |
|
Encountered today:code:
ehnus fucked around with this message at 04:32 on Apr 14, 2010 |
# ? Apr 14, 2010 01:49 |
|
Do it.
|
# ? Apr 14, 2010 02:03 |
|
ehnus posted:
Always make backward-incompatible changes after consulting a group of strangers on the internet but before consulting your team.
|
# ? Apr 14, 2010 02:14 |
|
ehnus posted:Encountered today: Ask them loudly in front of the non-technical staff to stop exposing their privates.
|
# ? Apr 14, 2010 02:18 |
|
ehnus posted:Encountered today: If this were any other thread, I would say "check the version control logs".
|
# ? Apr 14, 2010 02:50 |
|
A A 2 3 5 8 K posted:Always make backward-incompatible changes after consulting a group of strangers on the internet but before consulting your team. That wasn't a question for this thread, I guess my original wording wasn't clear enough. I know who made this change but they are no longer with my company.
|
# ? Apr 14, 2010 04:36 |
|
ehnus posted:Encountered today: code:
|
# ? Apr 14, 2010 07:17 |
|
Probably its because someone is too lazy to make accessor/modifier methods?
|
# ? Apr 14, 2010 14:44 |
|
Mr.Radar posted:
code:
|
# ? Apr 14, 2010 15:44 |
|
That reminds me of an article a friend showed me where some guy was claiming he could duplicate all the functionality of C++ with < 500 lines of C.
|
# ? Apr 14, 2010 15:57 |
|
Shumagorath posted:That reminds me of an article a friend showed me where some guy was claiming he could duplicate all the functionality of C++ with < 500 lines of C. You probably could. It just wouldn't be pretty and would take the approach of don't know don't care
|
# ? Apr 14, 2010 16:35 |
|
HFX posted:You probably could. It just wouldn't be pretty and would take the approach of don't know don't care You absolutely could. They call it Objective-C, although I think it took a little more than 500 lines.
|
# ? Apr 14, 2010 18:49 |
|
Shumagorath posted:That reminds me of an article a friend showed me where some guy was claiming he could duplicate all the functionality of C++ with < 500 lines of C. I love the mentality required to write something like this. "Guys..this C++ thing is just a tool of the man that we don't need."
|
# ? Apr 14, 2010 18:51 |
|
ErIog posted:I love the mentality required to write something like this. "Guys..this C++ thing is just a tool of the man that we don't need." On a somewhat related note, why are many new coders full of distrust and want to roll things on their own? No matter how much you tell them it's a bad idea, they will not listen to you. They'll even be polite about it, but you'll never convince them otherwise. It's surprising how many people show up to #macdev:
Doing these things doesn't help them learn how things work. It just frustrates them and fills the channel with questions that are usually answered with, "Why are you doing that? Just use so-and-so API."
|
# ? Apr 14, 2010 19:14 |
|
ErIog posted:I love the mentality required to write something like this. "Guys..this C++ thing is just a tool of the man that we don't need." The problem with C++ is that something like 90% of it is actively harmful to writing working code. Sure, it works fine if you take away exceptions, overloading, templates, multiple inheritance, <iostream>, and write your own string type. But at that point, it's easier to just use C so you don't have to deal with the generally low quality of C++ compilers.
|
# ? Apr 14, 2010 19:32 |
|
Finally, a troll post.
|
# ? Apr 14, 2010 19:46 |
|
|
# ? Apr 29, 2024 07:52 |
|
Toady posted:It's surprising how many people show up to #macdev: The second one is just foolish, but I can understand the first and the third points. When I made the switch to OS X a few years ago, coming from a Windows development background it took me a little bit of time to really understand how Interface Builder worked differently from, say, the Windows dialog resource editor () or the Windows Forms editor. The third point might come from that same mindset, where on Windows, almost everything is customized by subclassing and overriding methods. The delegation pattern that OS X makes so much use of is almost nonexistent there, so it's a big mental shift when you first get started. Now if these are programmers with years of OS X experience wanting to do these things, gently caress 'em.
|
# ? Apr 14, 2010 20:11 |