ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. Bombe Casting for me always means that I fucked up the data model somewhere.
  2. Bombe (Exceptions apply for basic utility/library code, or interactions with other APIs.)
  3. Para Builder hierarchies have an use for casting as well.
  4. jreicher Bombe: it's not an explicit cast. As I said the return type of the method is non-covariant. That might be a nice way of "evidencing" that it's not a screw up, but an (unusual) way of expressing a constraint I want the compiler to check.
  5. Para I document my intentional casts with Class#cast()
  6. jreicher Interesting. Not familiar with that syntax.
  7. jreicher Bombe: did you mean to write Class#cast()? I assumed it was a syntax I didn't know, but I can't find anything on that.
  8. jreicher Sorry, Para ^
  9. Para yes
  10. Para That's how methods are generally referenced in javadocs and other such :P
  11. Para Classname#methodname(Param1,Param2)
  12. Para https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#cast(java.lang.Object)
  13. nevet Class (Java SE 25 & JDK 25)
  14. Para That's also useful because it throws in place, so the wrong type doesn't go on an adventure through execution flow.
  15. jreicher Oh, that's what you mean. OK. But an upcast is not actually a cast in this sense.
  16. jreicher Nothing is done at runtime.
  17. dreamreal Lore (https://lore.org/) looks interesting but the reference implementation using dynamo means NEVERRRRRRRR
  18. nevet Learn about Lore: next-generation open source version control
  19. javabot dreamreal's title: "Lore | Next-Generation Open Source Version Control - Lore"
  20. nimaje (why do webdevs think everything has to be invisible and their html a huge mess?)
  21. Para For context, Lore is VCS for games. So excellent binary file, vendored dependencies, copyright/legally restricted parts of the whole with granular permission management etc.
  22. cheeser i think we're due for new vcs systems to vie for the crown.
  23. Para git sucks for non-text so there's space
  24. cheeser git isn't great for usability so there's space. :)
  25. ernimril you prefer sourcesafe? or subversion?
  26. cheeser bitkeeper for life!
  27. Para email!
  28. fizzie Perchance Perforce.
  29. ernimril "oh, my quota is full, lets just send a large (several MB) to new zeeland, It will bounce in a few days..." :-) Sadly it does not work that way anymore
  30. jreicher https://darcs.net/
  31. jreicher Never used it, but always wished I had
  32. NeXeN i once tried to make a version control system, and failed
  33. jreicher By the time I started using version control, subversion was becoming popular, but I decided to start with RCS. I'm very glad I did because it showed me how hard the problem is to solve, and what a good (albeit incomplete) solution looks like. It was a very "clean" introduction to the space.
  34. NeXeN i used cvs then git
  35. NeXeN i wasn't on the bandwagon at any time, i sort of had to learn it because it was becoming the standard
  36. jreicher I'd be surprised if anyone with "taste" is on the bandwagon. Git is not perfect.
  37. jreicher I particularly hate the porcelaine.
  38. jreicher porcelain
  39. jreicher If it weren't for the decent quality of the various frontends it probably wouldn't have taken off. Ironically it might be the scriptability of the command line that enabled them to emerge. I've never really checked the history.