ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. * bullshark joined #java
  2. * ChaiTRex joined #java
  3. * raj joined #java
  4. * hwpplayer1 joined #java
  5. * Flow joined #java
  6. * hwpplayer1 joined #java
  7. * m joined #java
  8. * hwpplayer1 joined #java
  9. NeXeN yeah, i got the plugin. it was weird, no syntax highlighting at all
  10. * michele joined #java
  11. * Zapek joined #java
  12. * five618480339176 joined #java
  13. * ramontjunior1 joined #java
  14. * deavmi joined #java
  15. * bullshark joined #java
  16. * hwpplayer1 joined #java
  17. * Zapek joined #java
  18. * pebble joined #java
  19. * PocketKiller joined #java
  20. * svm_invictvs__ joined #java
  21. * BSaboia joined #java
  22. * pebble joined #java
  23. * handicraftsman joined #java
  24. * ForeverDreaming joined #java
  25. * iusr joined #java
  26. * Cae2 joined #java
  27. * dob1_ joined #java
  28. * X-Scale joined #java
  29. * leppard joined #java
  30. * kreechy joined #java
  31. * fgarcia_ joined #java
  32. * fgarcia_ joined #java
  33. * MikeBux joined #java
  34. * hwpplayer1 joined #java
  35. * sa02irc joined #java
  36. * fgarcia joined #java
  37. * fgarcia_ joined #java
  38. * khargosh joined #java
  39. * mwnaylor joined #java
  40. * Cyp joined #java
  41. * GreenResponse joined #java
  42. * Solstice_21 joined #java
  43. * troydm joined #java
  44. * genpaku joined #java
  45. * Pixi` joined #java
  46. * Betal joined #java
  47. * HamAdams joined #java
  48. * enoq joined #java
  49. enoq am I the only one struggling with spring security? I find myself having to debug into running source code to figure out how to properly implement their primitives
  50. Para Yeah it can be a chor(tl)e. Use AI to get one working setup and forget it.
  51. * creechy joined #java
  52. * bionade24 joined #java
  53. * Adrian35 joined #java
  54. deebo at least in spring boot it's quite easy, you just have to find the right extension points with minimal "custom code", we have a custom login + oauth + saml logins in the same app using the same authorities and it works nicely
  55. * leppard joined #java
  56. * jamezp joined #java
  57. NeXeN enoq: is it difficult to think in filter chains ?
  58. NeXeN honestly i like spring security. but the filter chains get confusing. and yeah deebo, customer filter, provider, or decoders are pretty coo
  59. deebo read the docs / use AI (and ask for references) to try to find the correct way, way too easy to do things in a way that works, but is still wrong and will cause issues some time in the future
  60. NeXeN i am not sure i'd use AI. security is kinda important
  61. deebo like i just noticed if you inject any webclient.Builder variant and build it, the default connection factory for httpcomponents5 creates a 5 per route capped connection pool at each built client
  62. NeXeN i asked an LLM to add javadoc comments to some code. i didn't pay attention, i figured easy thing. i don't vibe code so i didn't realize the dangers. but every one of the controllers it touched had it's cors policy set to allow anything/slut mode
  63. deebo that's why you verify and don't trust it blidnly, it can just churn through a lot of pointless experimenting and typing in minutes
  64. NeXeN yeah, you gotta customize connection pools. i guess back when they first designed it they set it very low on the pool size
  65. NeXeN you can setup a web client config and return a pooling connection manager and you can set it's max connection per route and total
  66. NeXeN deebo: that's kind of an interesting way to look at it. i guess maybe that's my best use, i'll ask to look at what a config file should look like or whatever, and get ideas
  67. deebo they offer no "proper" extension point for the http connection pool, which is the annoying part
  68. deebo you have to create a custom connection factory that's shared and always provides the same factory using the same pool
  69. * Solstice_21 joined #java
  70. * dgregory joined #java
  71. NeXeN PoolingHttpClientConnectionManager wow what a mouthful
  72. * dgregory joined #java
  73. Para re: my complaint about all-the-patterns in hc4...
  74. deebo yeah have to see if there's something else to try with more sensible defaults etc, hc5 even does retries by default
  75. * Inline joined #java
  76. NeXeN i don't know it's internals and i just woke up haven't had coffee so the code still looks like squiggle marks to me. but using those patterns unlocks a way of doing things that you don't get without
  77. NeXeN custom factories are actually really great when you think about it. years ago it was not so easy to get such a thing without a lot of work
  78. Para JDK's SPI is somewhat underutilized mechanism but actually great.
  79. * aduke2704 joined #java
  80. * erbium joined #java
  81. * Adrian35 joined #java
  82. * erbium joined #java
  83. * Skynx joined #java
  84. * Adrian35 joined #java
  85. * Cae2 joined #java
  86. * iusr joined #java
  87. enoq NeXeN: filter chains isn't the problem, it's things like figuring out why your custom authentication filter does not save your session to redis, stepping through base classes, debugging which filter chains are active and what beans were injected into those
  88. * ramontjunior joined #java
  89. enoq plus all the callbacks that you want/need to interact with to make use of built in features like throttling
  90. enoq most of the stuff you find is just about very standard backend applications (form login, etc) which no one really writes anymore
  91. enoq it being different from normal spring also does not help (don't use @Service for filters for instance, do manual DI)
  92. enoq to me at least it feels like I can't use this stuff just from a quick glance over the APIs, I kinda need to read source code
  93. * Adrian35 joined #java
  94. * SJrX joined #java
  95. * leppard joined #java
  96. * five618480339176 joined #java
  97. * svm_invictvs joined #java
  98. NeXeN i mean it's a problem with the pattern, yes, and para was pointing out the over-reliance on pattern conventions
  99. NeXeN you can't glance at a complex pattern and grasp it quickly, you have to learn the pattern and then it becomes intuitive how to debug it. and i struggle with it, i know the pain
  100. NeXeN so i suppose their docs have fallen short and their design is non-intuitive to the man on a mission
  101. NeXeN i understand it well now, but there was a day when i was in hell. that's the problem with making something that stretches all the way from heaven to hell. you end up in both places, usually hell first. but once you get the hang of it, it's not too bad. and yeah i read the source too often times because it's easier for me
  102. NeXeN not sure i've gotten to heaven yet, but when you think about all the things you had to do before to get the type of flexibility with pretty good performance, it's not a bad design it's just one with a grand scope which makes it hard to glance at and figure out what to do
  103. NeXeN often times i only come across it when something is wrong and hard to fix, so i have to tell myself that i shouldn't let my point of view spoil what is really going on. i hated it for all the wrong reasons in the beginning
  104. * m joined #java
  105. * hwpplayer1 joined #java
  106. * skum joined #java
  107. * Aison joined #java
  108. * erbium joined #java
  109. * ramontjunior joined #java
  110. * vancz joined #java
  111. * vancz joined #java
  112. * metalmaniac joined #java
  113. * PocketKiller joined #java
  114. * handicraftsman joined #java
  115. * llanhmock joined #java
  116. * akaWolf1_ joined #java
  117. * vancz_ joined #java
  118. * A_Dragon joined #java
  119. * polyrob_ joined #java
  120. * sailorCa- joined #java
  121. * jamezp joined #java
  122. * viju joined #java
  123. * lcja joined #java
  124. * redj joined #java
  125. * [twisti] joined #java
  126. * dmlloyd joined #java
  127. * digicyc joined #java
  128. * summerisle joined #java
  129. * sbalmos joined #java
  130. * Chronos joined #java
  131. * CygniX joined #java
  132. * JazzJackalope91 joined #java
  133. * kathadris joined #java
  134. * LtHummus joined #java
  135. * bullshark joined #java
  136. * Ragnor joined #java
  137. * Solstice_21 joined #java
  138. * bullshark joined #java
  139. * Solstice21 joined #java