Java

Dedicated to the discussion of the Java programming language a...
Sep 28, 2018 13:20
I'm out! Hope I offended no one. Otherwise, complaints > /dev/null!
Sep 28, 2018 13:07
Everyone is selffish. And want's to carry his own values into the world.
Sep 28, 2018 13:02
Nonviolent communication from Rosenberg :D
Sep 28, 2018 13:01
Sep 28, 2018 13:01
I feel you are both behaving in a way that is offensive
Sep 28, 2018 13:00
:D
Sep 28, 2018 12:59
And crybabies can get hurt, without you being offensive. E.g. you forget their birthday.
Sep 28, 2018 12:59
Not really. You can be offensive without someone being hurt. If I insulted the highly enlightened Dalai Lama he sure wouldn't get hurt.
Sep 28, 2018 12:58
*her friend
Sep 28, 2018 12:58
Because you "attacked" here friend. And to attack literally is the translation of the latin 'offendere' which is the root for offensive.
Sep 28, 2018 12:55
*do more sports
Sep 28, 2018 12:54
Offensive Language is more clearly defined than the state of being hurt and/or what actions lead to it. Your wife can get hurt if you friendly suggest that she should to more sports/eat more healthy etc. But that is not offensive (language).
Sep 28, 2018 12:52
There's a difference between offensive and hurt. Offensive is more objective than hurt. Being hurt is purely subjective.
Sep 28, 2018 12:50
Yes. But why would a made up word be understood as offense? I think because it implies some insult.
Sep 28, 2018 12:48
About implied insults
Sep 28, 2018 12:48
@ballBreaker I've asked a question on law stackexchange once. law.stackexchange.com/questions/3989/implied-insults
Sep 28, 2018 12:43
Can anyone help me out. For spiritual being's sake: stackoverflow.com/questions/52554686/… :D
Sep 28, 2018 12:42
@ballBreaker Maybe. I new^^
Sep 28, 2018 12:42
Okay, I'd use map(Person::getLastName), though :P
Sep 28, 2018 12:36
@geisterfurz007 You'd use it in a stream. So 'myVariableWhichIProperlyNamed' would not provide any benefit
Sep 28, 2018 12:35
The signature, in this case, is a known signature. String::equals:("BB") is Predicate<String> which is Function<String, Boolean>. What if you curry functions with more parameters? You need many function types Function3<P1, P2, P3, R>, Function4<P1, P2, P3, P4, R> etc.
Sep 28, 2018 12:28
@Wietlol i.e. BiFunction (add(x, y)) to Function (add_x(y)) for example.
Sep 28, 2018 12:27
Coming back to Apache Storm. Anyone some advice? :D:D
Sep 28, 2018 12:27
@Wietlol The method signature changes, though. So you need another type
Sep 28, 2018 12:26
*preprocess it AND create
Sep 28, 2018 12:26
Ahhh. Nice. So you preprocess it a create partial function objects. Similar to Mockito (which uses objgenesis, I thinkk)
Sep 28, 2018 12:25
0
Q: Apache Storm in non-distributed scenarios

mikeI'm developing an application that processes transactions that contain fragments of serialized messages. It reads, groups and concatenates, and pushs them to subscribed readers after deserializig them. The different tasks (reading, grouping, deserializing) are implemented as dedicated components...

Sep 28, 2018 12:25
I have problems on my own, though :D I need a (lightweight) and non-distributed alternative to Apache Storm
Sep 28, 2018 12:24
Wish you look with your proposal. But Java wants (nearly?) everything to be backwards compatible. That could be a problem
Sep 28, 2018 12:22
:D
Sep 28, 2018 12:22
Supplier<Integer>
Sep 28, 2018 12:22
Ahh. Okay, got it
Sep 28, 2018 12:21
Why would you need : in the second line? What is there left to curry?
Sep 28, 2018 12:18
Or where's your proposal
Sep 28, 2018 12:18
Whats yours?
Sep 28, 2018 12:17
@Wietlol thats just a user profile. Mine is that: github.com/mbe24/jcurry
Sep 28, 2018 12:17
@JennaSloan partical application of method arguments
Sep 28, 2018 12:16
But I had to use soo much generics, that is was a pain. I just stopped developing at some point
Sep 28, 2018 12:16
I wrote a currying framework once. jcurry.
Sep 28, 2018 12:16
:D
Sep 28, 2018 12:14
has currying?
Sep 28, 2018 12:14
scala?
Sep 28, 2018 12:14
What language is that?
Sep 28, 2018 12:13
Stream.of("AA", "BB").filter("BB"::equals).count();
Sep 28, 2018 12:13
yep, just tested it! Thx
Sep 28, 2018 12:12
but I have to check if method references work on literals. not exactly sure right now
Sep 28, 2018 12:12
Also, you can create a nice lamda that way: filter("BB"::equals)
Sep 28, 2018 12:11
Who knows. But systematically excluding NPEs is always better than trusting developers^^
Sep 28, 2018 12:10
@KarelG yes, it's not prone to NPE
Sep 27, 2018 17:01
Why?