|
awesmoe posted:Yeah, I'm not used to java so I'm not sure how common it is to put related functionality into the equivalent of unnamed namespaces. Are private classes a thing that people use? I'm not a java guy. Three related programs doing slightly different things, four files, thousands of lines of copy-pasted code. The fourth file turned out to be a template for further copy-pasting, should the three provided programs not do quite what one needed. (Code reuse!) Did I mention all the lines of code that were several hundred characters long? The longest nearly hit four figures. It's easier to do than you might realise when the only data structure you ever use is nested Vectors and you're allergic to storing common subexpressions in variables. Oh god the flashbacks
|
# ¿ Dec 18, 2012 02:07 |
|
|
# ¿ Apr 30, 2024 02:09 |
|
Golbez posted:Updates consisted of him looking at my dev directory over the network and running a merge program to his directory which was the master directory and oh god
|
# ¿ Sep 13, 2013 22:09 |
|
shrughes posted:There's also the fact that old people are dumber than young people. It's loving tragic how brilliant young programmers waste their best years reinventing all the same loving wheels over and over again because they think they're so drat smart they shouldn't have to build on the crap those stupid olds wrote.
|
# ¿ Sep 29, 2013 11:39 |
|
Volmarias posted:You're right that it's easier to create a small prototype or client in Python, but no one has seriously used Java as a client language in years. It can have some genuine advantages in that space, when you don't have any control over the target environment. For example, deploying a JAR is trivial compared to C++ (compile a different version for every user platform? no thanks) or Python (it's much more likely that a random computer will have a JVM than a Python interpreter). I can literally email a single file to a new user and be confident that they can just double-click on it and the application will appear on their screen. I don't know of any other technology that offers that. Basically, if you still need to write desktop software at all, Java isn't actually a terrible choice for that.
|
# ¿ Oct 2, 2013 19:33 |
|
qntm posted:Perl does this as well. Except sometimes they're treated as subroutine calls.
|
# ¿ Mar 23, 2014 01:31 |
|
Suspicious Dish posted:I can imagine that if you know somebody used urandom without entropy for a very long, you can see repeating patterns in the PRNG output which would allow you to predict keys and other sorts of things.
|
# ¿ Apr 19, 2014 20:57 |
|
Zemyla posted:fputs(fp, buf)
|
# ¿ Apr 20, 2014 23:11 |
|
Manslaughter posted:Languages that automatically insert semicolons, the true horror. Zopotantor posted:I wasted the entire day yesterday because ClearCase
|
# ¿ Apr 23, 2014 18:34 |
|
contrapants posted:Yes, indents are 3 spaces.
|
# ¿ Apr 28, 2014 18:35 |
|
contrapants posted:Looking at the resulting code, God did not answer his prayers.
|
# ¿ Apr 28, 2014 19:22 |
|
Dicky B posted:What's the Rust semicolon thing? In Rust, however, this is not a purely stylistic decision: the presence or absence of a final semicolon changes the semantics of the block.
|
# ¿ Apr 29, 2014 00:46 |
|
And they won. The new C standard makes most of the useful parts of C99 optional purely for the benefit of lazy vendors like Microsoft.
|
# ¿ May 2, 2014 19:58 |
|
It's almost like someone can have good social skills while simultaneously holding views that are entirely (if regrettably) typical of the society he lives in.
|
# ¿ May 4, 2014 21:01 |
|
tl;dr: accessibility is really important. That's why we've released a framework that doesn't support it.
|
# ¿ May 20, 2014 07:29 |
|
Jewel posted:Huh? I thought that was correct too but on trying it it's not. What's the right way to write that one-liner? I can't work it out for some reason.
|
# ¿ Jun 19, 2014 08:22 |
|
If there was a point in your adult life when source control didn't exist, you're due for retirement.
|
# ¿ Jun 27, 2014 23:26 |
|
This is in the right thread, but I'm not sure why you didn't post the whole spec.
|
# ¿ Jun 30, 2014 18:57 |
|
1337JiveTurkey posted:There's one particular place in our codebase that drives me up the wall. It's someone being pretentious and deciding to pluralize status as statii. If you're going to be clever with pluralizations, first the sense that the word's being used in is fourth declension, not second declension. Second, even if it were second declension, statius isn't a word. Third, the plural of status is status, just the emphasis is on the second syllable when you pronounce it. Fourth, I took four loving years of Latin and even then I don't waste peoples' time with that bullshit.
|
# ¿ Jul 1, 2014 08:52 |
|
Strong Sauce posted:Use javascript, get yelled at for using the wrong programming language.
|
# ¿ Jul 4, 2014 20:40 |
|
That sounds really fun actually. Take it to the embedded programming thread, it doesn't belong here until you've hosed it up properly.
|
# ¿ Jul 8, 2014 21:50 |
|
If all you know how to use is a hammer ...
|
# ¿ Jul 13, 2014 17:53 |
|
nielsm posted:Reminder that this regex discussion was spawned by this: Soricidus fucked around with this message at 21:45 on Jul 17, 2014 |
# ¿ Jul 17, 2014 21:43 |
|
shrughes posted:Guess what folks, sometimes you've just got to validate phone numbers, and also email addresses, and regexes are a great way to do that. Email address validation with a regex doesn't get you anything. It's very likely you'll reject valid addresses, and likewise it's very likely users will input "valid" addresses that have typos in them. The way to validate an email address is to accept whatever the gently caress the user types and then send it an email with a validation link in it. Phone numbers? gently caress landlines, send them a validation SMS.
|
# ¿ Jul 18, 2014 09:32 |
|
shrughes posted:You're just repeating something that some retard wrote that you read somewhere. If you can't imagine a situation where you don't want to be sending emails, try thinking of ten of them. Then maybe you'll fall short and think of a few. (And even in a situation like that, you still shouldn't be writing a regex. Use a library.)
|
# ¿ Jul 18, 2014 10:20 |
|
shrughes posted:Let's say you find a document with some text in it and you want to recognize email addresses. shrughes posted:No, you should roll it yourself, because when a customer complains that you're not recognizing certain email addresses properly, you'll need to fix it.
|
# ¿ Jul 18, 2014 10:51 |
|
Multiple passes of manual search and replace: definitely the first option that should enter a programmer's mind when the program they have written is not producing the desired output.
|
# ¿ Jul 23, 2014 08:51 |
|
Westie posted:I love PHP...
|
# ¿ Jul 24, 2014 22:27 |
|
Who writes "x == true" anyway, when in every widely used language that means exactly the same as just "x"?
|
# ¿ Aug 6, 2014 18:48 |
|
Bonfire Lit posted:Except it doesn't in Python, C, Ruby, Javascript, etc. Allow me to rephrase it, then, for the benefit of literal-minded pedants: Who, ignoring newcomers unfamiliar with standard idioms, discounting the possibility that bad coding standards might mandate the use of unidiomatic code, and ignoring a handful of unusual edge cases when one might actually care about the distinction between "true" and other values which evaluate to true in a boolean context, writes "x == true" when in the context of a conditional expression, i.e. the only situation in which the vast majority of programmers will ever check whether a value is "true" or "false", it Soricidus fucked around with this message at 20:32 on Aug 6, 2014 |
# ¿ Aug 6, 2014 20:29 |
|
Picture, if you will, a codebase in which the .h files are all symlinks to the corresponding .c files, most of which then #include themselves recursively.
|
# ¿ Aug 7, 2014 18:56 |
|
Different bits of the files are used each time they're included, depending on which symbols are already defined. I wish I was joking.
|
# ¿ Aug 7, 2014 20:34 |
|
Volmarias posted:Purify your code base and coworkers with cleansing fire. Knyteguy posted:There was a discussion last page on "if (x == true)" being bad form because generally "if (x)" is the better alternative.
|
# ¿ Aug 8, 2014 00:06 |
|
Westie posted:And yet when PHP is used properly it's amazing.
|
# ¿ Aug 18, 2014 21:34 |
|
Subjunctive posted:What doesn't depend on declaration order? Java's imports do, python/Perl/ruby/JS do. e: I guess maybe if they're both "import *" or some poo poo but that's not the usual case and certainly isn't the same kind of effect you get from textual inclusion or imports that can execute arbitrary code. Soricidus fucked around with this message at 22:59 on Aug 19, 2014 |
# ¿ Aug 19, 2014 22:57 |
|
nielsm posted:How does anyone manage to reach the conclusion that running a major public-facing site on Sharepoint is a great idea?
|
# ¿ Sep 1, 2014 21:01 |
|
Today I discovered that the SAX XML parser bundled with the Oracle JVM sometimes returns junk values for attributes if someone gives you a large XML 1.1 document, and probably always has done. The solution is to use a third-party XML parser instead of the default one. Or just to pray nobody ever sends you a large XML 1.1 document. I love XML, Java, and having feces rammed down my throat with a rusty iron pole.
|
# ¿ Sep 3, 2014 00:09 |
|
Vanadium posted:How do I tell whether I'm doing XML right, then?
|
# ¿ Sep 3, 2014 22:39 |
|
Nickopops posted:Also teaching first year university students Python is fun. Comments are denoted by a hashtag!
|
# ¿ Sep 5, 2014 00:32 |
|
Edison was a dick posted:The little gobshite's got no loving clue what it takes to make an operating system.
|
# ¿ Sep 11, 2014 21:50 |
|
|
# ¿ Apr 30, 2024 02:09 |
|
Edison was a dick posted:I just hope it doesn't catch on
|
# ¿ Sep 11, 2014 22:49 |