|
p sure java converts ALL string concats to string builder anywaycode:
code:
|
# ? Apr 6, 2015 20:28 |
|
|
# ? May 13, 2024 10:50 |
|
gently caress programming is complicated
|
# ? Apr 6, 2015 20:32 |
|
rrrrrrrrrrrt posted:p sure java converts ALL string concats to string builder anyway yeah, but I bet the JVM knows an awful lot about that pattern and optimizes it aggressively to avoid the SB allocation; don't care quite enough to look into the OpenJDK sources though.
|
# ? Apr 6, 2015 20:48 |
|
rrrrrrrrrrrt posted:eclipse is fine but definitely needs some janitoring.
|
# ? Apr 6, 2015 20:55 |
|
i am pretty sure it does, but probably only in a second-tier mode once upon a time javac did some simple static optimizations and the jit team bitched that it was making their analysis more difficult or actually inhibiting perfect optimization — which to be fair is easy to imagine for some transformations, like merging local variables — and so they changed javac to be blindingly stupid. that string builder transform is actually dictated by the language spec, otherwise they probably wouldn't do it i don't know if they've revisited that decision, there is plenty of good research into what early optimizations do and do not inhibit later dynamic optimization
|
# ? Apr 6, 2015 20:58 |
|
fwiw i was joking, i definitely don't do anything of importance with java
|
# ? Apr 6, 2015 21:07 |
|
If you use + with two or more string literals, the compiler will combine them all into a single literal, which is nice. It'll even helpfully inline constants from other classes for you, making your "do I need a clean build" decisions nice and easy! Edit: I wrote a dumb article about this, last time it came up. It's unpopular! CPColin fucked around with this message at 21:36 on Apr 6, 2015 |
# ? Apr 6, 2015 21:34 |
|
Awia posted:gently caress programming is complicated
|
# ? Apr 6, 2015 21:36 |
|
.net does this poo poo apparently http://stackoverflow.com/questions/20029868/understanding-of-net-internal-stringbuildercache-class-configuration
|
# ? Apr 7, 2015 02:45 |
|
a month out from our exams and the lecturer of the functional programming class sent out an email just now saying the exam (worth 80% of the class) will be multiple choice epic fail
|
# ? Apr 7, 2015 14:14 |
|
Valeyard posted:a month out from our exams and the lecturer of the functional programming class sent out an email just now saying the exam (worth 80% of the class) will be multiple choice epic fail i wish my functional programming exam was multiple choice!
|
# ? Apr 7, 2015 14:25 |
|
Awia posted:i wish my functional programming exam was multiple choice! but with a traditional paper i could write a partially correct solution and get some of the marks with this, its all or nothing. and its negatively marked so a wrong solution is going to be detrimental compared to actually helpful
|
# ? Apr 7, 2015 14:27 |
|
Valeyard posted:but with a traditional paper i could write a partially correct solution and get some of the marks oh well that sucks, negatively marked exams are dumb my exam is like 75% on python for some reason
|
# ? Apr 7, 2015 14:29 |
|
Awia posted:oh well that sucks, negatively marked exams are dumb when is your last exam and what are the plans after graduation?
|
# ? Apr 7, 2015 14:39 |
|
Forums Terrorist posted:fwiw i was joking, i definitely don't do anything of importance with java oh so you use c#, then.
|
# ? Apr 7, 2015 14:42 |
|
c# owns
|
# ? Apr 7, 2015 14:43 |
|
Valeyard posted:a month out from our exams and the lecturer of the functional programming class sent out an email just now saying the exam (worth 80% of the class) will be multiple choice epic fail score! you'll ace it!
|
# ? Apr 7, 2015 14:47 |
|
Valeyard posted:when is your last exam and what are the plans after graduation? dissertation in for the 28th, exams some time early May. I've got a place on a graduate scheme atm starting in September but ive got other interviews that are looking for a mid May start, so ill see what happens what about you?
|
# ? Apr 7, 2015 14:49 |
|
triple sulk posted:c# owns
|
# ? Apr 7, 2015 15:47 |
|
intellij is fine and faster than eclipse out of the box the vim input plugin kinda fucks up a often though eclipse also throws a lot of poo poo at you right out of the box which you probably don't want or need and cannot disable, which i think is the main difference but thats 6 months in on java
|
# ? Apr 7, 2015 17:03 |
|
Shaggar posted:oh so you use c#, then. i wish, i get to struggle through decade old java assignments instead i don't actually know if the programming faculty even know c# exists
|
# ? Apr 7, 2015 17:37 |
|
|
# ? Apr 7, 2015 20:08 |
|
mechanically separate all non-tab users.
|
# ? Apr 7, 2015 20:10 |
|
i use 1 space indentation
|
# ? Apr 7, 2015 20:12 |
|
i write only manually minified javascript
|
# ? Apr 7, 2015 20:18 |
|
fart simpson posted:i use 1 space indentation i don't even like two-space; my eyes are old and weak
|
# ? Apr 7, 2015 20:20 |
|
lol if you gaf about how you janitor ur indentation instead of letting visual studio 2013 do it for you
|
# ? Apr 7, 2015 20:22 |
|
Shaggar posted:mechanically separate all non-tab users. shaggar was right
|
# ? Apr 7, 2015 20:25 |
|
Awia posted:dissertation in for the 28th, exams some time early May. sounds like a plan, ill race you to the end. dissertation was handed in already, bunch of exams finishing mid May, and then starting on a grad scheme in september
|
# ? Apr 7, 2015 20:32 |
|
prefect posted:
actually i use 4 spaces
|
# ? Apr 7, 2015 20:38 |
|
Valeyard posted:sounds like a plan, ill race you to the end. dissertation was handed in already, bunch of exams finishing mid May, and then starting on a grad scheme in september cool! grad scheme interesting?
|
# ? Apr 7, 2015 20:42 |
|
i just do whatever my coworkers are doing i give no fucks
|
# ? Apr 7, 2015 20:51 |
|
Awia posted:cool! grad scheme interesting? an investment bank. so no interesting work but
|
# ? Apr 7, 2015 21:08 |
|
Valeyard posted:an investment bank. so no interesting work but the is the most important part
|
# ? Apr 7, 2015 21:12 |
|
i make my editors convert spaces to tabs first thing when i open a file
|
# ? Apr 7, 2015 21:18 |
|
Notorious b.s.d. posted:i just do whatever my coworkers are doing bsd was right
|
# ? Apr 8, 2015 00:49 |
|
Notorious b.s.d. posted:i just do whatever my coworkers are doing
|
# ? Apr 8, 2015 01:15 |
|
gg=G
|
# ? Apr 8, 2015 01:55 |
|
lol as though I ever open poo poo written by anybody else
|
# ? Apr 8, 2015 01:55 |
|
|
# ? May 13, 2024 10:50 |
|
Bloody posted:gg=G
|
# ? Apr 8, 2015 02:28 |