« first day (1493 days earlier)      last day (3449 days later) » 
00:00 - 15:0015:00 - 23:00

3:10 PM
@Gemtastic Heya!
 
Hello
 
Hi
do you have an idea about ws-compliance what does it means ?
is about webservice
 
@ita ?
 
Oh hi!
 
@Unihedron do you have an idea please ?
 
3:22 PM
aaaand wut?
ws-compliance??
webservice?
any useful information to understand your situation at all??
 
fge
Huuh, removing dependency on Guava because of its size?
Gah
 
@fge What do you mean?
 
@Vogel612 like you :( I am aplying for a job that need ws-compliance,ws-security,etc.
 
ditch it...
 
Is guava too much of a hassle to have?
 
3:32 PM
if they can't spell out what they want, they also won't be able to properly formulate requirements
 
@Vogel612 hahahaha ok
 
fge
@Unihedron I've had an issue on one of my projects asking that I remove the dependency on Guava due to its size (2 MiB) and that I only use a fraction of it
 
@fge You can select a specific package from guava to use instead though, no?
Assuming they don't cross-reference, which sucks.
 
fge
@Unihedron meaning?
 
Some libraries include implementation which uses other parts of the library, and in the end you can't use packages without getting the entire jar.
 
fge
3:35 PM
Well no, not with Guava
It bundles it all in one place
 
aww
 
fge
But how is that a problem anyway?
 
@fahdijbeli I'm actually... honestly thinking that way..
 
fge
2 MiB is zilch
 
But eh, I maybe shouldn't do that as the inexperience nab I am.
 
3:38 PM
@Vogel612 no problem thank at all :)
 
Yeah, like... little less than 2 MB
 
well embedded systems could be problematic, but eh...
@Unihedron I just ran findbugs...
4 markers overall..
 
I have it, never ran it
'Cuz I have it on max report settings, it even reports stuff like circular dependencies.
 
fge
Be sure to run pitest too!
That is a great bug finder
 
3:52 PM
@ItachiUchiha shouldn't this work ? txtField.minWidth.bindBidirectional(col.minWidthProperty());
 
okay setting to maximum settings: 7 markers...
all OfConcern -> lowest setting at all.
 
Anyone ever setup a android project with maven?
 
4:15 PM
nope...
 
fge
There we go again... A "goto hater"
 
4:38 PM
In java, a goto hater is someone who hates it being a reserved word despite not being used
 
The JVM uses it all the time, it's just us stupid humans whom aren't allowed to use it :P
 
fge
@kiheru I was referring to people taking for an axiom given by God that "goto is harmful"
As with all powerful tools, this is untrue
 
@ita damn, was so close now, but then again no :(
 
@fge I thought it was something like that. Happens with C beginners all the time when they take a look at the linux kernel code. (And apparently fail to think how the error handling would look if written without goto)
3
 
5:02 PM
Hi guys
 
@fge I agree. Jumping is a powerful element in coding.
They emphasize good code flow and dumped that in hopes of gaining more modular code. I beg to differ.
So now you're left with control, arithmetic, and assigning.
Boring!!
 
hi guys!
 
hey
 
whats up?
 
nothing much
 
5:17 PM
you guys done on your bot thing?
 
I was too busy on the javascript to get anything done there, so nope unfortunately.
 
done?? probably never..
 
Hi guys! I'm dealing with one thing. In MVC, who register event listeners to a view? Controllers or the view?
 
Controller
 
So, if I have for example a button that opens a webbrowser, i should pass the view to the controller and then this last one, create the event listener to the view, no?
 
5:29 PM
i think you should leave the view alone on its purpose of displaying data. It does no manipulation, processing or whatever..
I usually have the controller instantiated to take a view and a model... the controller manipulates the passed model to it such as adding listeners to it.
 
what about a listener for when the browser is closed? Could you do that?
 
@Gemtastic In that case I suppose you need to have access to web browser events and you register from the same controller
 
@korima i think its about right
 
@Gemtastic probably not on server-side..
you could try to hack your way around it with a heartbeat on application level...
but that's mostly a waste of bandwidth, sooo..
 
My thought was more for cases where you own the site to be visited
but also for something like your application is waiting for the browser to be finished using
Like "please have a look at this site" and when the user has seen it and clicked the browser away the application will continue. Don't ask for the usability of it, I was mostly just curious :P
 
5:35 PM
you could try to check the system's process list...
but eh...
 
@Unihedron was right. Its hard to code when its cold. T.T
 
@LeeJeong Stiff cold fingers?
 
not yet on that level,
but how the cold air brushes and slips through the blankets. xD i cant completely cover because i need to extend my hands on the machine.
how bout there?
 
I know that feel bro. 'tis cold here too
'Tis the season to be sneezing falalalala la la la la
 
My room is currently brutally overheated...
that will change when I get home..
 
5:40 PM
DEYM RIGHT!
 
It's barely above 12°C in my bedroom, where my PC stands..
That's why I am reluctant to leave..
 
i hate colds than cough.. but who would rather have them. xD
 
And you follow any convection to name controllers? My number of controllers is growing and i dont know how organize them
 
@korima well... what are they doing?
organize them after the Domain-Class they handle
and after their responsibility
 
it's around 20ºC and I'm cold :/
 
5:43 PM
@Vogel612 From Domain-Class... How do you suggested to do with a controller that manages a button that downloads a rss? It is call controller/DownloadRSSButton.java
 
ermph... your controllers are too finely granulated..
that Button is in a view. that view has one controller
and the download is a BusinessMethod, that could be extracted out of the controller
--> controller/domainclass/DomainClassDetailsController#handleDownloadRss();
think of View and Controller as a combined entity
 
@Vogel612 Like they was one?
 
yea, but they still have different tasks to do
the View is responsible for showing the user stuff
the controller is responsible for handling user "input"
whether that be pressing a button or changing a Form's value
 
@Vogel612 But if is so related with the view, for example, registering his events, why DownloadRSSButton. java a bad name for a controller?
Is controlling a button that does something
 
but the Button only is a small component of the View.
Handling a single Component's events is not a thing you should extract into a separate controller.
That's a job for a method in the controller of your view
whether that method calls a method somewhere else doesn't matter much.
 
5:50 PM
Fvck this. Lots of things to be done with DAO/DTO stuff!
 
I'm not sure if I'm understanding. A component should have a controller only for her, for event attachment, and also have controllers for domain?
 
is the view what you call the class with the GUI code?
 
@Gemtastic yes that.
 
I see
 
@korima no why? that would be counterproductive
A component is part of a View.
and a View has one controller for all the stuff it does.
 
5:54 PM
The course I'm going now doesn't mention that as we don't have time to go into multi-threading, and thus all code end up in main :(
 
and that Controller may delegate stuff to BusinessFunctions or the Model
 
*all view code
 
@Vogel612 Ok. Can I put a real scenario for a better understanding?
 
@korima sure thing
 
Ok. I have an Android app. I have a screen about read a rss feed. In my screen, I will have at top an input text where i will put the url of the rss feed. Next to it, a button to search that url, parse items and returns the results to the screen.
 
5:57 PM
So far so good..
It would be nice to have more info, but okay ..
 
So, the first thing I suppose is to code is the bussines code?
 
anything else in your screen???
back button or sth?
 
Ok, I will add more
 
That's pure preference..
it's easier with business-code first IMO..
 
I will add the back button you suggest and a the possibility to click of rss item and open web browser with the news to visit
Then, I start coding business with for example creating a class to download a rss channel
 
6:00 PM
Pardon another n00byness, but what's the business code?
(just trying to map all the terms)
 
RssChannel.download(String urlRssChannel)
 
@Gemtastic Business -> heavy lifting
That's the code that performs complex validation, data calls, inter-application communication
 
Sorry, I'm late typing because some words I don't know how say in English
 
all the stuff the user won't ever see, and some that he will see...
@korima that's fine..
 
@Vogel612 Ah, I see. Thanks for telling me :)
 
6:03 PM
@Vogel612 Then, as I have my business code ok, I go to prepare my view
 
Just for reference I am not making any suggestions to the code you have, I am just trying to clear out what the current "state of affairs" is.
aaand please stop here for a sec
do you have a controller yet?
 
For a code review, there's a SO for that!
 
I will have in view/, a class something like RssChannelBrowserView.java
 
yea.. that's where you have the URL field + button + area to put results in, right?
 
Ok. Also I will have all method related with changes of UI components? no? For example. method to load the list of rss items?
Yes right
 
6:06 PM
from this I'd say your controller is relatively simple.
 
Controller? Is it not the view class?
 
you have a reference to that view, and a method named something like onDownloadClick()
no it's not the view class.
the view is just there for representing stuff it got ..
the controller class is separate.
 
But the method to load the list, then should be on the controller?
 
depending on the technology you'll have to get the Interaction handlers (onclick...) in your View, but alas
@korima nope that goes somewhere else again
now If you click the button, the onDownloadClick() will do the following:
it will access your text-field to retrieve the URL
then it will go to a Model-Class, where you implemented your "Business logic"
It will ask that model-class to retrieve the RSS-Feed-items.
probably in an asychronous manner.
 
Correct, its async
 
6:09 PM
then in the callback you get some results from your model-class
the Controller will take these results and have the View display them in the area you designed for that.
probably using something like: view.setRssResultSet(results); view.update();
 
Ummm ok...
 
I don't know how it looks in Android.
alternatively there's a lot of frameworks out there which can do the Controller->View interaction part for you
e.G. Primefaces, Spring, Asp.Net-mvc, ...
all this stuff everyone hates, but everyone needs
 
And then, where I register listener to view components? from controlllers?
 
.. maaaan... this is just soooo... ugh.. too many..
 
I mean the setOnClickButton(Listener)
 
6:12 PM
@korima what "register listeners"?
you don't do that..
 
guys, do you think, i have to implement DAO/DAOImpl on all tables i have in my DB?
 
ohhh... um...
I'd probably do that when constructing the Controller. I'd pass a reference to a view, and have the controller register itself...
 public ControllerClass(View view) {
     this.view = view;
     this.view.getRssButton().setOnClickButton(this.onRssClick());
}
or something along these lines.
 
Ahhhhh ok!
 
usually you have some framework to wire it up for you ;)
 
I understand...
 
6:15 PM
Anyways it's really getting late around here, and I should head home.. sooo
 
I think I understand better
 
Laters!
 
@Vogel612 Thanks vogel, see you
And if i see that in my view controllers is repeating the same code because i have the same button with the same funcionality in other views, what should i do?
Have an instance to the controller of the small component?
 
fge
6:29 PM
@korima if there are really only invariants in the controller, just make it a singleton
 
@fge Then, I extract the repeated code from my current controller to a split class?
 
fge
Well, that would be the obvious choice, yes
 
And if I want to apply the principle about single responsability to a controller that is huge because my view has too small componentes, can I create folders in my dir "controllers" for my big view? each one for a single screen of my app?
 
6:58 PM
helloooo?
 
@LeeJeong Hello?
 
everyone is talking about J2EE.. :( me is so out of place. ahaha
@Alagaros hello there sir..
trying to keep awake.. because tomorrow the paint guys are going to wreck havoc in our apartment... and i wont be able to code. zzz
 
7:35 PM
Well, I no nothing about JavaEE
 
@gemstatic you are on JavaFx right? or is it ther other. xD
 
heya
 
heyow!
 
8:19 PM
Anyone have experience with HTTPServer in java?
 
@VoidWhisperer what help are you looking for?
 
ItachiUchiha: I'm working on a program with one and the webpage just gets stuck infinitely loading, not even reaching the handler
Well i fixed that, but now it's saying that the page can't be displayed
 
 
2 hours later…
10:03 PM
@ita argghhhhhh :p
 
00:00 - 15:0015:00 - 23:00

« first day (1493 days earlier)      last day (3449 days later) »