« first day (620 days earlier)      last day (3404 days later) » 

12:00 AM
RELOAD!
 
Go away, Duga
 
[skiwi2/HearthMonitor-LogAPI] 6 commits. 0 issues opened and 0 closed
[retailcoder/Rubberduck] 2 commits. 0 issues opened and 0 closed
 
Is Duga another bot?
 
Yes
 
Yep
 
12:00 AM
Yep
 
[skiwi2/HearthMonitor-LogReader] 4 commits. 0 issues opened and 0 closed
 
Yep
 
By whom?
 
@Simon and more.
 
[Cardshifter/Cardshifter] 5 commits. 1 issues opened and 2 closed
[Cardshifter/cardshifter.github.io] 2 commits. 0 issues opened and 0 closed
 
12:01 AM
Look at the bots profile, it says there
 
@Duga Thanks!
 
I wrote a C# regex.
I think its terrible, though.
 
How are these bots created? Does someone just create another account, hook up some code, and send 'em to the chat room?
 
@SirPython Basically, though users need a certain amount of rep to post to a chat room
 
12:03 AM
Is the code replicating key-strokes for the bot? Or, is there an API for this?
 
Also, their use was 'vetted' by the moderators too in this room in particular.
 
Does anyone have any ideas as to how I could make some code such as this so that I could record for a theorhetical infinite amount of time? Right now it's bound by a time limit.
 
There's an API of sorts.
 
@Phrancis did you manage to make prettify work eventually?
 
12:05 AM
Not quite the way I want to, yet
 
There's missing tags in there, @Phrancis
end tag, and start-tags-with-attributes
 
</script> not an end tag?
 
If that is supposed to by HTML, you should put it in <body> and <head> tags.
 
That for loop is still wrong, right?
 
@Simon - by the way, I edited the 'about-me' for Duga here: chat.stackexchange.com/users/125580/duga
 
12:08 AM
Or is that how JS works?
 
@nhgrif ^^that
 
@Phrancis I'm not sure if this is intentional, but you declared myInt with var in two places - you should only have it once, as your editor/browser might raise a error/warning saying that myInt is already defined.
 
0
Q: is there a way to optimise my code for faster executing?

user3668051based on this guidlines i optimised Bresenhams line algorithm, now it fits for all kinds of line cases like images a, b, c, d, e, f, g, h shows in that guidlines. so here is what i did: this is my test.txt input file for all line cases: x1 y1 x2 y2 10 10 50 10 10 20 50 20 60 10 60 50 70 60 70...

 
@rolfl thanks :)
@rolfl are you sick of @Duga?
 
Ok, I haven't ran it or anything, only intended to be example code
 
12:10 AM
@SimonAndréForsberg No, he's behaving fine.
 
@rolfl It's a she! And good.
 
var myString = "Hello, World!";
var myInt = 42;

function helloWorld(world) {
    for (myInt >= 0; --myInt) {
        alert(myString);
    }
}
Better? ;p
 
@Phrancis - the loop variable should be assigned a value: for (var myInt = 10; ....) ...
 
Oh ok let me refactor ;P
 
for (var myInt = 10; myInt >= 0; myInt--) { ....
 
12:12 AM
var myString = "Hello, World!";
var myInt = 42;

function helloWorld(world) {
    for (i = 0; &lt;= myInt; i++) {
        alert(myString);
    }
}
 
@Hosch250 is there a reason you are using \p{N} for digits instead of \d?
 
@DanLyons No, except Expresso told me that was the code for numbers.
 
if you're only concerned with non-globalized 0-9, you can just use \d
 
I'm off to go do something else. See you guys/gals later.
 
@SirPython Ciao!
 
12:13 AM
you may want to take a look at the MSDN page: msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx
 
OK.
 
Do you all like the line numbers?
 
I go back to it pretty regularly when I do regex because I do it infrequent enough I never remember it all :P
 
@Phrancis Yes.
 
err....
 
12:14 AM
@DanLyons I actually had a different MSDN page open, but it didn't list the code.
 
for (; myInt >= 0; --myInt)
 
I saved this one.
 
empty initialization statement since myInt is already declared and initialized.
Or, as I stated earlier, this would work:
while (--myInt >= 0)
 
@rolfl I think this is everything:
<html><body style="font-size: 12pt;">
/* This is
 * a block
 * comment
 */

<script type="text/javascript">
// This is a comment

var myString = "Hello, World!";
var myInt = 42;

function helloWorld(world) {
    for (i = 0; i <= myInt; i++) {
        alert(myString);
    }
}
</script>
<style>
    p { color: pink }
    b { color: blue }
    u { color: "umber" }
</style>
</body></html>
Wow, this skin is horrible... Can you imagine if your IDE displayed like that?
I'm amazed someone would even take the time to make this
 
@SirPython Hope we see you back!
Hmmm, so my problem is with the maxFrameIndex, but if I was recording for an infinite amount of time then I wouldn't have a said maxFrameIndex...
 
12:29 AM
thanks Santa!
 
You can't record for an infinite amount of time...
 
@nhgrif Yes, I know... but I need to be able to do so (in theory anyways)
 
New user asked an on-topic question, yay!
1
Q: Ruby selenium script waiting for an element to disappear

jotadepicasI'm a Java developer, I'm new to Ruby and I'm worried that I'm forcing or not-so-well using the goodness of the Ruby syntax. What do you think about the Exception catching and how to print it in error messages? What about the code block (closure?) I'm passing to the "until" method? Is it ok to...

 
But I also need to store to a file certain snippets from the infinitely recording stream
And to store that info to a file I need the number of samples in the recorded snippet
 
27
Q: Why do elevator doors close?

TeifiIf the elevator is currently not in use but has stopped at the floor I'm on - why do the doors close? If the elevator is not on my current floor then I can understand the reason you'd want to have the elevator doors remain closed - however if the elevator is already on my floor - it seems like ...

 
12:33 AM
And the number of samples is calculated by int numSamples = data.maxFrameIndex * data.numberOfChannels;
So I need to find another way of calculating the number of samples I guess
 
Well, you can't write an infinite amount of data at any given time...
Each time you get a packet from the stream, just write that data as if it's the only data that exists...
 
@nhgrif Yes, I know. I'm going to have to temporarily save only select data; specifically noise that passes a certain threshold amplitude
 
0
A: Bedazzling My Bejeweled Animations

nhgrif_state == DMGameSceneStatePoppingMatches || _state == DMGameSceneStateReplacingMatches || _state == DMGameSceneStateSwapFailure || _state == DMGameSceneStateSwapSuccess Is _state a bit mask? Is DMGameSceneState an NSOptions? If so, I'd add to the NSOptions declaration: DMGameSceneStateShould...

 
Because otherwise I would be saving way too much data
Where most of it would be useless
I wonder if this could help me along my ways: github.com/eddieringle/portaudio/blob/master/examples/…
 
I'm confused about this post... It's tagged and ... ... ?
Oh, Jamal added that SE tag... probably needs removed
 
12:49 AM
Anybody around who knows C#?
@Hosch250 are you here?
 
Yup.
Just got back.
 
Do you know how to re-raise a winform event?
 
Never used winform.
 
Like, I want to delegate the event handler to my controller, but I need to register the event handler to begin with.
 
Could you provide a bit more detail? I might be able to figure it out.
 
12:51 AM
Ahhhh nevermind. Thanks.
I'm having difficulty explaining, which is probably why I'm having trouble searching for an answer to begin with...
Let me try. One sec.
Okay, so in my controller, I register this event.
_view.AddMarker += AddMarker;
 
Are you RubberDucking yourself?
5
 
Yes?
 
Which is defined in my view like this.
public event EventHandler AddMarker;
 
@RubberDuck the only class that can raise an event, is the class that defines that event
 
So, I think what you probably need to do is put that code in a method.
Then, call _view.AddMarker += () => { methodCall(); };
 
12:53 AM
@Mat'sMug I want to still let the view raise it, I just want the controller to react to it.
 
That is what I do when I need to check something that is raised by an event.
 
Or do I have this all wrong?
 
@Hosch250 Anonymous methods will work, but they make it harder than needs to be, to unregister a handler
 
I do this in WPF:
        public MainPage()
        {
            this.InitializeComponent();
            SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested;

            this.DataContext = Data;

            this.SizeChanged += (s, args) =>
            {
                PageSizeChanged();
            };
        }

        void PageSizeChanged()
        {
            String state = (mainPage.ActualWidth > 750) ? "PrimaryView" : "Snapped";
            VisualStateManager.GoToState(this, state, false);
Not sure about WinForms.
 
My brother sent me this: Amazon travel mug review
 
12:56 AM
Okay, so what I really think I want to do is pass a delegate from the controller into the view to be registered...
I'm talking nonsense aren't I?
 
An event is a special kind of multicast delegate
 
Figure out what you want to do (usually the hard part), then do it.
3
 
This is what I really want to replace.
this.tokenListBox.SelectedIndexChanged += new System.EventHandler(this.tokenListBox_SelectedIndexChanged);
That was built by the designer and it's in my view. I want to keep that action in the controller.
Am I making sense yet?
 
And you want to be able to call new System.EventHandler(this.tokenListBox_SelectedIndexChanged); from many places?
I don't think I'm helping.
 
No. I want to register a method from the controller as the event handler.
 
1:04 AM
So you want to have a method do the work being done in new System.EventHandler(this.tokenListBox_SelectedIndexChanged);?
Or you want to call a method instead of new System.EventHandler(this.tokenListBox_SelectedIndexChanged);?
Does the tokenListBox have a SelectionChanged call?
 
I want to replace this.tokenListBox_SelectedIndexChanged with a method from the controller. Which I'm not sure makes any sense at this point.
SelectionChanged is the event delegate in the view.
 
I'm not getting it.
I'm not familiar with WinForms terminology.
So where/what is the controller?
Is that the code-behind?
If so, then you probably need to call something like _view.AddMarker += (sender, e) => { methodCall(); };
Then you can call methodCall() wherever you want.
 
@RubberDuck No. SelectionChanged is an event of a ListBox - if you want the view to have a SelectedTokenChanged event, then make the handler for the ListBox event fire up such an event!
 
@Mat'sMug That's exactly what I'm not quite getting.
bbiab guys
 
@RubberDuck Check out my "event-tossing UI" post - no review pointed out it was a bad approach ;)
public event EventHandler<SomeEventArgs> TokenSelectionChanged;
8
Q: TestExplorerWindow, the event-tossing UI

Mat's MugFollowing up on Integrating Unit Testing functionality into an old COM-based IDE, I made quite a few changes to the UI, and now the code-behind for my TestExplorerWindow is starting to feel somewhat bloated, at least compared to what it was... I blame the added toolbar and the fancypants progress...

 
1:17 AM
@Mat'sMug, isn't that a question you asked and RubberDuck answered ?! :P
2
 
@Mat'sMug this is the answer I wanted to ask about, how accurate it was:
2
A: C# approach to prevent null references in strings

Simon André ForsbergIf A equals B, then B should equal A, right? Well, not in your case. public bool Equals(string other) { if (other == null) { return ToString() == ""; //we are never 'null' } return other == ToString(); } I find it weird that your class can be considered equal to null, ...

 
what would be SelectedTokenChanged in comparison to SelectionChanged Mat?
 
@Mehrad a custom event that belongs to the view itself, relaying the event triggered from the listbox
@SimonAndréForsberg I upvoted it, I see nothing wrong in it ;)
@Mehrad ....it is :)
 
ok, thanks mug!
Speaking of up-votes, I got two up-votes on this today:
32
Q: Daily vote limit reached; vote again just now

Simon André ForsbergEven though this is a very very minor issue, I still think it is an issue. (And I don't think this is a duplicate as the possible duplicate is status-completed while this issue is obviously not status-completed as it happened "just now"). If you have the correct timing when there's a new day on ...

 
@Mat'sMug, sorry this is not my question so I don't know it's details but quite curious to understand it. So SelectedTokenChanged is a custom event? would you be able to give me an example of this? And I honestly don't know what do you mean by belonging to the view itself. Does this mean this event isn't related to listbox but the view ?
 
1:26 AM
The idea being that the controller needs to know that something happened in the view that needs to be acted upon - but the controller can't listen to control events directly, because it would break encapsulation and tie the controller to the view
 
Perhaps it has happened for someone other than me!
@Donald.McLean @rolfl Are we being watched?
 
@SimonAndréForsberg I get random votes on that answer every now and then
 
emmmm... getting interesting
 
@SimonAndréForsberg In C#, you just do [List.Count - 1] instead of [-1].
Not that different, but different...
 
@Hosch250 where did I say [-1] ? Sounds like C# matches Java there.
 
1:29 AM
> Feature-request:
> As you re-implemented the Substring method, perhaps consider PHP's implementation which has support for negative parameters. It is one of the few things I actually miss from PHP.
 
So I make an event that says "SomethingHappened" and raise it when user clicks a button, or whatever - the controller doesn't know about controls on the view, only that the view is saying "SomethingHappened"
 
PHP allows negative values.
 
@SimonAndréForsberg Have not yet watched last week's ... noone answered me on whether it was a part-1-of-2...
 
@rolfl last week was part 2 of 3 according to the Person of Interest wiki
so this week will be 3 of 3
 
What happened to the blog?
Anything going there?
 
1:32 AM
TTGTB
 
See ya.
 
Good night @sim
@Hosch250 on hold, until the PTB decide otherwise
 
OK.
 
@Mat'sMug I think me not grasping the whole idea properly comes from not being totally familiar with the glossary. I am familiar with the Control which can be, say, a button or listView in this case (if I am right). but not sure about controller and can't relate to the whole view as an entity. and I kinda have a feeling that we want to implement something like We wanna know something happened when something happened is happened.
but not sure we as me, is a Controller or view or even something else... :)
 
Heard of MVC?
 
1:36 AM
and also if possible, can you point me toward a reference that I can read about the concept of controller then you don't need to explain the whole thing. :)
Oh... that controller
I am familiar with MVVM
 
MVVM is a bit of a derivative
 
Se if I replace Controller with ViewModel then lots of thing you said makes sense all of a sudden...
 
Ding ding ding!
 
:)
 
You called?
 
1:39 AM
reminds me of
 
Oh... not quite what I had in mind...
Was more like "ding ding ding ding! We have a winner!"
 
gotya :D... Thanks for the patience though @Mat'sMug
 
np
 
I was totally in the wrong garden...
Can this behavior implemented using Binding? cuz this gives me a feeling that this needs a bit of CodeBehind approach.
 
1:47 AM
@Mehrad The problem is that WinForms bindings kinda suck
 
Oh... this is WinForms... My bad
I lohve wpf
 
Yeah me too. But it gets complicated when you're writing a COM extension for VBE ;)
 
0
Q: How to 'tag' packages and make them discoverable?

Christian BongiornoWe have another team who is going to expose class packages for use to scan and pickup details from. If they should add some new packages or rename old ones I don't want to have to recode a thing. I am trying to get some input on the best way to accomplish that So sake of maintainability we only...

 
Genius @Mat'sMug. Just what I needed to see. That's exactly was I trying to do. I just thought there may be a "cleaner" approach. That will work.
 
2:12 AM
Not sure it's genius.. it makes a lot of event-relaying.
Hence my post, "event-tossing UI"
 
Okay, well, to me, right now. It feels genius because it gets me movign forward again.
 
Good to read! :)
And if you find a way to remove the smell, please let me know!
 
0
Q: MySQL - Optimise web panel users statistics query

CupOfJoeDetails Can any one instruct me on a more optimised way of querying this statistics of registered users, I currently lack the knowledge to create a better query. Right now it works fine, but I want to learn more about other ways to do the same thing and improve on it, this way I can expand my kn...

 
If I find a way I certainly will. There has to be a better way.
Quick question though, did you run into any issues with the handler always being null?
 
Nope
Means there's no subscriber at runtime.. likely a bug?
 
2:25 AM
D'oh!
I forgot to change the parent form to use the controller instead of the view.
 
With R# if an event is never subscribed to its declaration is shaded and there's a tooltip that says this event is never subscribed to - then you know there's a problem before you even build the project..
 
@CaptainObvious You gotta be kidding, right?
 
I really hate that I'm "out in the weeds", and have no clue what I'm doing... :P
 
It would be interesting to see a query plan for this! — Mat's Mug 46 secs ago
 
@syb0rg all I learned form uni was that when I am behind I work better ;P
 
2:35 AM
  # Count how many Onsite Teachers have been hired this month
  (
    SELECT COUNT(*)
    FROM purchases
    INNER JOIN purchased_profiles
        ON purchased_profiles.purchase_id = purchases.id
        AND purchased_profiles.profile_type = 'onsite_teacher'
        AND purchases.transaction_status = 'completed'
        AND MONTH(purchases.created_at) = MONTH(NOW())
        AND YEAR(purchases.created_at) = YEAR(NOW())
  )
  AS current_month_purchased_onsite_teachers,
^^ @Mat'sMug Even after formatting it looks like a mess
 
0
Q: Simply script to find the largest number palindrome [C#]

Ahkam NihardeenI have made a simply C# script that will find the largest palindrome made by the product of two numbers. These numbers will be between a min and max value, inputted by int.Parse(Console.ReadLine()) Is there any way to make this better? It is brute force, however I tried to make it use less numbe...

 
Iz hatez bugz
3
 
Never knew # this is a comment was valid MySQL syntax. Pretty sure it isn't. Must be embedded into something else (Python?)
Oh, must be batch mode
 
2:50 AM
Oh that great feeling when you smash a bug
4
 
1
Q: The Code Review/Programmers/Stack Overflow hot potato

moarboilerplateI don't want to cross-post on all metas so code review has to be the target of my ire, apologies. Current hotness: Test & remove, or always remove So I'm starting to notice that questions are now getting kicked around between forums because there's enough legalese in each community for questio...

 
3:08 AM
Now I need to find a threshold at which I should record audio... any suggestions?
0.000000
0.000000
0.000839
0.000343
0.000057
-0.000078
-0.000035
-0.000086
-0.000063
0.000028
-0.000001
-0.000033
-0.000055
-0.000050
0.000009
-0.000040
-0.000014
-0.000065
0.000005
-0.000010
-0.000020
-0.000013
-0.000009
0.000007
0.000020
-0.000037
0.000016
-0.000030
0.000049
0.000021
-0.000015
0.000002
0.000013
-0.000014
-0.000005
-0.000013
0.000005
0.000048
-0.000009
0.000021
0.000014
-0.000044
0.000000
0.000017
0.000028
0.000023
0.000031
-0.000021
0.000016
0.000020
-0.000046
-0.000003
-0.000020
That's the amplitude outputs from a sample of some silence, then me saying "test"
 
use a clustering algorithm and discard the cluster whose mean is closest to 0?
 
That could work...
 
Woohoo! Reading that example question+answer for my exam friday actually pays off
I am now a data mining specialist
2
 
3:31 AM
I think I found a little easier way for now
I just average a sample set, and if it is greater than 0.000400 then it will save the recording
It still catches little bits of louder noise here and there, but I can make it so that I only save audio clips of a meaningful length
 
that's probably easier, yeah
it won't be as effective when the sound is generally lower though, right?
 
I may need to fine tune the threshold a bit, but for now it should be okay while I finish implementing the code
 
the treshold will be lower then and vice versa when the input sound is louder than usual
 
@JeroenVannevel Yeah, that's where I'll probably need to implement your clustering idea
 
speaking of awesome stuff
I'm eating chocolate cupcakes with chocolate pieces
I'm so happy right now
 
3:38 AM
Well I'm jealous...
brb, scavenging for chocolate
 
4:07 AM
0
Q: Google Code jam puzzle - Welcome to Code Jam

GeneralBecosHere is the link to the problem for reference. The problem is to find all possible sub-sequences of "welcome to code jam" in a given input string [and only return the last 4 digits of the total] I've implemented a solution in haskell that worked fine on the examples and small datasets but failed...

 
@syb0rg From my audio experience, it sounds like you're making something that's analogous to a compressor's threshold?
Sounds a bit like you're dealing with an ADSR-like type of system maybe?
 
4:45 AM
> I've implemented a solution in haskell that worked fine on the examples and small datasets but failed on the large data set. Here is the code:
@CaptainObvious Code doesn't works as intended...?
Also, Haskell looks ugly (to me)
 
5:17 AM
I'm dreaming of next summer.
@JeroenVannevel Nice job.
I take a data mining class next spring.
 
6:02 AM
0
Q: Finding the shortest substring containing keywords

David Grinberg Problem: Write a function that takes a String document and a String[] keywords and returns the smallest substring of document that contains all of the strings in keywords. Notes: document will contain at least 1 word document will separate words by a single space A word can on...

 
6:16 AM
Mostly true and kind of humorous: Which Programming Language Should I Learn First?
4
 
 
1 hour later…
7:37 AM
0
Q: Dynamically calculate status in MLM

amazingbasilProblem: dynamically calculate status in MLM only based on a structure. It works correctly but it's so slow. Only test processing takes about 20 seconds. I tried to replace some lists by generators, but it was bad solution, because they have to be changed during runtime. I have no more ideas of ...

1
Q: Spiral Scanning for matrix using recursion

Ayushi JhaI have written a code in C for scanning an N x M matrix in spiral order using a recursive function. It uses 5 parameters - including 2 extra variables : 1. "call" to keep track of the no. of current call and 2. "counter" to keep track of no. of elements already printed. Ex: for matrix : 1 2 3 4...

 
8:27 AM
0
Q: Super simple jquery slider

ChilionI created the most simple though still quite flexible jQuery slider ever! Or at least, I hope so. var slider = $(".slider-ul"); slider.each(function () { var e = $(this), images = e.find("li"), current = null; slide(); function slide() { images.each(funct...

0
Q: PHP/Phalcon RESTful API architecture

MaschelQuestion: I'm building a RESTful API in PHP using the Phalcon framework. The API will consist of multiple modules (e.g. api.example.com/mail/users, api.example.com/web/users, etc). So i want to put all module specific logic at one place as much as possible. I have a lot of programming experienc...

0
Q: Improving Javscript For In loop for value assignment

UebynI am using this for in loop to loop through a json object and to assign the json object's value to my own object in a KnockoutJS setup. The json object looks like this: [ { categoryId: "013", categoryName: "Toys", id: 2328, name: "Megatron", summary: "", price: 120...

 
8:52 AM
0
Q: Least common ancestor (LCA) in a binary tree

JavaDeveloper Find the LCA in binary tree, where a node is also its own ancestor. This question is attributed to GeeksForGeeks. I'm looking for code review, optimizations and best practices. public class LeastCommonAncestor { private TreeNode root; /** * Constructs a binary tree in order ...

 
9:20 AM
0
Q: My code will let me win if I get the correct number

A MUSEI created a simple 'Guess The Number' game, but when I choose the right random number, it says: "You lost!". import random import time print("Hello! Today we are going to play Guess The Number!") number = raw_input("Guess a number between 0 and 5") random_number = random.randint(0, 5) if number ...

 
9:41 AM
Monking
 
hey @skiwi
 
hey @Heslacher
 
9:54 AM
Early morning opinions...?
/**
 * Functional interface to supply a set of entry readers.
 *
 * @author Frank van Heeswijk
 */
@FunctionalInterface
public interface EntryReaders extends Supplier<Set<EntryReader>> { }
Does this sound like a reasonable name?
Other candidates: EntryReaderSupplier (longer and perhaps ambigious); EntryReaderSetSupplier (long name, not ambigious)
 
10:13 AM
0
Q: Php Code to print to terminal in a color

aWebDeveloperBasically i wish to have 3 printers to print in error state, success state or info state which means nothing but different colors. class ColorCode{ private static $options = [ "dark_gray" => "1;30", "light_gray" => "0;37", "blue" =>...

 
monking @all
 
hey @chillworld
 
hey @chillworld
@skiwi what will be the difference between Supplier and EntryReaders ?
 
hey @skiwi and @Heslacher
 
@Heslacher Nothing, it's a name to make it easier to use
 
10:21 AM
So you create an inteface because of the name ?
 
I'd rather type or implement EntryReaders than Supplier<Set<EntryReader>>
 
Is EntryReader also an interface ?
 
Yep
 
0
Q: Find, on a sequence of size L, the number that appears more than L/2 times

Rodolfo DiasYes, yet another challenge on CodeEval! This one has the purpose of finding the major element of a sequence: the element which appears in a sequence of size L more than L/2 times. I have this: import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOExcept...

 
I agree that this would be more or less an on convention based name, rather than a logical name
 
10:30 AM
I would then change the whole `Supplier` to
@FunctionalInterface
public interface EntryReaders extends Set<EntryReader> { }
 
Isn't that the same as I just had?
 
It had been until I edited it ;-)
 
Ah
That's also a good point
 
I always forget that hitting enter in chat will send the post ;-)
 
I believe the consensus forward from Java 8 is more on functional abstractions though
They can for example not be abused by the user
If you use a Set<EntryReader>, then it could be modified, etc. (in bad cases)
If you use a Supplier<Set<EntryReader>> you can retrieve your own unique instance
 
10:34 AM
You could also just use composition to achieve the same.
 
The good point is that I can at least live with my own implementation
Which in the current (old) way I cannot really
 

« first day (620 days earlier)      last day (3404 days later) »