ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. * mixfix41 joined #java
  2. * michele joined #java
  3. * beastie joined #java
  4. * T-X joined #java
  5. * skum joined #java
  6. * skum joined #java
  7. * kusanagi joined #java
  8. jreicher Oh, since UML just got mentioned, I have a dumb question: how, just for your own use, would you document a really complicated type hierarchy that you've written?
  9. jreicher I would turn to UML because it's what I know, but it's been ages since I've looked at modern techniques.
  10. cheeser i would happily use UML's class diagrams for that. UML is actually great. it's all the ceremony that grew up around it.
  11. cheeser UML diagrams are used all the time in documentation, presentations, etc. look at documentation on, say, network connection and protocol negotiation.
  12. Drixtan each time I write some analysis documents, I include UML and people LOVE it
  13. * kusanagi joined #java
  14. jreicher Good to hear. I'm still quite fond of it (for type hierarchies in particular)
  15. Para If the structure is stable, UML is fine.
  16. Para There's also a javadoc extension somewhere which can autogenerate UML for class hierarchies as part of the class documentation and embed it into the docs.
  17. Para So that's one way; actually write the Javadocs and use that extension on top (if it still exists and works, of course) :)
  18. Para https://github.com/talsma-ict/umldoclet this one seems to be up-to-date and active
  19. javabot Para's title: "GitHub - talsma-ict/umldoclet: Automatically generate PlantUML diagrams in javadoc · GitHub"
  20. Para ~jep 467
  21. javabot 'JEP 467: Markdown Documentation Comments' can be found at http://openjdk.java.net/jeps/467
  22. nevet JEP 467: Markdown Documentation Comments
  23. * pebble joined #java
  24. jreicher I worry that I would go to the trouble of learning how to use a tool like that, and then it would crash on code. The hierarchy is really, really not simple.
  25. jreicher Or if not crash, then maybe still generate something unpleasant.
  26. Para There's one easy way to find that out.
  27. Drixtan I find UML interesting when it shows only the parts of what I am describing: an UML of a whole system is kind of flooding the reader with too much boxes and it becomes hard to follow, or even render at that point. Generation is great for small systems, but at the end, I think the power of UML is to describe something at a high level, not to fully document a system. It adds to the documentation imo. A good example of what I am trying to convey here is when you
  28. Drixtan are looking for "design patterns"; they usually come with an UML diagram to explain only that part.
  29. jreicher One of the things I like about UML is the division between structure and behaviour. I think it's really important to cut away the state change to understand a system's structure.
  30. * hwpplayer1 joined #java
  31. Para Drixtan: which is why I nowadays only do exclusively https://c4model.com/ for architecture stuff
  32. nevet Home
  33. Para and obviously not manually but with https://github.com/plantuml-stdlib/C4-PlantUML
  34. nevet GitHub - plantuml-stdlib/C4-PlantUML: C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
  35. javabot Para's title: "GitHub - plantuml-stdlib/C4-PlantUML: C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures · GitHub"
  36. Para I should probably blog about how to efficiently build composable C4 diagrams with that. There's a few import tricks one can do to have subsystems etc. in their own diagrams with proper links etc.
  37. Drixtan Para: I didn't know about C4, thank you for sharing. If you happen to write that blog post, I am interessted to get the URL.
  38. Para Drixtan: https://arc42.org/ for the wordy part
  39. nevet arc42
  40. Para Also I don't have a blog because as a true enginöör I'm overcomplicating the platform. I've compared it to what nevet is for dreamreal , I have the most awesome single-node infra setup for the blog and it's missing frontend ;D
  41. Drixtan one day, one day... ;)
  42. deebo there was some okayish plugin for idea to generate plantuml from database schemas, types etc
  43. Para yeh, and it works directly with the linked c4-plantuml
  44. * leppard joined #java
  45. * Inline joined #java
  46. * LtHummus joined #java
  47. * MikeBux joined #java
  48. * LtHummus joined #java
  49. * gas51627 joined #java
  50. * MikeBux joined #java
  51. * jreicher joined #java
  52. * leppard joined #java
  53. dreamreal jreicher: I've used UML in my books, mostly because the publishers asked for it specifically; a complex type hierarchy ... is unfortunate. I don't think UML actually HELPS, but it CAN document such things.
  54. dreamreal "See this snarled rat's nest of a class hierarchy? UML and plantuml can organize it somewhat to make it less rat's-nest-ier. Okay, next topic..."
  55. * jonp joined #java
  56. * jonp` joined #java
  57. dreamreal Para: https://github.com/nooga/xsofy
  58. nevet GitHub - nooga/xsofy: Roguelike that names itself each run. WIP
  59. javabot dreamreal's title: "GitHub - nooga/xsofy: Roguelike that names itself each run. WIP · GitHub"
  60. * jonp joined #java
  61. * pr070cal joined #java
  62. * hwpplayer1 joined #java
  63. * Fiji joined #java
  64. * jonp joined #java
  65. * jamezp joined #java
  66. * Ragnor joined #java
  67. * gildarts joined #java
  68. * GreenResponse joined #java
  69. DoofusCanadensis "names itself each run"? the heck is that supposed to mean?
  70. dreamreal it makes up a name every run
  71. dreamreal "the goblet of inconsequence" first, then "the chalice of goblets" second run, etc etc etc
  72. * stfstfm_ joined #java
  73. * Henryx_ joined #java
  74. * MikeBux joined #java
  75. * X-Scale joined #java
  76. * ferdna joined #java
  77. * Aedil joined #java
  78. * ChaiTRex joined #java
  79. * stfstfm joined #java
  80. * ussr1917 joined #java
  81. * stfstfm_ joined #java
  82. * MikeBux joined #java
  83. * jink joined #java
  84. * stfstfm joined #java
  85. * ChaiTRex joined #java
  86. * Inline joined #java
  87. * leppard joined #java
  88. * Yaqk-BEWS joined #java
  89. * mwnaylor joined #java
  90. * stfstfm_ joined #java
  91. * unit86 joined #java
  92. * X-Scale joined #java
  93. * MikeBux joined #java
  94. * hwpplayer1 joined #java
  95. * kathadris joined #java
  96. * mindCrime joined #java
  97. * skum joined #java
  98. * skum joined #java
  99. * hwpplayer1 joined #java
  100. * jreicher joined #java
  101. * skum joined #java
  102. jreicher I'm quite looking forward to getting a diagram for my type hierarchy in the end. The only reason I haven't done it yet is I'm still working on it, but I think a diagram will be very useful when it's done, even though it's complicated.
  103. * skum joined #java
  104. * Etoxiuq joined #java