Better HN
topnewbestaskshowjobs
Log inSign up

Proleps

281 karma · joined Nov 6, 2009 (17y ago) · 99 submissions

Submissions

comment 11y ago · link · parent

Don't know if it is still true. DNS lookup didn't work correctly when ipv6 was enabled.

comment 11y ago · link · parent

Code for older Java versions still compiles in Java 8. Code written for python 2.x will not run on python 3.x.

comment 11y ago · link · parent

Maybe you just don't like traveling. There are lots of stories about traveling digital nomads on HN. That type of life never sounded interesting to me. Maybe you just don't like it either.

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

I've thought about starting my own company, but I don't want to start a startup. I want to start a company without investors that actually makes money from the beginning.

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

> Also, your first class isn't fully immutable—getTags should be implemented as follows:

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

> If you ever want to change the implementation of Article, you'd break anyone that was using that part of your API. If you use getters, you can change your implementation without breaking the consumers of your API.

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

why not use:

  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

Punishment also works on cats. You just have to be very consistent when applying it (this is exactly the same for dogs). If you punish your cat(or dog) you have to do it immediately. If the cat is done scratching its nails, and you squirt water, you are too late.

[Edit] Changed negative reinforcement to punishment, rbehrends was correct when he pointed out that negative reinforcement is something different.

comment 12y ago · link · parent

You should also learn a server side programming language with good performance(Java, C#, Go). I think Java is the best because it is mature, multi platform and you can also use it for Android programming.

comment 12y ago · link · parent

Most open source/free software(free as in liberty) is free as in beer. It gets payed for by donations and/or big sponsors. It has no hidden costs. Not everything is available as open source/free software, but it is enough have a usable computer and even some games.

comment 13y ago · link · parent

Because it doesn't exist yet.

comment 13y ago · link · parent

That such a thing is possible. If I try to get below my limit in the Netherlands I am simply not able to. The only services who can go below my limit are my rent and gas/water/electricity bills. And then I just pay a high interest rate. Which doesn't really matter if you deposit money the next day.

comment 13y ago · link · parent

Nineteen per cent of teens have posted updates, photos, or other content that they later regret sharing, and seventy-four per cent have deleted people from their network.

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

In the Netherlands we have enough unemployment money that one isn't forced to take some ridiculous "just be employed" job. But the longer you are unemployed, the harder it will be to find a new job. A hole in your resume doesn't look god

comment 13y ago · link · parent

Java applets where released in 1995, flash was released in 1996.

comment 13y ago · link · parent

> Is there something better?

Not using the internet is better :P

comment 13y ago · link · parent

> I don't know WHY they do this, but last time it happened we got an abuse report saying that we were reported for port scanning from our main firewall / proxy box. Somehow they had reflected traffic off our firewall / proxy to make it try to connect to a bunch of IPs on a known trojan port.

How did you solve it?

comment 13y ago · link · parent

Why would someone DDoS GitHub? Is there some movement against GitHub? Or is it just for fun?

comment 13y ago · link · parent

We are not the only ones being watched, politicians are being watched as well. This means the NSA can probably blackmail a large portion of the politicians.

comment 13y ago · link · parent

There would be a list of people who want to be able to watch porn (which could be used for black mail). It would also require a lot of infrastructure to be set up for this kind of censorship. That infrastructure could easily be used to start blocking other content.

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

Windows is full of exploits that are enabled by default. Plugging a usb stick into your computer could automatically install a virus. Or a bug in flash or java could expose your computer.

comment 13y ago · link · parent

It's not you. I've always been an Eclipse guy. Netbeans was to heavy on my machine back in the day. I've only stuck with it because I am very familiar with it. I'm going to switch to Netbeans on my next project because I feel I've been missing out on a lot.

comment 13y ago · link · parent

I think it does matter. In the Netherlands you are able to vote right wing without the religion, or even vote on a religious left wing party. There are party differences between how we should handle a lot of different issues. It is easier to find a party you agree with.

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

I always find this a bit weird, you only get to choose between two parties. The difference with China doesn't seem that big, they only get to vote on one party less.

comment 13y ago · link · parent

This is not about dogs on the street, it is about the police entering someones home and shooting the dog. In a lot of those cases the police was there without any good reason.

comment 13y ago · link · parent

Untraceable money and gambling, you're going to be rich!

comment 13y ago · link · parent

> Wherever you work, whatever you do, you have to trust the people you work with for that relationship to be ongoing and productive (i.e. staying out of court)

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

of course :). This seems to be the book to which the code belongs http://www.amazon.com/Climbing-Mount-Improbable-Richard-Dawk...

comment 13y ago · link · parent

I would really like SQL to be database independent.
1234