Info

Login

Channels

APIs

Credits

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

« 2021-03-06

2021-03-07

2021-03-08 »

Nick Message Date
DataComputist [DataComputist!~lumeng@50.43.26.251] has joined ##java [12:07]
Techcable [Techcable!~Techcable@168.235.93.147] has joined ##java [12:11]
Alina-malina [Alina-malina!~Alina-mal@unaffiliated/alina-malina] has joined ##java [12:27]
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-183-39.qld.foxtel.net.au] has joined ##java [12:29]
MrFlibble parted the channel: [12:49]
mindCrime [mindCrime!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java [12:56]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [01:16]
forgottenone [forgottenone!~forgotten@176.42.24.161] has joined ##java [01:48]
SirMangler [SirMangler!~SirMangle@host31-50-223-230.range31-50.btcentralplus.com] has joined ##java [01:51]
Fr1nge [Fr1nge!~Thunderbi@176.88.74.102] has joined ##java [01:55]
ornxka [ornxka!~ornxka@unaffiliated/ornx] has joined ##java [02:25]
mindCrime_ [mindCrime_!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java [02:41]
ADG1089__ [ADG1089__!~aditya@122.163.167.99] has joined ##java [02:53]
AmVarPG [AmVarPG!~amvarpg@pool-100-36-155-137.washdc.fios.verizon.net] has joined ##java [02:55]
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java [02:58]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [03:07]
xa0s_ [xa0s_!xa0s@sdf.org] has joined ##java [03:15]
sleepingforest [sleepingforest!~sleepingf@unaffiliated/sleepingforest] has joined ##java [03:29]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [03:36]
Jantz [Jantz!~IceChat95@118-93-24-233.dsl.dyn.ihug.co.nz] has joined ##java [03:50]
mindCrime_ [mindCrime_!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java [03:54]
gelignite [gelignite!~gelignite@55d439d1.access.ecotel.net] has joined ##java [03:54]
Rashad [Rashad!~textual@2a01:9700:142d:4f00:246a:56ea:8085:b8b3] has joined ##java [04:13]
sleepingforest [sleepingforest!~sleepingf@unaffiliated/sleepingforest] has joined ##java [04:25]
yawkat [yawkat!~yawkat@cats.coffee] has joined ##java [04:44]
istlf [istlf!istlf@gateway/vpn/mullvad/istlf] has joined ##java [04:47]
Jantz_ [Jantz_!~IceChat95@118-93-24-233.dsl.dyn.ihug.co.nz] has joined ##java [04:48]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [04:49]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [04:54]
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java [04:57]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [04:57]
Rashad [Rashad!~textual@2a01:9700:142d:4f00:4983:7bec:751:419a] has joined ##java [04:59]
bamdad_ [bamdad_!~bamdad@gateway/tor-sasl/bamdad] has joined ##java [05:17]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [05:20]
KidBeta_ [KidBeta_!~Kidbeta@hpavc/kidbeta] has joined ##java [05:22]
forgottenone [forgottenone!~forgotten@176.42.24.161] has joined ##java [05:28]
teralaser [teralaser!~tera@unaffiliated/teralaser] has joined ##java [05:28]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [05:32]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [05:32]
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-183-39.qld.foxtel.net.au] has joined ##java [05:33]
mizi_ [mizi_!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java [05:37]
Rashad [Rashad!~textual@2a01:9700:142d:4f00:940:9268:b208:6305] has joined ##java [05:47]
zkxs [zkxs!~zkxs@ip70-178-76-125.ks.ks.cox.net] has joined ##java [05:52]
SirMangler [SirMangler!~SirMangle@host31-50-223-230.range31-50.btcentralplus.com] has joined ##java [05:53]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [05:59]
zkxs parted the channel: [06:00]
MGD [MGD!~igloo@host-92-6-150-5.as43234.net] has joined ##java [06:14]
Rashad [Rashad!~textual@2a01:9700:142d:4f00:bdec:efbb:b24d:f7e] has joined ##java [06:18]
nebulae [nebulae!~nebulae@adsl-236.176.58.224.tellas.gr] has joined ##java [06:19]
sincorchetes [sincorchetes!~sincorche@fedora/sincorchetes] has joined ##java [06:26]
sincorchetes Hi, I have a problem with this code: http://pastie.org/p/5CANiKgfvs3csfMA4s3S77 when I type 8 for example, It request always a number. However, If I put num1<7, that's works, but It does not have logical [06:27]
Jantz [Jantz!~IceChat95@2407:7000:8d04:100:95bd:29b4:3169:3f8e] has joined ##java [06:35]
sincorchetes ok, I understand [06:39]
sincorchetes thanks :D [06:39]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [06:48]
rmacd [rmacd!~rmacd@unaffiliated/rmacd] has joined ##java [07:11]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [07:16]
muhaha [muhaha!59b09477@gateway/web/cgi-irc/kiwiirc.com/ip.89.176.148.119] has joined ##java [07:27]
AndroidD_ [AndroidD_!~AndroidDA@cpe-172-193-183-39.qld.foxtel.net.au] has joined ##java [07:47]
db [db!uid18678@gateway/web/irccloud.com/x-qxwvkmorysvaluet] has joined ##java [07:48]
Rashad [Rashad!~textual@2a01:9700:142d:4f00:bdec:efbb:b24d:f7e] has joined ##java [07:56]
dillinger [dillinger!~dillinger@unaffiliated/dillinger] has joined ##java [07:57]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c72b9567190c92979cea572a.dip0.t-ipconnect.de] has joined ##java [08:09]
linext [linext!~linext@pool-108-53-128-75.nwrknj.fios.verizon.net] has joined ##java [08:15]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [08:15]
MrFlibble [MrFlibble!Rimmer@94.14.182.161] has joined ##java [08:20]
mizi_ [mizi_!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java [08:22]
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-183-39.qld.foxtel.net.au] has joined ##java [08:30]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [08:31]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [08:38]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [08:42]
fax [fax!~quassel@unaffiliated/fax] has joined ##java [08:43]
kanupatar [kanupatar!74444abe@116.68.74.190] has joined ##java [08:44]
lemonsparrow [lemonsparrow!2be6b4e6@43.230.180.230] has joined ##java [08:46]
lemonsparrow is there a way to simplify/shortify this snippet ? https://pastebin.com/VXuhGSAB [08:46]
lemonsparrow parted the channel: [08:50]
TimeTrap [TimeTrap!~TimeTrap@2601:44:c280:def:4149:3bdd:a7b:c500] has joined ##java [08:53]
lemonsparrow [lemonsparrow!2be6b4e6@43.230.180.230] has joined ##java [08:56]
lemonsparrow how can i shorten this snippet of code -> https://pastebin.com/TDnc84bD TIA [08:56]
mbooth lemonsparrow: Doesn't look like it needs shortening to me. Are we playing golf? :-) [09:00]
mbooth lemonsparrow: Oh wait you don't need line 11 "if (!ciq)" because you already ciq is false [09:01]
mbooth *already know [09:01]
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java [09:02]
lemonsparrow mbooth well that meant if line 10 couldn't fetch it, then go for kensho ! [09:02]
mbooth Ah it could change on line 10 [09:03]
lemonsparrow does that make sense .. thats what the flow is. [09:03]
mbooth lemonsparrow: So, what is your objective here? [09:03]
lemonsparrow get both ciq and duns eventually... the only way to fetch duns is matchingAPI(args) and the only way to fetch ciq is either via duns (using beckers) or via kensho (if no duns) [09:04]
lemonsparrow this snippet runs for every record for which I need to fetch ciq and duns [09:04]
lemonsparrow if there is already both, do nothing [09:05]
lemonsparrow so firstly I check if there is ciq or not (thats the parent if else) [09:05]
lemonsparrow mbooth hope that make sense. [09:06]
ADG1089__ [ADG1089__!~aditya@122.163.167.99] has joined ##java [09:08]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [09:08]
mbooth lemonsparrow: Maybe you can shorten it: https://pastebin.com/Sn8dGJNS [09:10]
mbooth Is this equivilent? My head compiler is not very good [09:11]
mbooth lemonsparrow: I'm still not clear what your objective is though [09:12]
mbooth If this is a microoptimising, don't bother [09:12]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [09:13]
yawkat even shorter: if(c&d)return;d=matchingAPI(a);if(di&!c)c=beckers(a);if(!c)kensho(); [09:13]
yawkat youre welcome [09:13]
lemonsparrow thanks both [09:14]
mbooth yawkat: Right-click, abstract to new method f(), then simply "f();" :-p [09:14]
yawkat genius. [09:14]
Harlin [Harlin!~Harlin@c-24-128-8-53.hsd1.co.comcast.net] has joined ##java [09:14]
lemonsparrow mbooth yawkat I have an ID and for that I need to fetch corresponding ciq and duns, this may already be present in the object and so I do the check.. the pastebin has kinda psuedo code [09:14]
mbooth lemonsparrow: Okay, but what is your goal in making it shorter? If the code does what you expect, then it's correct. [09:15]
lemonsparrow mbooth just wasn't sure if it was repeating any checks and if I could enhance the code (shorten) [09:16]
lemonsparrow in both your code, I need to check if d (duns) is already presend before doing d=matchingAPI(a); [09:17]
lemonsparrow at line 3 https://pastebin.com/Sn8dGJNS [09:18]
mbooth ok [09:18]
lemonsparrow if(c&d) [09:19]
lemonsparrow return; [09:19]
lemonsparrow if (!d) [09:19]
lemonsparrow d=matchingAPI(a); [09:19]
lemonsparrow if(di&!c) [09:19]
lemonsparrow c=beckers(a); [09:19]
lemonsparrow if(!c) [09:19]
lemonsparrow kensho(); [09:19]
mbooth lemonsparrow: Please don't paste here [09:19]
lemonsparrow I think this makes sens mbooth what say ? [09:19]
lemonsparrow mbooth sorry [09:19]
mbooth So matchingAPI(args) is not idempotent? [09:19]
lemonsparrow this is just pseudo code as i said. [09:19]
mbooth lemonsparrow: Then go and write some actual code :-) [09:20]
lemonsparrow hehe sure [09:20]
lemonsparrow mbooth final https://pastebin.com/EUbQSQYH [09:20]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [09:28]
ralinux [ralinux!~sajebull@37.156.191.196] has joined ##java [09:36]
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java [09:41]
dreamreal [dreamreal!~jottinger@unaffiliated/dreamreal] has joined ##java [09:43]
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java [09:44]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [09:44]
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java [09:53]
Raging_Hog [Raging_Hog!~heikki@82-181-38-176.bb.dnainternet.fi] has joined ##java [10:03]
ruurd [ruurd!~ruurd@2a02:a460:19a:1:85de:e7d4:b1e3:16be] has joined ##java [10:18]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [10:29]
marciocg [marciocg!~marciocg@2804:1b3:6180:256a:21b:b9ff:feeb:5e09] has joined ##java [10:30]
nkz [nkz!~nkz@31.223.129.108] has joined ##java [10:40]
Christofosho [Christofosho!~christofo@unaffiliated/christofosho] has joined ##java [10:44]
linext [linext!~linext@pool-108-53-128-75.nwrknj.fios.verizon.net] has joined ##java [10:49]
average [average!uid473595@gateway/web/irccloud.com/x-fdaougdbywaskcjc] has joined ##java [10:57]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [10:57]
j [j!jess@freenode/staff/jess] has joined ##java [11:00]
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java [11:01]
ADG1089__ [ADG1089__!~aditya@122.163.167.99] has joined ##java [11:17]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [11:29]
EveryOS [EveryOS!uid454739@gateway/web/irccloud.com/x-vfvmmiawtvxlvpyq] has joined ##java [11:34]
Betal [Betal!~Betal@unaffiliated/betal] has joined ##java [11:53]
EgonX [EgonX!~Egon@2601:2c6:47f:87a8:c16d:3a8:9d47:948d] has joined ##java [12:04]
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java [12:09]
ffwacom [ffwacom!sid36937@gateway/web/irccloud.com/x-pbxkkfcqiqiaiwqo] has joined ##java [12:18]
Harmon [Harmon!sid15992@gateway/web/irccloud.com/x-zuisxfqbimhkqoxl] has joined ##java [12:18]
angular_mike [angular_mike!sid45533@gateway/web/irccloud.com/x-alshzfmcbfugtgsj] has joined ##java [12:18]
snadge [snadge!snadge@unaffiliated/snadge] has joined ##java [12:18]
jakesyl [jakesyl!sid56879@gateway/web/irccloud.com/x-dbzehdhvocdorzdc] has joined ##java [12:18]
kutenai [kutenai!sid80151@gateway/web/irccloud.com/x-knferabspoqiprjf] has joined ##java [12:18]
astroanax [astroanax!astroanax@gateway/shell/ircnow/x-gpyienxlrgzmvnpq] has joined ##java [12:18]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [12:18]
yn [yn!~yano@freenode/staff-emeritus/yano] has joined ##java [12:18]
nickb [nickb!sid293439@gateway/web/irccloud.com/x-gtwkkkjybrbzuepp] has joined ##java [12:18]
CustosLimen [CustosLimen!sid53872@gateway/web/irccloud.com/x-vjdlhiwypojxlzqb] has joined ##java [12:18]
altendky [altendky!sid135382@gateway/web/irccloud.com/x-zridfidykasbnymh] has joined ##java [12:19]
mexen_home [mexen_home!~mexen@165.56.182.213] has joined ##java [12:19]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [12:19]
comrad [comrad!~quassel@holarse/core/comrad] has joined ##java [12:19]
vqrs [vqrs!~vqrs@learnprogramming/regular/vqrs] has joined ##java [12:19]
KamelReds [KamelReds!~KamelReds@kepler.whatbox.ca] has joined ##java [12:19]
dumptruckman [dumptruckman!dumptruckm@2600:3c02::f03c:91ff:fe6e:2cfd] has joined ##java [12:19]
noahmg123 [noahmg123!sid89117@gateway/web/irccloud.com/x-aogrezfulakrzciw] has joined ##java [12:19]
CheckYourSix [CheckYourSix!~quassel@unaffiliated/checkyoursix] has joined ##java [12:19]
CheckYourSix_ [CheckYourSix_!~quassel@unaffiliated/checkyoursix] has joined ##java [12:20]
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java [12:21]
noahmg123 [noahmg123!sid89117@gateway/web/irccloud.com/x-khbgsizyeeqfchhk] has joined ##java [12:21]
jink [jink!mrjink@chat.jink.net] has joined ##java [12:23]
chris64 [chris64!~chris@unaffiliated/chris64] has joined ##java [12:23]
sudomann_ [sudomann_!sudomann@gateway/vpn/mullvad/sudomann] has joined ##java [12:36]
neksword [neksword!nekswordma@gateway/shell/matrix.org/x-gxeiloeenksomitl] has joined ##java [12:38]
mindCrime_ [mindCrime_!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java [12:42]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [12:43]
hsiktas[m] [hsiktas[m]!hsiktasmat@gateway/shell/matrix.org/x-cyaabyhfuyvoxqpo] has joined ##java [12:44]
_lucifer_ [_lucifer_!sid308373@musicbrainz/user/amCap1712] has joined ##java [12:47]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [12:49]
ADG1089__ [ADG1089__!~aditya@122.163.167.99] has joined ##java [12:51]
TideFN [TideFN!~TideFN@2601:cb:8280:9520:3d6b:7fed:c18f:3de4] has joined ##java [12:52]
DoofusCanadensis [DoofusCanadensis!kenrachyns@gateway/shell/matrix.org/x-rhkmlnptlcejhpxi] has joined ##java [01:01]
awaxa [awaxa!awaxamatri@gateway/shell/matrix.org/x-buwvvjsspsykxzlg] has joined ##java [01:06]
long4mud [long4mud!~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com] has joined ##java [01:10]
nkz Hey guys. I need help, I am stuck on this for hours. I have a simple rest api spring boot app. Nothing fancy. Everything works, however, when I try to run simple hello world test, I get a stack overflow with ch.qos.logback.classic.spi.ThrowableProxy.<init> Now, I understand this means nothing, but where do I start debugging this? Should I remove one dependency by another? Should I try older versions of dips? How do you debug things when google shows you nothing? [01:14]
yawkat put a breakpoint there [01:15]
nkz Well, breakpoint is never reached because stack overflow happens before a test is even run. [01:17]
Betal hi, any idea how I can use spring jsonPath with Long? in testing I run, .andExpect(jsonPath("$.id", Matchers.is(idToUpdate))), test fail with Expected: is <1L> but: was <1>, looks so weird to cast there, if I use `((int) (long) idToUpdate))` it "works" [01:22]
mexen_home [mexen_home!~mexen@165.56.182.213] has joined ##java [01:24]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [01:27]
nova[m] [nova[m]!nova99matr@gateway/shell/matrix.org/x-npmhrtkzkpmngjwj] has joined ##java [01:28]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [01:29]
bourbon [bourbon!ragersynap@gateway/shell/matrix.org/x-ndorfvedzvuohogz] has joined ##java [01:34]
WillPittenger [WillPittenger!willpitten@wikimedia-commons/Will-Pittenger] has joined ##java [01:46]
Jantz [Jantz!~IceChat95@118-93-24-233.dsl.dyn.ihug.co.nz] has joined ##java [01:47]
Jantz_ [Jantz_!~IceChat95@118-93-24-233.dsl.dyn.ihug.co.nz] has joined ##java [01:49]
muhaha [muhaha!59b09477@gateway/web/cgi-irc/kiwiirc.com/ip.89.176.148.119] has joined ##java [01:55]
mexen_home [mexen_home!~mexen@165.56.182.213] has joined ##java [02:03]
Jantz [Jantz!~IceChat95@118-93-24-233.dsl.dyn.ihug.co.nz] has joined ##java [02:06]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [02:06]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [02:09]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [02:10]
Sgeo [Sgeo!~Sgeo@ool-18b98aa4.dyn.optonline.net] has joined ##java [02:14]
hnOsmium0001 [hnOsmium0001!uid453710@gateway/web/irccloud.com/x-xmymckovtyqymbmi] has joined ##java [02:19]
Haxxa [Haxxa!~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com] has joined ##java [02:19]
SirMangler [SirMangler!~SirMangle@host31-50-223-195.range31-50.btcentralplus.com] has joined ##java [02:27]
mindCrime_ [mindCrime_!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java [02:33]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [02:39]
galex-713 [galex-713!gal@portable.galex-713.eu] has joined ##java [02:46]
galex-713 Hello [02:46]
galex-713 is there a way to make constructor inheritable? [02:46]
ernimril galex-713, nope [02:48]
galex-713 oh [02:48]
galex-713 thank you [02:48]
galex-713 how do you do a non-local exit inside a java function returning nothing (such as a constructor)? [02:54]
fizzie Type `return;` with no expression for the return value. [02:55]
galex-713 oh ok [02:55]
galex-713 thanks [02:55]
sonOfRa galex-713: if you want inheritable constructor-ish things, factory pattern to the rescue [02:56]
galex-713 I?m still unsure of my design [02:56]
sonOfRa public interface ThingFactory<T extends Thing> { T create(WhatEver your, Arguments to, Your constructor); } [02:57]
Betal if you want to initialize variables from inheritance, don't we call super() constructor? [02:57]
galex-713 I wanted to know if there was a way not to do that [02:58]
galex-713 mmmh [02:58]
sonOfRa The question for "I want inheritable constructors" is usually something like "I want to build plugins, and plugins get <these things as parameters>" [02:58]
galex-713 is there a way to do a non-local exit in a constructor such as any child instance invoking this constructor using super also returns? [02:59]
sonOfRa So you'd create a factory, make your plugin system find all the factories (via SPI for example), and then those factories instantiate the plugins [02:59]
yawkat galex-713: no [02:59]
galex-713 okay [02:59]
yawkat sounds like weird design if you need this tbh [02:59]
galex-713 yes [03:00]
galex-713 I?m not used to oop [03:00]
Betal galex-713: what? childs want to run the full super constructor [03:00]
galex-713 I mean I have an abstract class whose constructor checks parameters of child classes [03:01]
Betal makes no sense in create a "static variable" that hold a value, and based on it you get out in super constructor [03:01]
Betal s/static/instance [03:01]
galex-713 yuck [03:02]
galex-713 c [03:02]
Betal galex-713: no, you mean the abstract class check its own parameters, right? [03:02]
Betal when you create the child, it should have everything the abstract have [03:03]
galex-713 Betal: uh yes I guess [03:06]
Betal galex-713: what are you really trying to do? [03:06]
galex-713 I mean I put what checks parameters in the abstract parent class, so the child class instance doesn?t have to replicate parameter checking [03:06]
galex-713 factorize command parsing [03:07]
Betal thats ok, when you call super it will check the parameters [03:07]
galex-713 but what if parameters I wrong? [03:09]
galex-713 if they?re wrong, I want super to stop everything [03:09]
galex-713 super already does error printing [03:09]
Betal sonOfRa: you mean something that when inherits, alto register itself somewhere, so can be used as "plugins" ? [03:09]
Betal s/alto/auto [03:09]
sonOfRa That's separate [03:10]
sonOfRa spi [03:10]
sonOfRa sonOfRa, spi is Service Provider Interface. Lets you drop a small text file into a jar saying "I have a class that implements this interface", then use java.util.ServiceLoader at runtime to find all implementations of that interface. See https://docs.oracle.com/javase/tutorial/ext/basics/spi.html for an intro and https://github.com/aalmiray/jipsy to make creating the service files much simpler. [03:10]
sonOfRa SPI is commonly used together with factories like this, because you need some way to pass information about the hosting application to the things you are loading, and since constructors aren't inheritable... [03:11]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [03:12]
sleepingforest [sleepingforest!~sleepingf@unaffiliated/sleepingforest] has joined ##java [03:15]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [03:18]
Jigsy` [Jigsy`!~Jigsy@unaffiliated/jigsy] has joined ##java [03:23]
sl33k [sl33k!~sl33k@host81-152-155-194.range81-152.btcentralplus.com] has joined ##java [03:46]
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java [03:56]
Xiti [Xiti!~Xiti-@unaffiliated/xiti] has joined ##java [03:57]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c72b9523190c92979cea572a.dip0.t-ipconnect.de] has joined ##java [04:00]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [04:01]
rajrajraj [rajrajraj!uid72176@gateway/web/irccloud.com/x-defbxrqkkpniuvlh] has joined ##java [04:16]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [04:18]
TimeTrap [TimeTrap!~TimeTrap@2601:44:c280:def:4149:3bdd:a7b:c500] has joined ##java [04:18]
serdar [serdar!~serdar@cgn-89-1-209-111.nc.de] has joined ##java [04:30]
Azrael_- [Azrael_-!~aweoi@51.154.62.124] has joined ##java [04:30]
Chai-T-Rex [Chai-T-Rex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java [04:30]
GlenK [GlenK!~glenk@2603-8001-2400-5cc4-0000-0000-0000-0157.res6.spectrum.com] has joined ##java [04:39]
GlenK howdy. newbie here. sort. not really. but javaish. anyway, I put some asserts into some testing code. It doesn't throw any exceptions or anything. all my tests just end up passing even though they shouldnt. [04:40]
GlenK I'm using assert wrong or something apparently. I was under the impression a failed assert would make the program bail out and give me an error [04:40]
cheeser you have to pass -ea to run with assertions enabled. [04:40]
cheeser but use junit or testng instead [04:41]
cheeser junit [04:41]
cheeser JUnit is a unit testing tool for Java. See https://junit.org/ [04:41]
cheeser testng [04:41]
cheeser cheeser, testng is a testing framework that many consider more powerful than jUnit. For more information check out their homepage http://testng.org/. [04:41]
GlenK frick [04:41]
GlenK [GlenK!~glenk@2603-8001-2400-5cc4-0000-0000-0000-0157.res6.spectrum.com] has joined ##java [04:42]
GlenK right. anyway, I'm going to have to simplify things then, or rather complicate things. [04:42]
GlenK this is for a class I'm taking, and I don't want to throw junit or even the -ea thingys in there so as to not confuse my teacher [04:43]
GlenK I'd ask dude about it, but I'm running out of time [04:43]
GlenK ha. on that note. I'm at the wrong school. I'm signed up for a web development class and all we've been learning so far is java [04:44]
GlenK am I wrong in thinking that that's just out of control [04:44]
sonOfRa Yes [04:44]
GlenK I realize java is on the back end of a lot of things... [04:44]
GlenK but still [04:44]
sonOfRa I'd say all java's really used for these days is web [04:44]
sonOfRa Unless you specifically want to learn web *frontends* [04:45]
Harlin [Harlin!~Harlin@c-24-128-8-53.hsd1.co.comcast.net] has joined ##java [04:48]
dreamreal hrmmm [04:49]
GlenK [GlenK!~glenk@2603-8001-2400-5cc4-0000-0000-0000-0157.res6.spectrum.com] has joined ##java [04:55]
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java [04:57]
javabot [javabot!~javabot@unaffiliated/javabot] has joined ##java [05:30]
dreamreal Christofosho: Look up Spring batch and things like that [05:31]
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java [05:32]
Christofosho Oh great, thank you dreamreal. Spring seems to be quite its own ecosystem! [05:34]
BeRoots [BeRoots!4d8777d2@210.119.135.77.rev.sfr.net] has joined ##java [05:34]
dreamreal it definitely is. [05:38]
chaostic [chaostic!~chaostic@73.59.209.3] has joined ##java [05:45]
puff [puff!~user@S0106d4ca6d80a83c.vs.shawcable.net] has joined ##java [05:50]
Sherpard2 [Sherpard2!~VirtualPa@51.15.196.34] has joined ##java [05:53]
galex-713 what?s maximum int in java? [06:05]
dreamreal Integer.MAX_INT should tell you (it's roughly two billion) [06:10]
dreamreal the JLS also has it [06:11]
dreamreal https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Integer.html#MAX_VALUE [06:11]
dreamreal 2^31-1 [06:11]
galex-713 [galex-713!gal@portable.galex-713.eu] has joined ##java [06:22]
ge0rgios [ge0rgios!~george@unaffiliated/anaphaxeton] has joined ##java [06:27]
Azrael_- [Azrael_-!~aweoi@51.154.62.124] has joined ##java [06:36]
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-183-39.qld.foxtel.net.au] has joined ##java [06:44]