|
dwazegek posted:What does it return if S1.length() == S2.length()? At my very first job right out of college one of the other devs decided that he needed to create a new list type by extending List<Something>, IIRC. I forget the name, so lets call it NewList. Well, I wanted to insert a Something into the list and what comes up in the function list but Insert() and NewInsert(). Same for every other normal interface method. What do NewMethodName do? base.MethodName of course. He saw nothing wrong with this.
|
# ? Nov 7, 2014 20:58 |
|
|
# ? Jun 8, 2024 07:03 |
|
Munkeymon posted:asd, qwe zxc, lkj, poi are my go-tos in order of frequency. After foo, bar, baz, I move on to bort and blarg. Basically alliterate on "b" words.
|
# ? Nov 7, 2014 22:01 |
|
hackbunny posted:Now that I'm older and lazier, it's just a, aa, aaa... Consider yourself blessed that's the first thing that comes into your head. For me it starts with aaaaaa, aaaaaaa, aaaaaaaa... it's a son of a bitch to work with, but it's nice if you're the kind of person that types out loud.
|
# ? Nov 7, 2014 23:31 |
|
dwazegek posted:
That is a beautiful misunderstanding and abuse of All. I love it.
|
# ? Nov 7, 2014 23:55 |
|
C code:
Except that FUN_ARGLIST is never actually defined anywhere, as far as I can tell. But don't think that means that no function pointers assigned to fun_p have parameters. Sometimes they do, but C, of course, assumes that function pointers with no declared argument list are basically whatever you want them to be at the call site. There's a warning, sure, but hey, the programmer probably knows what they're doing. I discovered this when I flipped the "force compilation as C++" switch, because C++, while allowing you to do all sorts of other stupid poo poo, doesn't allow this. raminasi fucked around with this message at 00:37 on Nov 8, 2014 |
# ? Nov 8, 2014 00:34 |
|
substitute posted:I just wrote a small function yesterday that returns $rear end. I'm leaving it. Rust has a trait which you can find by searching for "rear end lice".
|
# ? Nov 8, 2014 08:16 |
|
In driver code, I saw static int ass_index = 0; and had to laugh.
|
# ? Nov 8, 2014 08:20 |
|
Xenoveritas posted:Well, I'm not going to post any actual code, instead I'll just say: I've been looking at bits of a system at work that was widely suspected to be a clusterfuck and this sounds kind if similar. Just looking at the database it has : * all tables have varchar guids as their identifier that are not actually set as a key and are also not indexed, in fact there is no indexing anywhere. * no table has any referential integrity to any other, columns that are actually fks don't actually link to the foreign table * has system workflows (basically all it does) defined by having a table of stages that refer to "forward steps" which include decisions these decisions are either "methods" or literally JavaScript stored as text * the methods refer (no keying of course, it's all varchar names) to a table of java classes and methods which appears to reference some sort of web serv ice call made from gently caress knows where * the system home page html is stored as a string in the db * There are no stored procedures but there is a table that contains sql strings with placeholder values like "###variable###" that are presumably being executed following string manipulation in JavaScript * said sql contains about 7 nested case statements on an output instead of using an else so probably had all sorts of consistency issues. And this is after literally just half an hour looking at it. Edit: bullets don't work on the Awful app I guess. Powerful Two-Hander fucked around with this message at 17:00 on Nov 8, 2014 |
# ? Nov 8, 2014 16:53 |
|
Powerful Two-Hander posted:I've been looking at bits of a system at work that was widely suspected to be a clusterfuck and this sounds kind if similar. Just looking at the database it has : Jesus Christ. Why?
|
# ? Nov 8, 2014 17:03 |
|
Powerful Two-Hander posted:* no table has any referential integrity to any other, columns that are actually fks don't actually link to the foreign table On a completely different project, there's a query that contains something along the lines of: SELECT * FROM left INNER JOIN right ON left.id = REPLACE(right.id, '-suffix', '') I'm not entirely sure who's to blame for the right table having a suffix added to the string keys, but it's there in the views we have access to in this database created by third-party software.
|
# ? Nov 8, 2014 18:37 |
|
Someone decided that their MySQL tables were going to be all varchars, even the row ID (which isn't set as unique or a primary key or anything, it's just a column called "id" of type varchar)
|
# ? Nov 8, 2014 18:38 |
|
bpower posted:Jesus Christ. Why? It's an exciting combination of an offshore (but not outsourced) team, local management viewing their own personal empires as more important than quality products and a team lead who says yes to every end user request. Someone also seems to have fallen into the "workflow tools are easy, I bet I could write my own custom framework and make it ~~~ super configurable ~~~. This whole application is a goldmine of horrors so I'm sure there will be more to come. Edit: a recurring theme with offshore teams seems to be gently caress all idea about how to create a decent database schema. The other day I had to help a team solve a temp db timeout that turned out to be that there was a 10 million row table with no clustered index trying to do an enourmous in memory sort. Powerful Two-Hander fucked around with this message at 00:40 on Nov 9, 2014 |
# ? Nov 9, 2014 00:35 |
|
^ That sounds very similar to our legacy web app (thankfully used internally only): - varchar ids - no integrity, no foreign keys - data broken/scattered into multiple tables. For example there might be two tables to store authors: one table for authors of magazines, one table for authors of books. The legacy web app is a java servlet that executes whatever sql script you feed it via URL parameter. Something like https://server/servlet.jsp?script=doody.sql. Whatever the sql script returns is piped right out to the browser. So most html, css, and javascript is stored in PL/Perl scripts. Due to all the escape characters, temporary table shenanigans and other fuckery, the scripts are very difficult to maintain and understand. When I first started here, engineers were injecting sql or scraping to get the data that they needed out of the system. Another system I got voluntold to support is something I call BPP - Babby's Python Playground: - We build widgets and BPP is supposed to be a dead-nuts-simple system for widget testing. Technicians are supposed to be able to read, understand and debug the test scripts, so everything needs to be simple. - Instead, BPP is nothing but lambdas, generators, obfuscation and other design patterns (like getters/setters) that don't have any place in Python IMO. - The guy who made BPP apparently did most, if not all, testing in production judging by VCS comments. The guy who made BPP got himself kicked off if and is really salty about it. He could still be working on it if only he wasn't such a giant pecker to literally every person he has to interface with. Ugh.
|
# ? Nov 9, 2014 01:32 |
|
This is helping. Anotherone. They wanted to get some fairly simple grouped data from the db and display it in a jqplot graph. So... For each db table Select * all the data needed into a DataTables, one per db table. 2000 lines grouping and summing the data into an 10 x 4 array of doubles. Pass data to an unsecured Web Service that you've created especially for the task. . . . In nonsense.aspx set data source url of your jqplot to the web service. tl:dr He created a web service because they didn't know how to get data into a graph. Said Webservice is unsecured and has exposed methods like deleteX, updateY, getExtremlyPrivateFinancialDataForClient.
|
# ? Nov 9, 2014 09:12 |
|
Xenoveritas posted:One more. This is the quasi-lexicographic order, and it has its uses. Its main advantage is that it's substantially faster than ordinary lexicographic order, since it usually doesn't even need to look at the actual character data. Its main disadvantage is that it can't be made Unicode-correct, but sometimes that's okay — maybe you actually want to distinguish different encodings, or maybe you only need a best-effort comparison. For example, if you were writing a serialization library, you might add an optimization to avoid serializing the same string multiple times, but you'd be really sensitive to the speed of that check. Occasionally serializing multiple versions of the same canonically-equivalent string might be an acceptable tradeoff if it means getting better throughput. And a client could even make a pretty compelling argument that anything else is incorrect, and that serialization should not change the encoding of the string.
|
# ? Nov 9, 2014 11:40 |
|
For all I know the behavior is correct, but that's hardly the point: the comment and method name flat-out lie about what it actually does. Maybe it is supposed to do that, I have absolutely no clue. And it does actually do a lexicographical compare after the length checks. Which, again, may actually be correct, it's entirely possible the author wanted to sort first by string length and then by lexicographical order. But the method names and comments suggest he didn't. And if he really did want a lexicographical compare, that's part of the standard library.
|
# ? Nov 9, 2014 16:50 |
|
On a fairly close link, we have been talking about variable names, What about server names? I used to run servers from home Piper, Phoebe, Paige (guess which one was the web server) Then i had machines called Tokyo and Osaka Now my current desktop machines are called Winterfell, Braavos, Astapor funiliy enough at a previous place we had servers called Huey Duey and Louis (the 3 test servers) and i have seen servers called Lundy, Dogger, Rockall, Thames, Dover etc. plus they had Gatwick, Heathrow, stanstead they were British Telecom Air Traffic control servers back in the late 80s named after the Shipping forecast areas around the UK
|
# ? Nov 10, 2014 08:58 |
|
I just use chemical elements. There's an RFC about this.
|
# ? Nov 10, 2014 11:03 |
|
there is anotehr RFC that i prefer https://www.ietf.org/rfc/rfc2100.txt The naming of hosts
|
# ? Nov 10, 2014 13:34 |
|
I worked at a small place that used names of The Muppets. I think Kermit was the web server, Beaker was the db server, the dev machines were all characters, etc.
|
# ? Nov 10, 2014 15:17 |
|
Bands I'm listening to at the time of naming. Going from Gwar, yngwiemalmsteen, and Manowar to fun, Adele, and Lords is probably the horror
|
# ? Nov 10, 2014 16:31 |
|
Hughlander posted:yngwiemalmsteen That's gotta be a fun one.
|
# ? Nov 10, 2014 16:55 |
|
I use fruit for all my naming needs. http://namingschemes.com/Fruit
|
# ? Nov 10, 2014 16:59 |
|
Suspicious Dish posted:I use fruit for all my naming needs. Prefer http://namingschemes.com/Cigarette_Ingredients
|
# ? Nov 10, 2014 17:02 |
|
I'm using http://namingschemes.com/Transformers at my current job
|
# ? Nov 10, 2014 17:18 |
|
The servers at work have X-men names like Cyclops and Iceman. I think they're supposed to be renamed to something more serious soon though . Bye, Storm.
|
# ? Nov 10, 2014 17:24 |
|
At one of my old jobs all the machines were given names inspired by Greek and Roman mythology. After my first few days of working on Pan I was assigned my own new workstation named Lupa.wikipedia posted:Lupa (Latin for “she-wolf”; plural: Lupae) can refer to: Hunh.
|
# ? Nov 10, 2014 17:29 |
|
I see a lot of auto-generated "secure" names, so you'll have servers like 'GXLMD1391O01'.
|
# ? Nov 10, 2014 17:41 |
|
Sereri posted:I think they're supposed to be renamed to something more serious soon though . Bye, Storm. Whoever mandated that is a poor excuse for a human being. They're probably the same people who came up with ... Ithaqua posted:I see a lot of auto-generated "secure" names, so you'll have servers like 'GXLMD1391O01'.
|
# ? Nov 10, 2014 17:43 |
|
Thermopyle posted:Whoever mandated that is a poor excuse for a human being. It's terrible, but it's very common in larger organizations. They also tend to have auto-generated user accounts, so logins are things like "DOMAIN\XHMN321QR3"
|
# ? Nov 10, 2014 17:45 |
|
I loving hate Windows security API. So many ways to get poo poo wrong.
|
# ? Nov 10, 2014 17:54 |
|
Xenoveritas posted:One more. gently caress, I'm wrong about what it does if the lengths are equal. If the lengths are equal, it then goes through the string characters backwards and checks each character's lexicographical orders. Java code:
Edit 2: Oh, another transcription error on my behalf, that second comparison isn't S1.codePointAt(i), it's S1.codePointAt(1). Xenoveritas fucked around with this message at 19:41 on Nov 10, 2014 |
# ? Nov 10, 2014 19:29 |
|
For server names that I control it's always been Alpha, Beta, Delta, etc etc. in the order they were created. When I worked at Telus (big regional telco) Windows servers were named random string bits and Unix servers were named whatever the suspendered neckbeard felt like. Eventually an alpha-neckbeard wrestled control and changed all the names to DEMONXXX where XXX was a random number. >HIS< server of course, was DEMON001. It was also the server that hosted and processed all of the x.y.binaries newsgroups; I swear the only reason that telco did newsgroups was because that guy wanted to get his porn on.
|
# ? Nov 10, 2014 20:32 |
|
Suspicious Dish posted:I use fruit for all my naming needs. kill everyone that contributed to this wiki
|
# ? Nov 10, 2014 20:35 |
|
Xenoveritas posted:gently caress, I'm wrong about what it does if the lengths are equal. If the lengths are equal, it then goes through the string characters backwards and checks each character's lexicographical orders.
|
# ? Nov 10, 2014 20:52 |
|
EAT THE EGGS RICOLA posted:kill everyone that contributed to this wiki How else would we get a list of 112 slang terms for vagina?
|
# ? Nov 10, 2014 21:00 |
|
EAT THE EGGS RICOLA posted:kill everyone that contributed to this wiki idk, the Asterix one is pretty great.
|
# ? Nov 10, 2014 21:03 |
|
Scaramouche posted:For server names that I control it's always been Alpha, Beta, Delta, etc etc. in the order they were created. When I worked at Telus (big regional telco) Windows servers were named random string bits and Unix servers were named whatever the suspendered neckbeard felt like. Eventually an alpha-neckbeard wrestled control and changed all the names to DEMONXXX where XXX was a random number. >HIS< server of course, was DEMON001. It was also the server that hosted and processed all of the x.y.binaries newsgroups; I swear the only reason that telco did newsgroups was because that guy wanted to get his porn on. Who was DEMON666 though
|
# ? Nov 10, 2014 21:24 |
|
Scaramouche posted:For server names that I control it's always been Alpha, Beta, Delta, etc etc. in the order they were created. When I worked at Telus (big regional telco) Windows servers were named random string bits and Unix servers were named whatever the suspendered neckbeard felt like. Eventually an alpha-neckbeard wrestled control and changed all the names to DEMONXXX where XXX was a random number. >HIS< server of course, was DEMON001. It was also the server that hosted and processed all of the x.y.binaries newsgroups; I swear the only reason that telco did newsgroups was because that guy wanted to get his porn on. Wasn't Demon an old isp / shell provider from way back when? I think I remember lots of people with "demon.co.uk" addresses on usenet.
|
# ? Nov 10, 2014 22:13 |
|
|
# ? Jun 8, 2024 07:03 |
|
There was a time when half the TFC servers out there were hosted at demon.co.uk
|
# ? Nov 10, 2014 22:17 |