mk.

Apr
8
awarded Caucus
Apr
7
reviewed Reject suggested edit on Fullcalendar limit the display of available months?
Apr
7
reviewed Approve suggested edit on Should we @Override an interface's method implementation?
Mar
26
reviewed Approve suggested edit on jQuery memory leak with DOM removal
Mar
26
reviewed Approve suggested edit on How do I make a flow chart for this code
Mar
26
reviewed Reject suggested edit on How to create a radio button dynamically with jQuery?
Mar
25
reviewed Approve suggested edit on what are webhooks? what is its use?how can i use it in my woocommerce wordpress site?
Mar
25
reviewed Approve suggested edit on Creating a mock in phpunit without mocking any methods?
Mar
25
reviewed Approve suggested edit on How to properly declare routing for both Web.API and MVC routes
Mar
24
comment Avoiding unnecessary ConcurrentModificationException on iteration
If a thing is added then immediately removed, things will contain a Thing that shouldn't be there. How could I ensure this (or a similar scenario) doesn't happen?
Mar
24
comment Avoiding unnecessary ConcurrentModificationException on iteration
@Sbodd yes but putting the "full synchronization" inside the loop as in yshavit's answer (rather than outside the whole loop) seems to satisfy (A), no?
Mar
24
comment Avoiding unnecessary ConcurrentModificationException on iteration
@KevinCondon It might, but consumed items need to be re-inserted, which might be messy because it seems like you'd end up juggling two lists, and the second thread might add or remove a thing repeatedly, so it's hard to say.
Mar
24
comment How come Object class toString get accessed by reference variable of my interface
copy-pasted duplicate of Do interfaces have toString method?
Mar
24
comment Avoiding unnecessary ConcurrentModificationException on iteration
This is roughly the "fail-safe iteration" I'd mentioned - the problem was (besides copy seeming unnecessarily slow) that I might end up calling costlyOperation on a Thing that is in thingsCopy, but which is no longer in things, which violates constraint A. Could I work around that somehow?
Mar
24
asked Avoiding unnecessary ConcurrentModificationException on iteration
Mar
24
awarded Civic Duty
Mar
20
reviewed Approve suggested edit on Exposing a port on a live Docker container
Mar
20
reviewed Approve suggested edit on How to get URL parameters with Javascript?
Mar
20
reviewed Approve suggested edit on check uniqueness of excel column in java
Mar
20
reviewed Reject suggested edit on How to pluralize words/strings?
1 2 3 4 5