Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2021-04-12

2021-04-13

2021-04-14 »

Nick Message Date
Sgeo_ [Sgeo_!~Sgeo@ool-18b98aa4.dyn.optonline.net] has joined ##java [01:21]
mitch0 [mitch0!~mitch@178-164-165-158.pool.digikabel.hu] has joined ##java [01:47]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [02:11]
Fr1nge [Fr1nge!~Fr1nge@176.33.138.133] has joined ##java [02:14]
istlf [istlf!~istlf@89.45.7.149] has joined ##java [02:46]
NorthwestVegan [NorthwestVegan!~Northwest@gateway/tor-sasl/northwestvegan] has joined ##java [02:48]
pohvak [pohvak!~pohvak@177.228.72.223] has joined ##java [02:50]
pohvak someone with knowledge in Spark? I'm trying to read data from .avro files stored in HDFS, but can't find a guide to read and learn about it, any clue? [02:52]
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java [02:53]
VideoGameEnjoyer [VideoGameEnjoyer!~davidv7@BSN-143-120-15.dynamic.siol.net] has joined ##java [03:02]
dqx_ [dqx_!~dqx@unaffiliated/dqx] has joined ##java [03:14]
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java [03:17]
LKoen [LKoen!~LKoen@65.250.88.92.rev.sfr.net] has joined ##java [03:17]
veegee [veegee!~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca] has joined ##java [03:22]
flying_sausages [flying_sausages!~flying_sa@95.211.180.203] has joined ##java [03:23]
zikani03 [zikani03!~zikani03@41.75.123.113] has joined ##java [03:24]
sliekas99 [sliekas99!~mantas@88.223.160.11] has joined ##java [03:29]
johnjay [johnjay!~pi@38.120.10.99] has joined ##java [03:36]
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java [03:40]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [03:41]
KeyJoo [KeyJoo!~KeyJoo@62.176.30.191] has joined ##java [03:43]
DunceCotus [DunceCotus!0188686f@1.136.104.111] has joined ##java [03:46]
DunceCotus Javaya Wireless [03:47]
pioto [pioto!~pioto@unaffiliated/pioto] has joined ##java [03:58]
zhuchj1121 [zhuchj1121!~zcj@223.75.238.149] has joined ##java [04:02]
hendursa1 [hendursa1!~weechat@gateway/tor-sasl/hendursaga] has joined ##java [04:07]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c72b9561cdce4d77de6ce0bc.dip0.t-ipconnect.de] has joined ##java [04:08]
zhuchj1121 parted the channel: [04:16]
paddyez [paddyez!~Patrick-E@wikipedia/paddyez] has joined ##java [04:30]
pioto [pioto!~pioto@unaffiliated/pioto] has joined ##java [04:33]
zikani03 hello folks, what tools are you using to monitor your java processes.. esp looking at things like a rabbitmq consumer program [04:37]
mitch0 end-users :) [04:39]
DunceCotus zikani03 like a profiler? [04:44]
Diablo-D3 d) I don't monitor my java processes [04:45]
zikani03 DunceCotus: yes, along those lines [04:46]
DunceCotus yourkits alright but its paid [04:46]
DunceCotus I wish there was a good free alternative [04:47]
yawkat theres always visualvm [04:47]
yawkat but yes, not as good as yourkit [04:47]
Jonopoly [Jonopoly!~Jonopoly@unaffiliated/jonopoly] has joined ##java [04:51]
zikani03 will look into YourKit, once tried visualvm and even glowroot but they aren't too convenient [04:54]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [04:56]
_lucifer look into JFR as well [04:56]
VideoGameEnjoyer [VideoGameEnjoyer!~davidv7@BSN-143-120-15.dynamic.siol.net] has joined ##java [05:03]
georgios [georgios!~george@unaffiliated/anaphaxeton] has joined ##java [05:03]
DunceCotus [DunceCotus!0188686f@1.136.104.111] has joined ##java [05:07]
fingo [fingo!~fingo@gateway/tor-sasl/fingo] has joined ##java [05:11]
AcTiVaTe [AcTiVaTe!~activate@host-4b6u8h.tnz1.zeelandnet.nl] has joined ##java [05:11]
istlf [istlf!~istlf@89.45.7.149] has joined ##java [05:22]
shicks255 [shicks255!~shicks255@c-73-44-67-59.hsd1.il.comcast.net] has joined ##java [05:24]
flying_sausages_ [flying_sausages_!~flying_sa@83.149.106.219] has joined ##java [05:29]
icebear2 [icebear2!~IceBear22@crunchypie.net] has joined ##java [05:31]
DunceCotus [DunceCotus!0188686f@1.136.104.111] has joined ##java [05:34]
Rashad [Rashad!~textual@91.186.241.221] has joined ##java [05:57]
[twisti] im with mitch, our most important metric is the load status of our customer tech support hotline [05:59]
computeiro [computeiro!~Wender@189.37.69.225] has joined ##java [06:15]
jackiiilong [jackiiilong!~jackiiilo@111.63.14.116] has joined ##java [06:16]
wender [wender!~Wender@189.41.232.71] has joined ##java [06:17]
EveryOS [EveryOS!uid454739@gateway/web/irccloud.com/x-ttlcjwjuiyextmhz] has joined ##java [06:20]
unsyncing [unsyncing!~unsyncing@199.229.250.38] has joined ##java [06:23]
computeiro [computeiro!~Wender@189.37.69.225] has joined ##java [06:25]
istlf [istlf!~istlf@89.45.7.155] has joined ##java [06:26]
LKoen [LKoen!~LKoen@65.250.88.92.rev.sfr.net] has joined ##java [06:34]
darkstardev13 [darkstardev13!~darkstard@c-24-21-53-33.hsd1.or.comcast.net] has joined ##java [06:38]
Bebef [Bebef!sbreit@phobos.bebef.de] has joined ##java [06:41]
FabioP so.. the big part of my spring rest api integration test is basically the db setup for loading dummy data to test to.. are there any best practice in how to go around that? should i test my tests DbInit class the does a bunch of inserts/delete before/after every test run? [06:41]
dreamreal assuming I understood the english here, yes [06:42]
FabioP [FabioP!c378570d@host-195-120-87-13.business.telecomitalia.it] has joined ##java [06:43]
FabioP ok.. thanks [06:43]
FabioP kind of a letdown to test my test test [06:46]
[twisti] FabioP: there are libraries to ease spooling up and cleaning database instances for and between testing, you can google around for your specific test framework [06:46]
Maldivia isn't that what DbInit is for? [06:47]
FabioP [twisti] i'm using spring but i didn't found anything of the sort so far [06:47]
FabioP spring boot [06:47]
dreamreal FabioP: note also that spring boot supports schema.sql and... db.sql [06:47]
dreamreal db.sql allows you to initialize your database [06:48]
FabioP yes but it's rather complex setup so i couldn't use plain sql for that [06:48]
dreamreal also see dbunit, which is designed to help with database-oriented things in tests [06:48]
dreamreal FabioP: you can't use plain sql? [06:48]
dreamreal Why not? I mean... pgdump my_database > db.sql # done [06:48]
FabioP uhm [06:49]
dreamreal (let me guess: not using postgres!) [06:49]
Maldivia ohh, dbinit vs dbunit -- me remembering wrong :D [06:49]
FabioP if you put it that way.. yes this seems much more convenient [06:49]
[twisti] theres also a library that can spool up database instances in docker containers, i think the name is 'testcontainers' [06:49]
FabioP yes unfortunately i'm not on docker yet [06:49]
FabioP i could have just dumped a pregenerated db [06:50]
FabioP thanks for the suggestions! [06:51]
Fr1nge [Fr1nge!~Fr1nge@176.33.138.133] has joined ##java [06:54]
Fr1nge [Fr1nge!~Fr1nge@176.33.138.133] has joined ##java [06:55]
Fr1nge [Fr1nge!~Fr1nge@176.33.138.133] has joined ##java [06:58]
deebo FabioP: we have tests that just start the spring context and a postgres docker container for data, the problem here is that springs @transactional doesnt work here, and over time the test runs have bloated to 60mins [07:00]
deebo for any new things we just use mockmvc to test that the rest api responds properly in different scenarios so that the tests are way faster and easier to manage [07:01]
deebo at least imo the actual rest controller should not have any logic, so they're easier to test and tests can be done on a level where @transactional tests work and are way faster [07:02]
Denyol [Denyol!6576000a@gateway/web/cgi-irc/kiwiirc.com/ip.101.118.0.10] has joined ##java [07:03]
Denyol Hi, does anyone know if there is a design pattern that describes building a wrapper object to encapsulate an object from a library to restrict the methods that are exposed by the encapsulated object [07:03]
dreamreal sure, decorator pattern [07:05]
dreamreal you can also use different interfaces for this [07:06]
Denyol I can give an example [07:06]
Denyol pastebin [07:06]
Denyol Please paste your code and any errors online. For runnable classes, try https://ideone.com/ . For general code and errors, use https://gist.github.com or https://dpaste.org/ [07:06]
dreamreal interface A { void b(); } interface C extends A { void d(); } class E implements B {} A getAnE() { return new E(); } [07:06]
dreamreal the value from getAnE() won't "expose" d() - although it can be cast. But you can also create a class F then wraps E and implements only A, not B. [07:07]
Denyol https://gist.github.com/Denyol/ee60e32265e005954fd1a53729622e4f [07:07]
Denyol I think I have done the latter [07:08]
Denyol The intent is to stop users of the object from accessing the internal Cell object and modifying it, since it isn't immutable [07:11]
Denyol It's a bit frivolous because I am the only user of the code [07:12]
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java [07:14]
FabioP deebo i'm using mockmvc to mock controllers but i keep services classes not mocked, so far i don't have issue, just had to put a @Transactional on tests that uses a deleteBy* spring data jpa method because of spring reasons [07:15]
_noblegas [_noblegas!uid91066@gateway/web/irccloud.com/x-nmdbocjlxmbwafmr] has joined ##java [07:24]
xeno_ [xeno_!~xeno@unaffiliated/xeno] has joined ##java [07:29]
stryek [stryek!uid332574@gateway/web/irccloud.com/x-obieplssqdubbqtu] has joined ##java [07:36]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [07:46]
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java [07:47]
richbridger [richbridger!~richbridg@089144204170.atnat0013.highway.webapn.at] has joined ##java [08:03]
zikani03 parted the channel: [08:04]
dec0d3r [dec0d3r!~dec0d3r@2001:8003:4860:b200:2e33:764e:2cb7:eba5] has joined ##java [08:10]
Denyol [Denyol!6576000a@gateway/web/cgi-irc/kiwiirc.com/ip.101.118.0.10] has joined ##java [08:11]
Denyol Is there a good reason to make getter methods for final fields in an immutable object? [08:11]
dreamreal consistency, discoverability [08:11]
dreamreal other programmers expect accessors, and surprising them is usually a less-than-great idea [08:12]
Denyol I see your point, but doesn't it just lead to a bloated class [08:12]
dreamreal lombok [08:13]
dreamreal dreamreal, lombok is a tooling (compiler and IDE) plugin that removes boilerplate. For example, it adds getters, setters, equals, hashCode, builders, etc for you. Works in eclipse, intellij, netbeans, javac, maven, ant, etc. https://projectlombok.org/ [08:13]
dreamreal as far as "bloated class" -- what does "bloat" mean here? In a class with twelve attributes, you would have twelve methods, that's < 1k [08:13]
shirafuno [shirafuno!~shirafuno@cpc121560-lewi23-2-0-cust793.2-4.cable.virginm.net] has joined ##java [08:13]
dreamreal the SMALLEST computer I have at home has 4G ram [08:13]
dreamreal unless you count devices like the arduino and kaiterra sensors, which don't run java [08:14]
dreamreal that 1k method size expenditure would happen once in a given classloader; have 4M instances of the class? ... 1k method ref table [08:14]
Denyol But is there something inherently wrong with exposing immutable final fields as public [08:15]
dreamreal no [08:15]
dreamreal but you asked why you would make accessors, so I told you [08:15]
dreamreal the counterargument ("bloat") is a red herring IMO [08:15]
Denyol Thats true, thank you; I see that its a best practice to make getters and setters [08:15]
dreamreal and lombok makes it trivial: @Data class A { int b,c,d,e,f,g,h,i,j,k,l,m; } // done [08:17]
dreamreal getA(), getB(), getC(), etc, all done (although @Data is for mutable classes, so you'd get more than you're asking for; you can, of course, use @Getter int a,b,c,d,e,f,g...}) [08:18]
Maldivia record A(int a, int b, int c, int d){} // :D [08:23]
dreamreal yeah but that's awful new-fangled thar [08:26]
dreamreal ... records aren't in java 11, are they? [08:26]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:26]
zeden_ [zeden_!~user@unaffiliated/zeden] has joined ##java [08:27]
Maldivia nope :/ [08:31]
sbalmos data class A(val a: int, val b: int, val c: int, val d: int) {} :P [08:33]
dmlloyd it's a lot of work to avoid hitting Alt-Insert -> Generate getter and setter :) [08:36]
dreamreal If you program with only one finger that key combo's rough [08:42]
dreamreal you're clearly an ableist [08:42]
dmlloyd mm [08:43]
sbalmos dreamreal: on-screen keyboard. :P [08:43]
dreamreal D [08:43]
dmlloyd sticky keys [08:43]
dmlloyd customizable keymap! [08:43]
dreamreal keyboards driven by eyes, yeah... you cross your eyes to hit key combinations [08:43]
sbalmos dmlloyd: that's just a can of Coke poured in the keyboard and left out in the sun [08:43]
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java [08:43]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:44]
SerialSmile [SerialSmile!~SerialSmi@78.107.92.94] has joined ##java [08:48]
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java [08:51]
moogs [moogs!~moogs@c-174-56-219-154.hsd1.ga.comcast.net] has joined ##java [08:54]
moogs What's the best place to look for HCL programming [08:55]
wedr What is HCL? [08:57]
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java [09:00]
dreamreal probably google [09:04]
istlf [istlf!~istlf@89.45.7.155] has joined ##java [09:07]
fahadash [fahadash!uid44972@gateway/web/irccloud.com/x-rzzsgfyprssqngmi] has joined ##java [09:13]
moogs Thanks @dreamreal [09:17]
moogs What is the best way to produce a list of unique values in programming? I am working on a view [09:18]
dmlloyd those are all extremely general terms [09:18]
dmlloyd are you writing a Java program? [09:19]
dreamreal moogs: errr [09:19]
dmlloyd otherwise there's #programming [09:19]
moogs I believe this is programmed in Java. [09:19]
moogs It's HCL, which uses Java [09:19]
vecnah hcl notes? [09:19]
dmlloyd in Java, a collection of unique values is called a `Set` [09:19]
dreamreal HCL is general [09:19]
dreamreal moogs: so is this a java question or an HCL question? [09:20]
moogs HCL, moving over to the general chat room [09:20]
moogs Thanks y'all. [09:20]
moogs ) [09:20]
dreamreal enjoy [09:20]
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java [09:36]
SirMangler [SirMangler!~SirMangle@host31-50-223-165.range31-50.btcentralplus.com] has joined ##java [09:45]
MatthijsH [MatthijsH!~quassel@unaffiliated/matthijs] has joined ##java [09:51]
deadbeat [deadbeat!~quassel@ipb21b465d.dynamic.kabel-deutschland.de] has joined ##java [10:04]
Ragnor [Ragnor!~Ragnor@dslb-084-062-048-099.084.062.pools.vodafone-ip.de] has joined ##java [10:05]
SirMangler [SirMangler!~SirMangle@host31-50-223-165.range31-50.btcentralplus.com] has joined ##java [10:11]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [10:14]
Sgeo [Sgeo!~Sgeo@ool-18b98aa4.dyn.optonline.net] has joined ##java [10:26]
Enissay [Enissay!~Enissay@unaffiliated/enissay] has joined ##java [10:27]
x256 [x256!~marc@i080.vpnclients.gwdg.de] has joined ##java [10:30]
amerigo [amerigo!uid331857@gateway/web/irccloud.com/x-nxarbmfdflgljuos] has joined ##java [10:33]
SagaciousZed [SagaciousZed!~harbinger@162.244.78.24] has joined ##java [10:34]
EveryOS [EveryOS!uid454739@gateway/web/irccloud.com/x-qbxrqcxxqdizzyti] has joined ##java [10:34]
Kristine86 [Kristine86!4a45dc0c@gateway/web/cgi-irc/kiwiirc.com/ip.74.69.220.12] has joined ##java [10:42]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [10:42]
tuskkk____ [tuskkk____!uid18470@gateway/web/irccloud.com/x-cioyzvstqwgxbmem] has joined ##java [10:43]
wedr oh my gosh, I just suffered from information overload. There is this part of Spring Framework, called the Spring Boot Actuators, where I would need to research how to tie the endpoints to Amazon EC2 URL registering/deregistering system (or something) that maps the actuator endpoints to newly spun-up containers to be able to do health checks. [10:48]
wedr Where do I start? I'm at a loss. [10:48]
wedr The world of devops is amazingly terrifying... [10:49]
Streusel [Streusel!~Anonymous@unaffiliated/streusel] has joined ##java [11:05]
Joel [Joel!~jjshoe@unaffiliated/joel] has joined ##java [11:14]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [11:18]
glowdemon1 [glowdemon1!~glowdemon@ptr-lshz04pvhrkkgz9yjk.18120a2.ip6.access.telenet.be] has joined ##java [11:19]
mindCrime [mindCrime!~prhodes@cpe-98-27-55-10.nc.res.rr.com] has joined ##java [11:28]
shirafuno [shirafuno!~shirafuno@cpc121560-lewi23-2-0-cust793.2-4.cable.virginm.net] has joined ##java [11:43]
tang^ [tang^!~tang^@2604:3d09:47c:f970:751a:d7b4:91:ef5] has joined ##java [11:49]
KeyJoo [KeyJoo!~KeyJoo@62.176.30.171] has joined ##java [11:50]
FabioP i would start in creating a custom actuator with dummy data, after that i would try to connect to your amazon service [11:58]
glowdemon1 [glowdemon1!~glowdemon@ptr-lshz04pvhrkkgz9yjk.18120a2.ip6.access.telenet.be] has joined ##java [12:04]
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java [12:05]
bow [bow!~johanf@c-e2b6235c.036-1-6c756c12.bbcust.telenor.se] has joined ##java [12:12]
long4mud [long4mud!~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com] has joined ##java [12:16]
DunceCotus [DunceCotus!01886c67@1.136.108.103] has joined ##java [12:22]
ScrambledRK [ScrambledRK!~RK@84-115-208-87.cable.dynamic.surfer.at] has joined ##java [12:26]