« first day (3216 days earlier)      last day (1949 days later) » 
00:00 - 16:0016:00 - 21:00

00:00
Time to take stock. Go home with some office supplies. (source)
00:38
morn
morn
 
4 hours later…
05:05
morinng
06:01
posted on August 13, 2019

Hah! That couldn't have happened here! We don't write tests :)
Zoe
Zoe
06:23
Lmfao
user4196492
evening
hey pebble :)
reads around in book
aggressively goes through the pages
mumbles "It's gotta be somewhere around, AAAAH!"
> Zoe is noob.
07:31
:47024274
Sorry @Wietlol, didn't see your message
I want to keep the old one because the new one requires the hardware to be quite recent
In fact, if you want more context, both class manipulates the camera on an Android device
usually, you keep the old one so that anything that uses it doesnt have to change to use it
The old class uses an "old" implementation of the camera API, while my new class uses the new API
if you change the package, everything that uses it now looks at the wrong package
íf you are certain that the new api is identical to the old api, you can silently replace it
07:34
Yes, this is my concern
This is the point, the new API is not identical since it "relies" on the capabilities of the hardware
but I wouldnt just make it legacy and mypackage
if you dont mind breaking the references, you can put them in the packages com.me.mything.techa and com.me.mything.techb
where "mything" is the name of the operation that you do
and "techa" and "techb" are the different technologies you use to do it
at that point, you make the abstraction in com.me.mything
since their api should be the same
if it isnt, make adapters
@Hellium api is only your programming interface
not the implementation
for example
Thanks for your insight @Wietlol
function foo() -> String
{
	return "Hello, World!"
}

function foo() -> String
{
	return http
		.get("https://wietlol.me/texts/en-gb/hello")
		.body
}
these two functions have extremely different implementations
but their api is the same
Yes my bad, I mixed up the vocabulary
My old and new class are implementing the same interface, so their "API" is the same
But the implementation is different. However, the API of the camera library may not be the same (have to dig a little bit more in the documentation)
but if you are only depending on that interface, the only place where you would possibly have to refactor is the instantation
where you create the instances and decide which implementation you use
07:47
Yes, indeed
My initial question is how to intelligently organise my classes
Zoe
Zoe
07:58
@geisterfurz007 no u
Me?
Cannot be
For two reasons actually... I wrote almost the entire app I had as a project in a week and I am currently writing on two keyboards at the same time :)
Zoe
Zoe
Oh, good point. You can't be a noob because you're already der Übernoob c:
There are only two things missing in my app; one is saving and loading the data from internal storage and the other one is the connection to the backend which won't take long either :)
there are only two things missing in my app
1, the user interface
2, the business logic
Scratch the business
08:04
mor
but the business part is so amazing
I wrote my own gesture recognizer
mor Han!
i did mor here
and ning in c#
;)
in C#, 3 mins ago, by Hans1984
ning
:p
cool story
08:08
this content has been confiscated by Hans1984
have some cookies
and a star
mhhh cookies
yum yum
thank you
08:27
@Hans1984 Who are you again?
catler
🤔
Oh, you're one of those cat-obsessed weirdos
yes
now you remember
08:31
You'd probably get along great with my grandma
As for me, I don't like cats.
Jenna "no mercy" Sloan
Idont liek cat at all
i just like those gifs
im a dog person
I also don't like dogs.
i had 2 dogs but never a cat
Jenna, is there anything you like?
08:33
Yeah, I like hanging out with my friends
Both ones?
(:
JS is a BUG itself
@geisterfurz007 ( Í¡° ͜ʖ Í¡°)
Good morning everyone
How are you doing?
08:38
Last time I saw a bug, I mercilessly killed it.
Thank Talos it's Tudos
@d0n.key Great until you came in.
@d0n.key morn
Now I am feeling SUPERB!
08:39
ha!
Zoe
Zoe
Last time I saw a bug I ended up creating a socket.IO parser built around raw websocket data in C++.
Oh wait, that was a couple days ago
:]
Last time I saw a bug, it was crawling on the wall.
And slaughtered
Yeah, that was like the third house spider that I've killed there just within the last month!
Where do they come from?!
Houses.
That's why they are called house spider.
08:44
I suppose they could be in the walls
eh a regular house has 2000+ spiders
be happy that they exists because you don't want to meet a swarm of insects
@KarelG Lizards will happy with it
@KarelG And I've killed 500+ (approximately)
spiders dislike humans.
@KarelG yeah true
08:46
lizards not
I dont mind spiders aslong as they are those slow thin spiders
it happens that they come "in visible spot"
i dont like the fast, thick ones though
disgusting
I don't mind spiders as long as I don't see them
just move them. Or splat them.
But don't move them outside lol. that is ... cruelty
08:47
how so
if the option is flushing it down the toilet or putting it in a glass and outside
Lizards exist in the house, they are just hidden somewhere
you tell me putting them outside is the cruel option ???
@KarelG They'd just sneak back inside anyways
And my cat will looking at the human unhearable strange sounds make by lizards
Kill them with fire
08:47
eg during nights, they cannot survive if they manage to sneak in a house or some secluded area in time.
see that as us trying to go outside when it is cold outside. We can endure it but not for the whole day
and we can adapt on it by clothing.
gotcha give shoes to the spider that you have placed outside 😀
Some spiders can freeze and thaw out, like frogs.
lol high heels
so it can walk the wall and get on my nerves all night long ?
well i think flushing them down the toillet is alot crueler
Spray them with an entire can on insecticide.
Then watch as a parasite bursts out of them
08:52
@Hans1984 they can survive it :)
Make sure to record it and upload it to the internet too
@KarelG lol i highly doubt that those thin , fragile creatures would survive
I think a saw that vid a long time ago
or something similair
disgusting
@Hans1984 fragile? heh. And they don't consume a lot oxygen (low metabolism)
well like i said i usually just let them be
howdy fellow Java-doers!
08:59
i dont move them outside and i dont flush them or kill them any other way
hey Tavo
hey Hans
I just realize that some spiders look kinda like tiny crabs.
gotcha be evil to serve them as crabs for the evil joke
Some spiders and crabs even do the same things for the same reasons
so now you hate crabs too ?
09:06
Like hiding under rocks and attack prey that wanders too close.
they are smart
Also they both have exoskeletons
They're probably related somehow
yup
arthropods
there are scary examples in the world tho *shivers*
user4196492
So I challenged myself to make a game in one class file and it didn't go too well, but I still made something.
surprised pikachu
user4196492
09:17
yea to accept input you have to make another class...as far as I know
mmmmm no?
Yeah, there what Tavo said ^
Also: Henlo Tavo o/
howdy geis!
09:35
geissssiiii
loool
geeeeiiiiiis
hey @ColdFire
Zoe
Zoe
10:10
ignore me, just bumping the room to see if it pops up on the chat front page
all chats are basically dead
vacation period
va.. what?
I dont know what that is
=_=
@KarelG What's that?
holiday period
Zoe
Zoe
10:19
@d0n.key It's a period where most people are on vacation
@KarelG that was a lapsus
Zoe
Zoe
You can call it a preferred vacation time for those that have a choice. There's also some groups that have vacation at the same time
is that not dependent of the workplace?
/8ball Do you ever go on vacation ?
@Hans1984 My sources say no
10:23
/8ball Are you a workaholic ?
@Hans1984 It is certain
I see
Oak is a busy bot
@Zoe I never heard of that word. What's "vacation"? Or "holiday"?
10:34
I have no idea why
Zoe
Zoe
2 messages moved to Trash
@d0n.key no troll
Zoe
Zoe
Please don't use chat as fastlane for your questions. Instead, wait a few days before asking here to give the people on the main site some time. If we want to answer questions there, we will look for them on our own.
@KarelG oof, awkward
@KarelG Nope, no troll
@KarelG English is not my first language...
10:34
Nzall sorry for pinging you, was not meant for you
ah, okay
that moving to trash made some changes to the UI which resulted into clicking yours comment
@KarelG led
Zoe
Zoe
@d0n.key Urlaub
Okay, good to know
10:35
@Zoe Is that Canadian or something?
Zoe
Zoe
I thought you were from Germany?
Yeah I am
Been working since June last year without a break
Zoe
Zoe
ouch
I'm just gonna stack all my holidays until I get to take a year
Can you do that?
Our days expire
10:37
a year off #__#
@Nzall you have a weird approach to handle iterators
There's no specific rules on expiration, so I guess.... :D
Zoe
Zoe
Don't you get like 4 weeks a year?
@KarelG It's adapted code, so it wasn't originally mine
I get 20 days. So I gotta do like 12 years in a row
10:37
yeah he only has to work 12 years straight
eggcactly
Zoe
Zoe
20 days is just under 3 weeks though
Weekends...
The project predates the Streams API and even generics, so it's a bit of a mix of iterators and streams
Zoe
Zoe
oh
yeah, then 12 years
Why bother though?
10:38
That was a joke btw. My first vacation starts in two weeks :3
Zoe
Zoe
xd
@Nzall I suggest to fix the old iterable-loop first with a for loop since you need an index or split it and use while loop first
@KarelG Could you please explain why, exactly?
Because the old code even had an extra iterator in there, and then 2 more iterators on top plus a for(object o: collection)
and that still works fine.
 
1 hour later…
12:00
Mexicans drink more Coke than any other country in the world. Mexicans drink about 745 Coke beverages per year. Americans drink about 401 Coke products a year. (source)
/8ball Do they also take the most coke ?
@Hans1984 Very doubtful
@Hans1984 I think that might be Columbians, but not sure
yeah i think so too
ow
This is a list of states (and some territories) by the annual prevalence of cocaine use as percentage of the population aged 15–64 (unless otherwise indicated). published by the United Nations Office on Drugs and Crime (UNODC). The indicator is the "annual prevalence" rate which is the percentage of the youth and adult population who have consumed the drug at least once in the past year. According to a recent study, 5 Swiss cities (St Gallen, Bern, Zurich, Basel and Geneva) were listed among top 10 European cities for cocaine use. == See also == List of countries by prevalence of opiates use List...
It's the UK
or rather, England and Wales
12:05
wow
didnt expect that
Though this isn't "how much did they consume", but rather "how many people in that age group consumed it in the past year"
Im very surprised by spots 1-3
@Nzall now we know why this squirrel guy is acting weird @Wietlol
;)
I think I found what caused it, though I'm not 100% sure. My getProjectStreamList() does a Collections.sort() on the list before returning it
Oh wait, it's even dumber than that
I have a different getter which has a bug that sorts a different list instead of the list of that getter
@Hans1984 how dareth you?!
12:20
:P
anyone knows how to run an executable when IntelliJ saves a file?
or should I instead make a listener for when the files have changed?
So turns out that getLevelList() performs collections.sort() on projectStreamList rather than levelList...
(the latter should still only run when IntelliJ has the project opened...)
(prolly going for the first would be much better)
Zoe
Zoe
@Wietlol Yes! You change to Vim and use autocmd BufWrite or something along the lines of that c:
I'm not 100% sure whether it's a good idea to sort a list in a getter, but still
12:23
or you can not go for insanity and just be a good fox :D
12:36
@Nzall it isn't
13:12
@KarelG Could you elaborate on that or provide a source on why that isn't a good idea?
13:24
/javadoc DrawPane
@geisterfurz007 Sorry, I never heard of that class. :(
hahahahahaha
@Nzall getters should be pure imho
dont change any state whatsoever
(perhaps have different results, but changing state should never be a thing)
@Wietlol The problem I have is that these are getters for Spring serialization to JSON or XML, so if I want to sort right before presentation, these are the last stage I can do so.
give it a different name
13:30
Like, I could copy the list, sort the copy and return that, or I could make an utility method for sorting that I call before I have to return
make them private? :D
getListSortedBy(Comparable sorter){
  // copy + sort
}
such methods should be part of a serializer
not of your model
Can that be done using Jackson or JAXB annotations?
getSortedList() if you cant have parameters, which I assume for a serialization library
13:31
as Wietlol said, if you want to get an object you want to have it in pristine state, no touchey in getter method
there is even the question of why you need it to be sorted
maybe move that to some other place?
@Wietlol Yeah, that is true. I only need it sorted during the export, not when I'm importing afterwards.
And it's not a good idea to sort it every time I call the getter either
sort on import lol
you cannot guarantee that the import has a sorted list
Yeah, and that's not the intent either
or sort even later
13:36
Here's the thing: I'm exporting an object graph, and I want to ensure that in the resulting XML/JSON the elements are sorted by their ID. I have already made it so that every class that I export implements Comparable with compare logic this.getid().compareTo(other.getId())
There won't be duplicate ids on the export either
but when the data gets imported again, the data might be malformed and HAVE duplicate ids
but why sort on ids?
@Wietlol So it is easier for human readers to update a specific entry in the object graph. It can already be hundreds of elements nested up to 7 layers or so deep
are hoomans going to edit the xml?
perhaps that is your problem
@Wietlol That is the intent, yes. The export and import are meant so projects can be duplicated with deeper edits, or moved from one system to another
The problem some of our clients have is that they have a very large project in their test environment and they want to copy it to their production environment
you can map your data models so they are sorted
13:44
but in order to ensure that things match up, there might need to be done some minor edits like changing certain references that aren't exactly the same.
@Wietlol "map your data models"?
I don't quite understand what you mean by that
but I guess that the editting of the xml/json is your bigger problem
@Nzall a mapping operation is just a conversion
this operation would take your model, sorts it and returns a new model with the sorted data
@Wietlol ah, so you mean a custom adapter that outputs a sorted list?
not an adapter tho
I know how to do that for XML but not for JSON
just a function that converts the model
that is not yet xml or json
that is still in your Java code
13:47
@Wietlol Yes, that's what I meant by adapter, like a @XmlJavaTypeAdapter(GlobalRefResourceAttributeMapAdapter.class) annotation
for JAXB
That adapter is meant so the map doesn't have <entries> around the entry list but rather<attributes>
I mean something like this
that way, you can just use Mapper.asSorted(myModel) and serialize the result instead
I would advice you to keep the (de)serialization as simple as possible
if you need sorting, sort it before giving it to the serializer
Reminds me of the Bobby Tables xkcd strip. xD
@Wietlol Yeah, that was kind of what I was doing with the sort in the getter
@Michael I guess this is sort of the opposite
funny thing still is that bobby tables is easily fixable
Zoe
Zoe
14:02
Ouch
but the NULL as string part is something that still happens a lot
That's an example export. Note that it's not complete yet, there's another 2 levels that need to be added to the levels
Zoe
Zoe
That's what happens when you don't sanatize your license plate inputs :]
And the way that it's modeled is that there's 2 layers of tree: an inner tree containing just the data, which includes the sorting, and an outer tree that's just a wrapper around the inner tree where each outer element has a 1 to 1 matching to an inner tree object, with the Java annotations needed for JSON and JAXB processing
If someone asks me why I dislike JS...
Zoe
Zoe
@geisterfurz007 it isn't youtube.com/watch?v=vINkWUe874c ? xD
14:45
@Zoe That's what happens when programmers don't properly type-check their variables... xD
No, NULL is not the same as "NULL".
Java developers, I come in peace. I'm a PHP developer
I wanna ask a question here because of the enterprise nature of Java language, I wondered you guys could help me out.\
grab ze pitchforks and torches!
It is a PHP developer!
what is the question?
I'm working on a new project and I wanted to make sense of it before start coding. See how everything works together before start coding, etc - we all been there. Can you guys recommend me any tool or methodology for doing this?
14:51
@LucasBustamante for... what exactly?
I always have a "sandbox" project opened to do some testing with weird libraries, proof of concept snippets and stuff
I thought this would be something that would require no further explanation.
I mean, I know how to develop. That's not it.
@LucasBustamante So we're clear: you're talking about setting up a new project from scratch where you don't have any code yet and you want to first figure out the rough schematic of the project?
Yes. To layout the software architecture beforehand.
As in the rough structure and the technology you want to use?
Zoe
Zoe
oof xd
nvm then
3 messages moved to Trash
14:53
as in project structure?
(I should definitely make a maven project template for stuff...)
but imho, there isnt much to actually make a template for
the only thing I would do is set the java version properties to something more sane than 1.5
@LucasBustamante can you give a concrete example of what you want to solve?
I want to start a complex software project with conscious design and architecture based on the translation of the client needs into software-level requirements - I want to build this conscious design and architecture, at least some of it, before start coding the project
For that I wonder if there are some tools or methodologies that I could use
I suppose you could set up a project with several maven modules, each would have their own stuff in it
a colleague of mine used to separate things in a few modules
> Core
DtoModels
Interfaces
Services
Repositories
RepositoryModels
eventually we found that it didnt add anything of value to us in our microservice architecture
I see. Well, these are the lego pieces, I want a manual
to be fair, I never used a manual
Something like UML, but different - more abstract
15:06
and I dont really think I need one either
considering you keep things small, you could draw flow diagrams
yeah, I like flow diagrams
we use microservices, which we design using a flow diagram, which explains the flow of each operation
if we cant fit everything into a small flow diagram, we are probably doing something wrong in the first place
our flow diagrams are mostly just lines between blocks of AWS services
so, we dont really design our code with it
no class diagrams or anything
hmm... I recently looked at some sketches for my serialization library
found one of the example data classes
I suppose that might offend someone
00:00 - 16:0016:00 - 21:00

« first day (3216 days earlier)      last day (1949 days later) »