281 karma · joined Nov 6, 2009 (17y ago) · 99 submissions
4.
How can a workplace rally after everyone's salary got leaked?(workplace.stackexchange.com ↗)
5 points · by Proleps · 11y ago · discuss
comment 11y ago · link · parent
Although it is something I think about from time to time, I am sticking to the job I have for a while. I learn a lot on the job and it's a nice place to work.
comment 11y ago · link · parent
True. It would be nice if Java had some immutable collection classes that don't have mutable methods. A method that gets a List<String> made with Collections.unmodifiableList(tags), doesn't know that it is actually immutable.
comment 11y ago · link · parent
Then it wouldn't be immutable, if I can change the implementation I can also create a mutable version.
Edit example
public class Article {
private final String title;
private final String author;
private final List<String> tags;
private Article(String title, String author, List<String> tags) {
this.title = title;
this.author = author;
this.tags = tags;
}
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public List<String> getTags() {
return tags;
}
}
public class MutableArticle extends Article {
private String title;
private String author;
private List<String> tags;
public MutableArticle() {
super(null, null, null);
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public List<String> getTags() {
return tags;
}
public void setTags(List<String> tags) {
this.tags = tags;
}
}comment 11y ago · link · parent
public final class Article{
public final String title;
public final String author;
public final List<String> tags;
public Article(String title, String author, List<String> tags) {
this.title = title;
this.author = author;
this.tags = tags;
}
}
Getters don't seem very useful on an immutable object.comment 12y ago · link · parent
[Edit] Changed negative reinforcement to punishment, rbehrends was correct when he pointed out that negative reinforcement is something different.
comment 13y ago · link · parent
comment 13y ago · link · parent
I don't really know what these numbers are supposed to show. I've shared content that I've later regretted sharing, but it wasn't a lot of regret. If someone had asked me that question in a survey I would have probably answered yes, but it wouldn't really mean anything.
I've also deleted people from my network, but that was because I didn't really care about them. I can't really find any important information in these numbers
comment 13y ago · link · parent
How did you solve it?
comment 13y ago · link · parent
Besides if you want to opt-out of porn you can already install filters on your computer or your router if you want to.
comment 13y ago · link · parent
Party sizes vary greatly after elections which means politicians feel the consequences of their actions. It is not perfect of course, but it is better.
The weird thing is that it is possible to have multiple parties in the US, but they never get enough votes. This makes it seem like their has to be a lot of corruption.
comment 13y ago · link · parent
Americans seem to like having things escalate. Going to court is the first reaction to everything in stead of asking someone to apologize or talking things out. The incentive for going to court also seems to be very high, you can get large sums of money for small things. Money is the biggest reason people work in the first place.
comment 13y ago · link · parent