« first day (2284 days earlier)      last day (2649 days later) » 

2:28 AM
Is anyone on?
 
W-S
@Qwerp-Derp Me :)
 
 
2 hours later…
4:04 AM
derp.. burp..
 
 
3 hours later…
6:38 AM
Cheers zzZzZZzZ
 
 
1 hour later…
8:01 AM
morn
 
Morn :)
 
morn
 
!!break
 
Still finding statics in my code, when there should be no static
 
8:28 AM
\o
 
morn!
 
@MadaraUchiha do you know if there's a good existing implementation for interacting with SO chat (for writing a bot)? I'm using ChatExchangeJS but jacob said it wasn't done and I want to stab him, and I didn't spend enough time trying to rip apart what works from rlemon's bot
 
Hey @Tavo @Unihedron :)
 
8:39 AM
@geisterfurz007 hi
 
@ItachiUchiha
 
user image
5
as promised
me, my wife and a friend
 
wow nice pic
 
thanks
 
8:50 AM
you are the one on the left from our view right?
 
the one closest to the window
 
yes
 
Nice beard :)
And a nice picture overall :)
Congrats!
 
thanks. It started out of lazyness though. But it stayed
thanks!
 
congratulations man, assuming you got married :)
maybe it was just a party :P sorry if that is the case
 
8:52 AM
I did, thanks
 
@Tavo you look so different in this pic than your avatar
much more handsome :p
 
still bald
 
@Unihedron in the avatar, you mean?
:D
 
Nice Pic!
 
8:53 AM
thanks :)
 
gz!!!
 
now on to the divorce :P
 
don't even joke about it, you're going to jinx yourself
 
@Unihedron I have a good example. My parents have been married for 42 years, and they still walk hand in hand
2
so hopefully divorce won't happen. But just in case, I have already stated that the cat is mine :D
 
8:56 AM
@Tavo priorities were set
 
Too much <3 flowing in the room. I am being choked.
 
opens a window
 
I don't know how it is in other countries, but there was something that surprised me much at the wedding .The registrer was using a fountain pen that she had to dip in ink. I asked why was she using such an old tool, and she said that the ink had to be official ink, because it doesn't fade. I was :O
@ItachiUchiha lol. Hurry, let's start an argument!
 
lol tavo
 
@Tavo I am working. May be later :D
 
8:58 AM
boring...
anyway, thank you all guys
 
@Tavo I would use it because I like such things :D I also love pocket watches :) The old ones with a chain you can pull out of your suit. Maaaan I love such things :D
 
@geisterfurz007 I was wearing one
 
@Tavo aye and good luck you both :)
 
and my cufflinks were made of watch machinery
 
@Tavo Cough.. Cough.. EnglishMen
 
8:59 AM
nope. I'm Spanish :P
 
Anyone have an idea why I get an unchecked type cast warning from eclipse in this function. It does not fail I am just wondering
@Tavo That is sick :)
 
@Tavo yw
 
I might post another pic when I get the one from our photographer
so you guys can see it all
 
Does your wife know of the sharing?
 
@geisterfurz007 throws @ItachiUchiha out of the window
 
9:03 AM
Just curious. You must not answer :D
@Unihedron I like that :)
 
@Unihedron Hooks up @uni as well
 
@ItachiUchiha /spawn
 
 
1 hour later…
10:04 AM
helllo
anyone here?
 
o/ @Gilad
 
@Gilad you
 
@Unihedron ma boy
@geisterfurz007 hey
@Unihedron today im building my sokoban GUI, and i need help in FXML
i want to display the level on a Canvas, but a custom one, so i created a class that extends Canvas, and displays the level, something is wrong with the initialization of this class, because it doesnt work, and when im asking for the width,height its 0,0.
My controller implements Initializable, if i try to create the displayer in the initialize method, it works because i'm giving it a path to a file, but i want the user to browse for a file, so i cant create the displayer there...so im stuck
 
... so, what is the problem?
 
ill try to put it this way
@FXML
private SokoGuiDisplay displayer;
            displayer.getWH(); output: 300,300
		displayer=new SokoGuiDisplay();
		displayer.getWH(); output: 0,0
why does this happen?
my constructor is empty for the time being
 
10:17 AM
because you just ditched the proper displayer you have and replaced it with a new one that has the values 0, 0?
 
SOLID principles: does the SRP violate the open closed principle? SRP says a class should have only one reason to change, but open closed principle says don't change; extend.
 
but my displayer is from type SokoGuiDisplay
SokoGuiDisplay fx:id="displayer" height="300.0" width="300.0" BorderPane.alignment="CENTER" />
 
SRP says a class should only have 1 responsibility
 
A class should have only one reason to change - Bob Martin
 
@TheCoder Bob martin said that, not the SRP
 
10:20 AM
he wrote them
 
the same guy says You should be able to extend a classes behavior, without modifying it. about OCP
it doesn't say don't change
 
^^^
 
you're referring to OCP?
 
is that a rhetorical question ._.
 
good morning
 
10:22 AM
Good morning o/
 
"SRP says a class should have only one reason to change, but open closed principle says don't change" both fragments before and after the comma is wrong
 
@Unihedron    <center>
      <SokoGuiDisplay fx:id="displayer" height="300.0" width="300.0" BorderPane.alignment="CENTER" />
   </center>
 
OCP: you subclass the class, not change it. SRP says there should be only one reason to change
 
why would it create an instance with 0,0?
 
"but open closed principle says don't change" that is not what OCP says
 
10:23 AM
can you correct my take then please?
 
@TheCoder wrong intepretation, and wrong intepretation
 
just look at the definition
OCP: You should be able to extend a classes behavior, without modifying it.
 
where does it say you're not allowed to change it?
 
> without modifying it
?
 
10:26 AM
it doesn't say you cannot modify the class, it only says you should be able to extend from it without having to modify it
 
The single responsibility principle states that every module or class should have one responsibility over the functionality provided by the software, because it is bad design to couple multiple things that change for different reasons at different times, "A class should have only one reason to change.” is a generalization of the rule and not an interpretation.
It also doesn't contradict with OCP because it doesn't.
 
@TimCastelijns -> Making it as flexible as possible? I mean I am not into anything of that (on purpose), but I think it could help me :)
 
If modification of a class is ok, does that mean the class is open for modification?
 
it's not realistic to say modification of a class is not ok
 
@TimCastelijns "it doesn't say you cannot modify the class, it only says you should be able to extend from it without having to modify it" - ok, so you're saying, if I want to extend my class, I should be easily able to do this without changing the superclass?
 
10:30 AM
I am not saying that. The guy you are referring to says that
 
can you explain the OCP for me? I've gotten it wrong
 
> if I want to extend my class, I should be easily able to do this without changing the superclass
that's all it is
 
wiki:open closed principle
@Gilad displayer=new SokoGuiDisplay();
 
@uni
@Unihedron i got it, should not even try to make it a new one, its already there
 
yeah javafx handles it for you I think
I wouldn't cut a functional leg
 
10:36 AM
Still wondering why the new one, if created has 0 dimensions :/
 
probably the default modal of the class not initializing the values
so it's 0
also a source of the "null island" map problem
 
@TimCastelijns "I am not saying that. The guy you are referring to says that" why did you respond with that when I clarified above?
I'm confused now: In object-oriented programming, the open/closed principle states "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification";[1] that is, such an entity can allow its behaviour to be extended without modifying its source code.
 
you put words in my mouth
 
ah
right so i get it,
 
suppose you have a Vehicle
 
10:38 AM
modification is gooood, but not if modifcation is MANDATORY when subclassing
 
now you want to have a Hoverboard that is like a Skateboard, a Vehicle, without changing Skateboard to allow Hoverboards to fly
you do that in Hoverboard, not Skateboard, because Skateboard should satisfy OCP
 
@TheCoder something like that, yes
 
it's open for extension so Hoverboard can extend it, it's closed for modification because a Skateboard is a Skateboard and nothing else
and Skateboard inherits from Vehicle, which should also satisfy OCP and be closed for modification, so Vehicle should not need to have its source code modified, and neither does Skateboard
 
right, think I get you
So in the real world, this prevents code rewrites if I want to do a simple extension.
 
rather, it advises against because there is no need to
 
10:42 AM
i.e open for extension
 
"a Skateboard is a Skateboard and nothing else" just as to extra functionality to my Clazz can be settled in NewClazz instead of old Clazz
usually under OOP anyway
 
by default all classes are open for extension. This "rule" just aims to make it easier to maintain your code
 
if you have some class like a network manager then it shouldn't be stuck in OCP yeah
 
right, so it's encourage extension (good OOP) and wants to remove any impedimentts to this extension
 
yeah, and I like to name this effect as "not my problem", it's more intuitive than "extensible without modifying"
 
10:46 AM
lol
 
I like that naming :)
 
I should publish programming books. The academia would hate me.
 
I dont get the 'not my problem' thing... if when extending you had to modify the superclass, that IS your problem. Got it wrong haven't i?
 
Indeed. I would love to see the table of contents :)
 
@TheCoder you should not have to modify the superclass when extending, because any new functionality you add should be in your own object with the new extensions as overriding and optionally calling the old functionality when relevant, but not modify it
suppose we have PrintTheFirstTenNumbers which prints 1 to 10 in a method.
 
10:50 AM
ya, I have gotten, just didn't get the not y problem joke
ok
 
Now you want to extend it to add PrintTheSquareOfFirstTenNumbers.
What you do is that you do what PTFTN would have done, and then square those numbers in the new object, and print those
you won't modify PrintTheFirstTenNumbers implementation because it is not the problem of PrintTheFirstTenNumbers to square the numbers.
 
righttttt.
 
PrintTheFirstTenNumbers only does what it does - print the first ten numbers - and after the implementation is done, it shouldn't ever be changed, because every other thing that needs to be done isn't its problem.
I guess I'm also demonstrating the SRP while we're at it. :P
 
right.. so the principle is equally applicable to methods
 
@TheCoder anything in an object-oriented manner benefits from SOLID.
the only exception is that you might not gain efficiency, but ehhh I'd say you'd regain enough value to make up for it
 
10:54 AM
what about job descriptions: if Im a java dev, can i refuse to run db queries?
 
if you're a tool, probably
 
does JavaDev extend DbQueryRunner?
 
that's a good question, I've never checked Job's API
 
not to my limited knowledge and I'm not arsed with specs
:P
 
@Gilad The problem is exactly what @uni mentioned. Your Scene points to the SokoGuiDisplay object which was created by the FXMLoader while loading the FXML and it injected it into the Controller. If you ditch it and use a different SokoGuiDisplay object, it will not return you the correct output for height/width or anything similar.
 
11:02 AM
@ItachiUchiha thanks, it works now, but facing 100 other problems xD
 
@ItachiUchiha So one would have to add the new one to the canvas again and then ask for width and height?
 
@geisterfurz007 SokoGuiDisplay is the canvas
 
@ItachiUchiha Then add the canvas to something that displays it *
 
@geisterfurz007 Yes, you can do it but then it destroys the benefit of FXML.
There is no reason left to use a FXML if you want to create your UI on the fly.
 
when life gives you lemons, make your own lemons
5
#NotLikeThis
 
11:05 AM
solid advice
 
when you guys are writing code, so you continually review your code ensuring the principles are followed? After a design decision, do you ask 'does this violate any solid?'
 
the advice is #NotLikeThis, not the line above though
stop starring it
 
@ItachiUchiha But then how would one get the correct values out there? They are correct in the first place, but in another one it is not? I am not familiar with FXML so this might be stupid :)
 
@TheCoder you typically ask yourself that before making the decision
 
@TheCoder no, you familiarize yourself with the principles so you won't do decisions that violate them
because good objects act good.
if you see a bad object you designed, you'll see a bad object. it's noticeable before reviewing.
before you write it.
before the idea is born.
 
11:07 AM
does it become second nature of good design, almost as if the principles aren't needed explicitly?
 
think about this
I want to invent my own enum system, so I'll write one huge enum object that handles every single responsibility in the enum system
 
user6857832
When you're free? @ItachiUchiha
 
intuitively, I know it's a bad object because it tries solving multiple responsibilities.
 
Good day @Hemlata
 
@geisterfurz007 Try to use FXMLs. It will all start to make sense.
@Hemlata Not right now. May be later today.
 
user6857832
11:09 AM
Um, ok.
 
so I break it into smaller objects that do every other job, and I make sure those jobs are "complete" and "extensible" so I don't write spaghetti that is hard to chew through
 
user6857832
@geisterfurz007 You too!
 
right
 
I design it like this so my life is easier, not so it follows SOLID
 
@ItachiUchiha Will do soon (hopefully). Currently I am not sure what to do with it, but when I find a project, I will. Currently I am still sitting and documenting my current project :/
 
11:10 AM
is the ISP principle a bit of a misnomer? As in, it's almost common sense
 
@Hemlata Can I help you as well maybe? Or is Itachi the only one applicable? :P
 
@geisterfurz007 Go ahead
 
all 5 rules of SOLID are common sense to me, and it will be to you eventually shall you choose to develop your tech field and keep learning :)
 
user6857832
@geisterfurz007 Sure lol.
 
whats the most important one, if forced to drop 4?
 
11:12 AM
DIP -> why? because implementations can change, I want my program to work at all times even when the library is "improved", how? by not assuming what an interface does and taking it exactly what it is for all, not for every
 
got you
is a good reason for DIP to aid good unit testing?
 
@Hemlata Go ahead then :)
 
makes a class testable
 
OCP -> why? because objects should behave for itself, new objects can behave similarly if they want but it's not my problem, how? by not having objects that are "dead" or doesn't fit into any useful shape
 
user6857832
@geisterfurz007 Yea I will in couple of minutes
 
11:16 AM
LSP -> why? because all fragments should be modular and allow substitutions, and that it lets the subclass do what they want under the same contract, maybe more efficiently with more info
 
I wonder if there's a bug in SO that doesn't register me visiting on sundays.
 
how? by not screwing up :)
an example: a sortedlist can search with binary search that a regular unsorted list can't
but a sortedlist can still do an unsorted list's job fine
 
@Gemtastic :/ Not getting consecutive days?
 
what constitutes a visit for you?
 
I think it's any activity, including posting on the chat site and vote / comment / review / ... on the main site
or it might just register visits, idk
 
11:19 AM
Some days I only open the app to see if I have any rep gains, and that is enough for a 'visit'
 
mine's a nice shape
look at that zigzag top, it's like a chess rook
 
I have a class with a 3 element case statement. I need to add another case so decide to refactor - all cases are now classes and I have a seperate class and use polymorphism to call a superclass method - what principle am I adhering to?
 
OOP
using a control block instead of objects is more "functional" than "object-oriented" I guess?
 
i thought it was OCP, but your interpretation is making me doubt
 
the leading superclass might be OCP
heck, all of your objects might already be adhering to all of SOLID already
you should be more worried about "is my code good enough that I can develop with it" than "does this adhere to some arbitrary rule that apparently would be good for me"
SOLID teach you principles that make your code in OOP be better designed and easier to maintain, but ultimately you are using OOP design and not SOLID, it's just a small upgrade to avoid bad design
 
11:26 AM
i get you but i want to nail the principles in case i 'think' i know them and am applying them but not getting the full benefit
 
gogogo
 
I have no shape :( just a big blob of green
 
@TimCastelijns all shapes are equal
:gayprideflag:
 
but what if I extend Shape and override equals to return false? D:
 
nerd level over 9000 ^
 
11:29 AM
gee thanks :D
 
lol
 
When a nerd level over 9000 is counted as compliment.... ;)
 
@geisterfurz007 I am a NERD GOD with a nerd score of 97/100 :P
 
lol nerdy shinchan
 
@ItachiUchiha Did you actually answer the questions correctly or in the purpose to get a score as high as possible?
 
11:33 AM
@geisterfurz007 I took the test once
 
@ItachiUchiha That has not been the question :)
 
what's the view here of Firecode.io for improving dev skills?
 
@Hemlata welp now I am away for around an hour, having some food o/ later
 
@geisterfurz007 I misinterpreted the question. I think I answer the question correctly but I can't tell you that with a 100% guarantee since I took that test almost 3 years ago.
 
@TheCoder what's that?
 
11:41 AM
firecode.io/pages/home - googles coding interview prep site
 
400 real life coding interviews from actual companies
 
@TheCoder some very stupid design decisions they have there, I can't sign up with twitter, I can't even sign up with github
why should I give my gmail to some random web service and why must I have a bitbucket over github? I don't get this
I don't even use facebook or linkedin
 
i'm surprised ya don't know that site
 
I'm more surprised that someone thinks I should know every site related to programming out there :)
I don't care about trash sites even if they're in a field I'm interested in
> Go on .. pick the language you're most comfortable with.
JS, JS ISN'T HERE
WHAT ABOUT SCALA
Java, C, Python, C++ <- what is any of this going to be useful in a real job
java doesn't use references, it uses values, jesus christ
"Awesome! Based on your responses and the usage pattern of other users, we'll start you off at Level 1. Our Learning Engine will get you to Level 5 fast!"
...
.........
this isn't an interview anymore
 
11:52 AM
Java, C, Python, C++ <- what is any of this going to be useful in a real job
i hope this is a joke right?
 

« first day (2284 days earlier)      last day (2649 days later) »