« first day (2921 days earlier)      last day (2244 days later) » 
00:00 - 17:0017:00 - 22:00

00:00
"Remove the temptation to settle for anything short of what you deserve." -Lorii Myers (source)
 
1 hour later…
01:19
morn
morn
 
5 hours later…
06:20
hello guys
In my application which is built on spring boot,I want it to run without checking cpd but pmd should run
I did like this
mvn spring-boot:run -Dcheckstyle.skip=true -Dpmd.skip=false
but cpd still runs, am I missing something?
07:05
Morning
Morning.
@VintageBeef Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
I wanted to ask you guys
Java SE is for desktop application, Java EE is for Web Application and Java ME is for Mobile Application (Android)
Am i right?
morn
@VintageBeef not really
07:16
Now Im a PHP programmer and i want to learn JAVA
i tried to find about JAVA information but i still confuse
Then you don't need to concern yourself about these
There are the same languages right?
Coding with same syntax?
oh
What about android?
It's not Java
See the room description
07:20
I'll tried to read and translate it
im not good enough with english
So android is not using same syntax?
They share much of the syntax but differ in important parts
Oh
i got it
If want to be JAVA programmer i should learn all about Java SE, EE, ME?
no
you should learn Java (at least for the first year(s))
from someone who hasn't done PHP in 12 years... Java EE is like PHP with Zend... If you start to learn Java, you don't need to know
Oh
Ok last question
@Nicktar Meh, I started from PHP and I came out alright.
07:30
about JAVA online course
@MadaraUchiha me too (at least I think, I came out alright)
Is all the same JAVA right?
@MadaraUchiha even worse, I came to PHP from VBA
So i can learn from any online course?
@VintageBeef First of all, it's Java, not JAVA.
07:31
Oh sorry
I don't know any online course... never did one (about Java)... back in my days we had books g
There is no completely translate Java book in Thailand
A very important part in learning Java (or any other programming language) is to learn english
@MadaraUchiha That's a thankless mission, everyone and their grandmother calls it JAVA. I like to imagine that people shout out the name.
07:35
The origin of creator language
it's worse when all knowledge about Java is not translate in the right way
it's hard to learn from my native language
learning from english is clearly and easier
That is true for regular books as well. I used to read books translated to my native language, but I really stranded when I was reading the Dune series. The fifth book is often hailed as the best of the six, and I found it really boring. I couldn't understand it.
until I read the English versions of the books, and then the fifth one was indeed the very best.
It turned out to be true for many more books I had read a translated copy of.
dbl
dbl
@VintageBeef you should get use to learn from english materials since the technologies are evolving so fast, also so much of variety of tech stacks and tools that are mainly documented in english.
anybody used to submit on problems in Codility?
Thank you guys
Now i'm looking for a lesson of Java
https://www.youtube.com/watch?v=grEKMHGYyns

Should i learn from this video?
Dax
Dax
08:02
Hi Guys! can you help me to understant why the result of this paste.ofcode.org/iJnyJkGrDJUsLtMbLZfwH6 is not what I expect (I expect 1 while I get 0)
@VintageBeef seems like lots of people found it useful. In the end it doesn't matter THAT much, you learn the most by trying things yourself.
08:22
@Dax Hard to explain. It is basically because both IInt and Main have a property named 'thevalue', you are not "overriding" the property in main, you are "overshadowing" it.
Try changing IInt s = new Main(); to Main s = new Main();, you will see that the output becomes 1 as you expect.
Dax
Dax
@Gimby I know if I change it I get 1, but I try to understand in which cases "overshadowing" happens
In the case that two properties or variables with exactly the same name are visible to code at the same time.
Imagine the variables to be colored pieces of paper and you stack the papers of the same color on top of each other as a rule. In your example code IInt is at the bottom and it has a red piece of paper with 'thevalue=0' written on it.
actually it is more easy to explain. theValue is 0. you pass it into j and you never do j++ or j=j+1 . so my question is why did you expect it to be 1
@Sir.Hedgehog because you completely misunderstand
dont think so, but try to persuade me
08:35
Or be silent for a moment.
as I was explaining...
Dax
Dax
:D
Because the red piece of paper of Main is now on top of the red piece of paper of IInt (urgh, need better names...), you don't see it anymore, only Main's 'thevalue=1' is visible.
So when you write a bit of code that uses the Main class exclusively, the value is 1.
However, you did not do that.
You wrote IInt s = new Main(). So you're actually saying 'no no no no, I'm more interested in what is on the pieces of paper that IInt has'. And Java obliged, it showed you 'thevalue=0' instead.
Dax
Dax
Thank you @Gimby for the simple clarification :)
nah as you can see there are two values. this.thevalue of class Main and a thevalue of class IInt. and he is intatiating an object of class IInt. so i still dont see why do you expect s.thevalue to return 1 rather than 0. first of all, @Dax learn some basic stuff about java, that takes time. e.g variable names start with small letter but any second word the first letter is capitalized.
secondly, use more defined variable names. if you would, you would be able to understand probably why it returns 0 instead of 1. gl with oop java ma friend
@Gimby so how am i wrong exactly?
dbl
dbl
omg
Dax
Dax
08:40
thank you guys!
dbl
dbl
@Sir.Hedgehog @Dax is trying to access one class member from instance of another class
this has nothing to do with the "for" cycle though
who talked about the for cycle?
dbl
dbl
I guess i misunderstood
probably -_-
@Sir.Hedgehog the code clearly states new Main(). So saying that an instance of IInt is created is already wrong.
dbl
dbl
08:42
i am a meeting sry :S
the code also clearly states that the object instatiated is IInt
No, not at all.
so except if he would do int j = this.thevalue; instead of what he did int j = s.thevalue; he will take thevalue of IInt object
the only reason why he can do IInt s = new Main(); is because the second extends the first. even though, no matter, the object is IInt. thus when grabbing thevalue is the one stored in the IInt class.
Dax
Dax
Because variables names in Java are resolved by the reference type, not the object they are referencing.
That is the difference between overriding and hiddening and I didnt know :)
thanks @Gimby for mntioning "shadowing" I just googled it
@Dax ehmm maybe i get it wrong here, but the variable is defined by the object is referenced from.
in other words, the object defines the variable not otherwise.
Dax
Dax
08:49
maybe not , where we have he same variable names in base and subClass
still even if you have the same variable names
thats how you seperate them, by knowing in which class they belong
in your case for example. s.thevalue; returns 0 because s is IInt object in which thevalue is 0. if you would have typed this.thevalue; you would have returned 1. because this. means you are referencing the object defined within the class.
Dax
Dax
:)
Your terminology is just very confusing. s is not an IIint object, it is a Main object. That is what is created. s however is declared to be an IInt type.
btw thats why it is not recommended to use same variable names
@Gimby nope.
Dax
Dax
s is not an IIint object, it is a Main object. exactly
08:53
s is an IInt object but it is just instantiated by Main which though extends IInt class
so if you would do: s.class() you would get the values methods etc of the IInt class. am i wrong here or what?
Yes, very. You can easily try it out.
give me 2 min
are you kidding me?
you cannot even "call" value that equals with 1
because the class is nto intatiated
and ofc you cant even use this. (my bad) because its a non-static variable
maybe you should try it out -_-
you are soooo wrong here. and i dont understand how u cant see it
I feel exactly the same.
at least we agree to disagree
ok show me. on the same piece of code.
how you call the value that equals with 1
I don't even know what that means
09:05
use the same piece of code. and show me how you print thevalue that equals with 1
surprise me
I don't need to. What you were going to try out was to see what the object type was. By calling getClass() and seeing what that returns.
i dont even have to do that
i can see what the value of each object returns
i am pretty sure that you are getting confused because of the instance of the object.
I give up. You believe whatever you want to believe, I'm glad Dax is helped.
hahahaha ok now im pretty sure that you know you are wrong :D
hi guys i need one help.. im using sigle signon to configure my app im the third party identifier . but i want to configure google as thirdparty identifier. because my client if login using google username password without any password.
09:14
@RaguvaranR Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
@RaguvaranR you're describing oauth2 essentially
i dont knw abt oauth .. but user login using google username and password
but i want to act thirdparty IP
@RaguvaranR don't try to reinvent the wheel. Look into oauth and try to use that
Because if i act third party i can cofigure my own system like ip restriction , anything
you can do this in addition to oauth
do basic username and password check through google, then afterwards check ip or whatever
or maybe better still
09:19
OAuth is secured?
add an ip check when any user requests anything from your website
it's considered the defacto standard for authentication these days
okay thank you for your help
no problem
09:41
figure that I was using a tool created by someone else to locale jar files so I could add missing classes, but it required me to format the package and class like /some/random/package/TheClass.class
Setting up a new project and going through a million of these, I was about to make a quick tool to rename a legit classname (some.random.package.TheClass) so I could easily search for it
come to find out, the tool also accepts that as a valid input.. all this time I never thought to try it any other way..
Good Amen.
Afternoon
 
1 hour later…
Dax
Dax
11:09
Hi @Gimby Could you help me understand this? why ref.c() is not accessable? paste.ofcode.org/4RYxD4TEpsP2QtYVrgQL9K
11:23
@Dax what do you mean is not accessable? do you get some error or what? your code compiles though without errors.
Dax
Dax
@Sir.Hedgehog no it is not, I get "c() has protected access in 'a.AccessTest' you have to put classes in two different package to get the compilation error
The error message explains it all, doesn't it?
Dax
Dax
11:39
@Nicktar protected method must be available in the subclasses even if the subclass is in a different package, right? then why ?
It is available through inheritance not for extenal access from inside a inheriting class. You really should read up on the Java permssion model befor asking
Dax
Dax
@Nicktar okay, it makes sense (I am beginner) I could not find anything by searching "java permission model"
never mind, I google and find it out , thank you!
dbl
dbl
@Dax as a person who is not attending to a particular class but instead tries to struggle trough his own research you should be more than ready for this kind of approach.
Dax
Dax
ok, I wont ask more questions, how does it feel to be better in Java ? :D:D:D:D
I am just kidding, sure, I reasearch more before aking your time :)
dbl
dbl
Because it is more than normal that as a novice you won't be able to make that up and then is more than normal that for a person who spend a lot of money, time, dedication and etc. to be kinda not friendly... :D
this is just an advice though
11:53
posted on October 20, 2018

archive - contact - sexy exciting merchandise - search - about ← previousOctober 20th, 2018nextOctober 20th, 2018: October is the month for terror!! And also comics! And also... TERROR!!– Ryan

dbl
dbl
if you want to get something good from here be ready to take all the shits as well ;)
Dax
Dax
:D
"Emetophobia" is the fear of vomiting. (source)
12:13
"Aeronausiphobia" is the fear of getting airsick or the fear of vomiting due to airsickness...
dbl
dbl
damn could we say that Aeronausiphobia is a partial case of Emetophobia since Wikipedia says: "Emetophobia is a phobia that causes overwhelming, intense anxiety pertaining to vomiting. This specific phobia can also include subcategories of what causes the anxiety, including a fear of vomiting in public, a fear of seeing vomit, a fear of watching the action of vomiting or fear of being nauseated."
"Luposlipaphobia" - the fear of being pursued by timber wolves around a kitchen table while wearing socks on a freshly waxed floor.
dbl
dbl
not partial case but subcase
@Neil omg..
@Neil That sounds like a pretty horrid thing tho to be honest
yeah I don't think you can really call it a phobia if there is legit cause to be fearful of it
dbl
dbl
12:25
drugs abuse is the correct term
Relief! Our project built and deployed on the laptop of our prof :D
All,
What is the best way to update two hashmaps?
1. clear and insert all elements
2. traverse and update each element
/javadoc Map
/javadoc Map#putAll gaurav
What if map maps a string to an arraylist?
What's the matter with it?
Don't use Map.clear()
Hey Nicktar :)
Hey geisterfurz007
Map.clear() is an awfull hack, that's needed if you distributed pointers to your map through your code, which is a clear sign of a bad design.
If you dont have to rely on Map.clear(), don't use it. If you have to rely on it, rewrite your code so that you don't.
12:46
@Nicktar: Many SO answers have told to use Map.clear() instead of creating new Object.
@geisterfurz007: If I want to update any value, then I need to get to the arraylist and search full list to update the element
The map contains on 100+ entries..So, is it better to use Map.clear() ?
@gaurav I know, but as a rule of thumb, if someone argues with gcc in a SO answer that does not mention gcc itself, I ignore that asnwer
haha... okay..
What approach should I take then?
It' usualy premature optimization, which is the root of all evil or if it's not, it's outdated as the gcc changed drastically with every Java version
Create a new Map, addAll to it... done
Okay
Why can't I download Docker without an account? O-o
12:53
@gaurav I would use Map.clear only if I'm about to load it up with more of the same type of information
@geisterfurz007 what dat
Doing otherwise is just confusing and error-prone
@neil True that
dbl
dbl
@geisterfurz007 that's new
"Hello it is I, bolBreaker. I dunno git and docker but I write software" :P
dbl
dbl
12:54
@geisterfurz007 I think there was a work around let me check
@dbl That'd be awesome, thanks!
I'm too old school
old school too cool for school cool
@ballBreaker Docker allows you to run containers for applications and makes then platform independent essentially. You can define interfaces of those things. That is all I know by now but our lecture is about that stuff today.
Docker in a Nutshell is a Virtual Machine without the Machine part, just a virtual container to run software in
@dbl Found a direct download :) Thanks for taking a look :)
dbl
dbl
12:59
try this one and if not then you are f-ed
download.docker.com/win/stable/… I found this in the github issue.
dbl
dbl
well the one I gave you has other releases as well
Yeah that one.
dbl
dbl
it sux I know
I think is because of the fact MS bought it recently
There is an open PR for it here: github.com/docker/docker.github.io/pull/7464 Hope it get's merged soon :)
dbl
dbl
13:01
I guess it was only a speculation I can't find any evidence that Ms did :)
They won't revert ;) It's marketing...
They bought GitHub, don't remember anyting about Docker
dbl
dbl
GitHub as well yeah but it was earlier this year
hi guys
I have a quetion
dbl
dbl
hey
I need to use a pagination
dbl
dbl
13:02
Spring project?
so I neeìd to do the possibility to choice a default value for the number of item for page
so this field where I must put in the page?
That doesn't sound like a Java question
dbl
dbl
+
this is a FE issue
if you give us a minimum stack of used techs we could be able to answer maybe
@Doflamingo19 do you use Angular in the project?
yeah
why?
because that's not Java at all
dbl
dbl
13:07
what do you use for pagination? michaelbromley.github.io/ngx-pagination/#
but it a convetion
dbl
dbl
never used Angular thoug...
it is a convetion
@dbl Doesn't look like it actually! github.com/docker/docker.github.io/pull/7242 It was already added again, but then another account reverted it here. The open PR wants to revert that potentially malicious commit.
Angular isn't a convention.
dbl
dbl
13:09
@Doflamingo19 do you have any supervision at site since you are pointing out the wrong questions here...
ok yeah don't worry
thanks to all suggests
@geisterfurz007 i c
Zoe
Zoe
13:51
@Michael dang it Mic!! Stop yelling at the poor @geist!!
in JavaScript, 45 mins ago, by Doflamingo19
suppsoe to hjave a pagination and I must give to do the possibility to choice for a user the number of item for page
someone's bound to know sooner or later, right?
Well since he's using a Javascript/Typescript framework... it's a better fitting room...
I don't know if there's a dedicated UI/UX room
... never really cared about UI/UX from a non-user perspective
dbl
dbl
@geisterfurz007 what stack of techs will you use for the FE?
I'm also a pure BE dev as well but maybe I could be able to help
@dbl for the w00000t? It's for a college project :D
PostgreSQL and JavaEE is the stuff we use there
hello everybody
Zoe
Zoe
14:00
@Neil Totally. 19283rd time's the charm
Hey SpringLearner
hey
How are you doing?
did you get a chance to look at my problem?
8 hours ago, by SpringLearner
mvn spring-boot:run -Dcheckstyle.skip=true -Dpmd.skip=false
Nope I didn't see it. Not firm with maven and spring tho, sorry.
ok no problem
Thanks for replying
not sure what you're calling cpd...
but it seems an unlikely abrevation for checkstyle
dbl
dbl
14:14
@geisterfurz007 sry for being away. So you are building a web server without any FE app? :D
What the balls is an FE app?
I guess my prof knows what he is telling us what to do tho :D
FrontEnd
Oh!
Front end is JSF.
poor guy BEE... watching that ugly fruit thingy all day at work...
dbl
dbl
14:35
this one is my favorite :D
14:53
lol
quick Q. anyone has any idea, why there are source files missing like DirContext from jdk 1.8.0 ? IDE Eclipse
Did you include the sources in Eclipse?
In zat case I have no idea, sorry.
Sorry stoped using eclipse for good
14:57
hmmm eclipse sees the jre of java not the jdk folder, could that be it?
My head hurts...
@Sir.Hedgehog not because of your question
oh boy i almost took that personally :p
Sorry
dbl
dbl
I don't have enough RAM for Eclipse...
hahahahaha that was it btw
stupid jre folder
dbl
dbl
15:06
impo IntelliJ is so much better still it's not an open-source and MIT licensed
Working through some old parts of our app... Code needs refactoring to improve radability, testability, maintainability and overall code quality... Test coverage is close to nil, so I have to write tests first... Writing tests for code that needs work to get testabillity gives me a headache right now.
dbl
dbl
You need to write tests to code that you are going to refactor for so many reasons later on?
sure... I want to make sure the new code behaves the same
dbl
dbl
what tests are you going to implement -> integration and unit tests or?
mainly unit tests but gue to the current "design" some are borderlining integration tests...
testing crucial stuff thats layered deep in a stack of private methods isn't exactly a unit test anymore
dbl
dbl
15:11
Just make sure you do no unit test for members that needs to be decoupled.
oh
+
what % of coverage are you after
cuz writing tests for a project that took like a year and there is 0% coverage is like another year :D
I don't go after percentages... I take a look at the code and decide more or less line by line... Ranges from not covered no-brainer-methods to 100% branch coverage in others
Average for the classes I'm done testing is at about 70% line coverage
dbl
dbl
This will be a nightmare anyway :)
30% are no-brainers or code that I'm not going to touch
Hello all ! :-)

I'm trying to debug something and I thought I'd try the chat before I consider creating a SO question (if that's worth it). Is it against the rules here ?
@Ariles Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
15:26
I'm done for today... have fun everyone
cheers !
/javadoc Collectors#toCollection
dbl
dbl
damn I've missed the question :D
@Nicktar good night :)
15:29
Can you think of any obvious reason why an ExecutorService instance would stop executing tasks, even though the queue isn't full ?
@Ariles Nope, it is not. Just if there is noone around we'd be thankful if you don't spam around if anyone can help or ping people. Other than that, you should be good. And welcome to Java chat!
@geisterfurz007 I'll keep that in mind, thank you ! ;-)
dbl
dbl
@geisterfurz007 I've said that I've missed the Q that's why he added it again...
also be nice all <-> all
@Ariles nothing comes to my mind on prima vista sorry
Also I think this is a good SO question(if u sure there isn't anything like it already)
@dbl He didn't readd the question (I can see the deleted messages), I just answered the question if it was ok to ask here :)
@geisterfurz007 yeah, I only posted the question once :-)
@dbl thank you anyway. I'll consider that.
15:39
Nothing that would come to my mind either, sorry. I haven't worked with ExecutorService a lot so far.
What's even more odd is that it has a pool size of 100. So, even if a few tasks were to be stuck, it shouldn't block the whole 100 ! Or am I wrong ?
16:01
16:17
Anyone here use much HTML / JSP / XSL before?
yepppppers
It's like 99% HTML/XSL
It's outdated as fuck
big time
The HTML isn't even HTML5
The fact that I'm programming on IBM RAD using IBM WebSphere should say everything lol
and only now moving the apps over to git from CVS
...C...V...S...
16:39
/wiki cvs
Cyclic vomiting syndrome?
16:57
@geisterfurz007 he's probably referring to Concurrent Versions System
00:00 - 17:0017:00 - 22:00

« first day (2921 days earlier)      last day (2244 days later) »