|
JewKiller 3000 posted:i haven't written any real java code in a while and i decided to use java 8 streams this time and boy are they cool and good cool. java got c# enumerables and linq extension methods
|
# ? Jul 13, 2017 03:40 |
|
|
# ? May 25, 2024 09:51 |
|
show my post you broken forums
|
# ? Jul 13, 2017 03:40 |
|
akadajet posted:cool. java got c# enumerables and linq extension methods finally, linq comes to the mainframe
|
# ? Jul 13, 2017 03:48 |
|
the types are so dank, for example: static <T,K> Collector<T,?,Map<K,List<T>>> groupingBy(Function<? super T,? extends K> classifier) you could almost generate the method body automatically from that, it tells you exactly what it does
|
# ? Jul 13, 2017 03:49 |
|
eschaton posted:you should switch to Cathode for all your terminal emulation needs
|
# ? Jul 13, 2017 03:53 |
|
akadajet posted:cool. java got c# enumerables and linq extension methods c# enums are crap compared to java enums
|
# ? Jul 13, 2017 03:56 |
|
JewKiller 3000 posted:the types are so dank, for example: please tell me why the gently caress there's a ? in Collector<T,?,Map<K,List<T>>> (i know why, it's for muh parallel streams, and it shits up the api)
|
# ? Jul 13, 2017 03:59 |
|
Shaggar posted:c# enums are crap compared to java enums yeah, but when you are comparing poop to poo poo who cares?
|
# ? Jul 13, 2017 03:59 |
|
JewKiller 3000 posted:static <T,K> Collector<T,?,Map<K,List<T>>> groupingBy(Function<? super T,? extends K> classifier) Just like the STL
|
# ? Jul 13, 2017 04:00 |
|
Brain Candy posted:
well you already know why so i don't have to tell you parallel streams are nice and a little ? here and there doesn't hurt
|
# ? Jul 13, 2017 04:01 |
|
akadajet posted:Just like the STL yeah but in a language that a sane person can understand
|
# ? Jul 13, 2017 04:03 |
|
JewKiller 3000 posted:yeah but in a language that a sane person can understand the language isn't bad. the frameworks people build with it tho....
|
# ? Jul 13, 2017 04:04 |
|
yeah i'm not defending reflection magic. dependency injection etc has its uses, but i like to actually see my control flow! the stream stuff is all built with normal static java types though
|
# ? Jul 13, 2017 04:06 |
|
Shaggar posted:c# enums are crap compared to java enums enumerables not enumerations
|
# ? Jul 13, 2017 04:06 |
|
babby's first taste of functional programming at some point when i'm not a burned out simmering husk of nasty attitude i'll have to sit down and have a good look at kotlin, seems pretty cool. like scala except actually planned out ahead of time.
|
# ? Jul 13, 2017 04:08 |
|
CommunistPancake posted:enumerables not enumerations i was wondering about that...
|
# ? Jul 13, 2017 04:09 |
|
Sapozhnik posted:babby's first taste of functional programming i used to write a lot of ocaml so i'm quite comfortable with functional programming, which is probably why that type looks nice to me, instead of like noise kotlin is cool, i know a guy who worked on its type system
|
# ? Jul 13, 2017 04:09 |
|
lol i didn't know java 9 had been delayed again
|
# ? Jul 13, 2017 04:10 |
|
thanks oracle thoracle
|
# ? Jul 13, 2017 04:11 |
|
java desperately needs either async/await or coroutines, this isn't 2010 any more neither of which are java 9 features so idk maybe we'll get them in java 10 some time around the middle of trump's second term
|
# ? Jul 13, 2017 04:15 |
|
javascript has async/await now. just use that instead.
|
# ? Jul 13, 2017 04:16 |
|
I'm the ?
|
# ? Jul 13, 2017 04:19 |
|
JewKiller 3000 posted:the types are so dank, for example: that makes me sick to my stomach to be honest
|
# ? Jul 13, 2017 04:20 |
|
what about it don't you like? is it your failure to understand it, and the subconscious anxiety that maybe you should have paid attention in school?
|
# ? Jul 13, 2017 04:22 |
|
akadajet posted:yeah, but when you are comparing poop to poo poo who cares? that doesnt make any sense. java enums are really good
|
# ? Jul 13, 2017 04:23 |
|
CommunistPancake posted:enumerables not enumerations oh lol. yeah java needed those
|
# ? Jul 13, 2017 04:24 |
|
c# enums are kind of bland, but I don't know what else they should be doing ??
|
# ? Jul 13, 2017 04:25 |
|
JewKiller 3000 posted:what about it don't you like? is it your failure to understand it, and the subconscious anxiety that maybe you should have paid attention in school? reprehensible
|
# ? Jul 13, 2017 04:30 |
|
JewKiller 3000 posted:what about it don't you like? is it your failure to understand it, and the subconscious anxiety that maybe you should have paid attention in school?
|
# ? Jul 13, 2017 04:35 |
|
akadajet posted:c# enums are kind of bland, but I don't know what else they should be doing ?? gaining methods, conforming to interfaces
|
# ? Jul 13, 2017 04:37 |
|
game update: hell yeah i can matchmake between my iPhone and my old iPhone and the game totally works!!! so it has singleplayer, local multiplayer, and online multiplayer via Game Center time to polish the hell out of it and play myself a bunch to find all the weird poo poo that doesn’t work i updated my phone to the new beta iOS 11 and also wrote a little hard drive free space menu bar gadget while it was updating? my autism knows no bounds
|
# ? Jul 13, 2017 04:38 |
|
Pie Colony posted:reprehensible i know right? wasting his parents' money like that
|
# ? Jul 13, 2017 04:50 |
|
akadajet posted:c# enums are kind of bland, but I don't know what else they should be doing ?? java enums are real good cause they can have additional fields and methods and other stuff and are effectively just static classes with a list of static instances that the compiler understands.
|
# ? Jul 13, 2017 04:57 |
|
JewKiller 3000 posted:the types are so dank, for example: i don't understand this at all
|
# ? Jul 13, 2017 05:14 |
|
Shaggar posted:java enums are real good cause they can have additional fields and methods and other stuff and are effectively just static classes with a list of static instances that the compiler understands. Java enums are really good C# gave all that up for ... the ability to use them as bitflags, lol (a problem that Java solved with EnumSet)
|
# ? Jul 13, 2017 05:24 |
|
JewKiller 3000 posted:i haven't written any real java code in a while and i decided to use java 8 streams this time and boy are they cool and good They are the worst interface with that stuff I've ever seen, but at least the functionality is there. Symbolic Butt posted:wait a minute is that a serifed font? in the terminal?????? Let me tell you about my ligatures in the terminal
|
# ? Jul 13, 2017 05:32 |
|
cis autodrag posted:i don't understand this at all well you have to know java generic type syntax which takes some practice. let me try to explain in english: code:
specifically, you do something like this: code:
JewKiller 3000 fucked around with this message at 07:16 on Jul 13, 2017 |
# ? Jul 13, 2017 05:43 |
|
gonadic io posted:Let me tell you about my ligatures in the terminal
|
# ? Jul 13, 2017 05:52 |
count me in the nice font coloured terminal club too, like my linux pretty and poo poo
|
|
# ? Jul 13, 2017 05:56 |
|
|
# ? May 25, 2024 09:51 |
|
i'm still just on bash now though, i've tried a few alt terminals but given that all i use it for is 'ssh prod1' and 'sbt clean test' none of them have been worth the extra hassle
|
# ? Jul 13, 2017 07:20 |