Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've mentioned this on HN before, but I remember seeing some code years ago that had:

   static final String HTTP = "http";
   static final String COLON = ":";
   static final String SLASH = "/";

   String url = HTTP + COLON + SLASH + SLASH + ....;
Which I guess isn't wrong, but isn't right either :-)


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: