« first day (1854 days earlier)      last day (3319 days later) » 

08:00
:D
for example, Erlang VM does not have to stop everything, because memory is not shared
and this is cool
um, so threads can't share classes?
C#'s bloat is mostly in the standard library, which has a lot of legacy classes. And some new classes are badly designed. Sometimes because of deficiencies in type system: there's Func<…> and Action<…> types, but they differ only in that the latter doesn't return a value
@LeoLink which classes? there's no classes
oh, different base concept
ah
08:02
if you want to learn Erlang, it's better to read a book about it :)
in that case you should like the new ASP.NET vNext
in which they remove a lot of legacy bloat
although Action and Func will still be there, because it's inherent to the type system
i haven't found any gc problems yet
yes, type system in C# sucks
and honestly I don't agree that these classes are bloat. I think there is a valid conceptual difference between a function that returns nothing and a function that does return something
function that returns nothing is equivalent to a functions which result set is of Unit type
08:04
what's wrong with the type system in C#
can you give an example of a better type system then?
btw, this could be fixed, if the compiler "knew" that the "void"-"returning" functions are the same as Unit-returning functions
the presence of void is one of the reasons why C# and Java type systems suck
@Moeri Haskell, for example. Or lack of static typing altogether
ah
i'll be learning Haskell next year
so I'm intrigued
unfortunately Haskell seems to prisoned in the academic world
some people use it in production
although a lot of its concepts are being introduced in other languages that are slowly creeping into the enterprise world
but it's less popular, of course
08:07
scala and F# come to mind
yes
although they have their own problems
yeah I can tell you are a bit of a purist
but I used them in the past and it was kinda fun
but when you make enterprise applications.. purity is unsustainable
you HAVE to have side effects to do anything meaningful
well, Erlang is used in production succesfully
08:08
F# does a best effort by encapsulating side effects as much as possible
I'm not talking about side effects…
@SargeBorsch why?
@CptEric because void produces another kind of "functions" which are not compatible with normal functions
because function, by definition, returns something
08:11
i don't see the non-compatibility apart from a dictionary reading of code.
mr5
mr5
can't that something be nothing?
what does a public void potato return? nothing, void.
mr5
mr5
and I think that's the only use of void?
languages that force to write a return statement cringe me.
that's just another problem, but now with syntax
mr5
mr5
08:13
@SargeBorsch Maybe it has something to do with Math?
what Sarge is saying is, every function should have some type of return value
but, is it useful for them to return something ?
@mr5 in this case, it's purely practical
or should the programmer decide so?
yes, because then all functions can have 1 generic type
08:14
the question is
@SargeBorsch what's the advantage of the "Unit" type you spoke of that "Void" does not have?
and then there can be a shorthand syntax for functions that return Unit type (which has 1 value)
@Moeri because Unit is a proper type which has 1 value
and void is not even a type
and what does it do?
mr5
mr5
Hmm I can't argue further as I don't know the low-level implementation of a function
i mean
in Java, Void is a type actually
08:15
i have a function that calls an asyncronous thread
but I get what you're saying
return is futile in this case.
Void is not void
true, but it's what people use for callbacks and so forth
08:15
I was born and raised by void!
you won't have to explicitly return something when return type is Unit
which kind of removes the argument that "void" functions are not compatible with normal functions
it's already obvious that there's only 1 thing it could return
what does unit contain then?
@Moeri it's just because they have to
08:16
is it an empty class?
@Moeri it doesn't contain any information, because it's a type with only value
so, compiler doesn't have to generate code which really passes a dummy value
"Unit is a subtype of scala.AnyVal. There is only one value of type Unit, (), and it is not represented by any object in the underlying runtime system. A method with return type Unit is analogous to a Java method which is declared void."
@CptEric yep, that's how it was done in Scala
i don't see the usefulness of it
well I guess it makes life easier for people who implement compilers and do language design
and it provides better consistency
but for daily development? doesn't make much of a difference I think
08:19
it can be seen when writing generic code which deals with functions
Implicit Unit return type:

def f() {println("ABC")}
Explicit Unit return type:

def g(): Unit = {println("ABC")}
so it's basically a void in a practical scenario
moving forward Unit seems like the better choice
but I disagree that this is an argument for why C# and Java's type systems are supposedly 'broken' or that 'they suck'
mr5
mr5
So you guys are talking about a specific language all the time?
these were just decisions taken in a time where people did not know better
mr5
mr5
Uhh I wonder if the Android make another branch of their Java Runtime
08:22
in kotlin it's the same apparently
@mr5 I read that Google has a side project that is trying out Dart for Android
exactly my thought @Moeri
was going to paste this: dartlang.org
it looks like they're trying some stuff out, and if it works well, they might go in that direction
mr5
mr5
DART?
yeah
mr5
mr5
08:24
Ohh
I thought I read DALVIK
So the chance of supporting Java 8 in Android is 0%?
As they have branched out their own
google is constantly exerimenting
don't take it as a "we're doing this from now asap"
mr5
mr5
Is DART different from ART?
dart seems cool
easy maps
wohoo.
08:42
1 message moved to Trash can
0/
08:59
Art is the runtime for Android, it replaces Dalvik
well, my first experiment with switch widgets inside a listview has been really decent.
09:28
Nice read.
good read but i disagree in the hamburguer menu thing
it's more user friendly to have a swipable menu than hidden tabs nobody knows they're there.
for these things instead of prettyness, we should do the grandpa test. give the phone to grandpa ( or father, if we're old enough to not have an available grandparent), and tell him to search for X.
if he can find it, it's usable.
bc t, on most of the apps today the user is average joe or average josephine, mid 40's not-really-knowing-what-to-do-with-a-damn-smartphone
(and the population pyramid on western countries is with me on this, there 3 over-40 living persons for each under 25 living person.)
wich makes it not a triangle anymore...
the population .. hmm... pentagon.
feels like giving himself a UX design lecture
claps
@McAdam331 how did the security thing go?
not for me
it's up for me
it's back now
downtime of 10 seconds
skynet's taking over the world.
skynet's taking over the world... on a friday. Is it a bad or a good move?
09:50
Good move
it's good. nobody's caring anymore and is preparing to party / slack
wouldn't saturday morning be a better move ?
nah, there's the 24/7 guys on guard
friday afternoon is the best time for everything to break and blow up
been IT on a big(gov) project, know what i'm talking about XD
haha
if something blew up on friday (after 10am) , there was no hope for users
'cause the 24/7 T-systems guys start working at 6am saturday, and the friday turn ones are in charge of the backups only, and etc, and blahblah, and the supervisor of telecomunications just left early so there's no way of sending an emergency sms....
hehehe
10:08
hey guys, quick question
is it possible that recyclerview has some serious trouble when you change the layout parameters of items inside it?
i saw on SO that you should create separate view holders for different views
but the truth is, my views are 95% the same, only some minor alignment and height changes per item
i haven't seen any problems yet
when I scroll up and down
the yet is important, though
it's all wonky
every time i scroll down and back up, things have changed :D
when I implement the exact same thing with separate view types, it works perfectly
different view types it is then. i think none of my recyclerview cards have variations on their parameters
10:11
the data is the same
so, the card always has the same size , it's the inner elements that change in my case
ah yeah well
i have created a sort of timeline
so on the hour, the timeline has a bigger circle
and the first and last event on the timeline have a halved line height
check that you haven't set the "sethasfixedSize=true"
nope, not set
it's okay, i'll just switch to the multi-viewtype solution
just a bit sad that it doesn't work
then it might be true that you need separate viewholders
yup
i haven't digged enough in the recyclerview possibilities
for now i've jused used the default behaviour and the swipes
10:15
have you done any work with the collapsing toolbar?
i really love the idea, but it's tricky to get working
i took an hour out of my day last week to try and get it running
but i had some trouble getting the title content to play nice and scale smoothly
btw JStreams 1.1 is released github.com/amoerie/jstreams /shameless self plug
not yet (toolbar thing)
this tutorial might fit you
seems very smooth
i saw that
but i dont have an image
but it's okay, it's a "nice to have" kind of thing, so low priority
hi
heya net
10:31
eric, you finished that app of yours. I think you posted some screenshot yesterday or something
working on it
finished the initial design and the login
and some activities
but the hard part is still coming
schema creation on the app and model-from-schema generaton on the php
i want it to be user friendly on the app side so i was thinking on recycler + dropdown
might post more this afternoon
the idea behind is users 1 - n* projects 1 - n* schemas 1 - n* schema attributes
* = to be fined by inApps
... once again someone who added API endpoint urls into strings.xml .... for christ sake!
ugh
where do you put those endpoints though?
they should die a slow and painful death!
hardcoded in data services?
10:43
> buildConfigField "String", "API_URl", "\"myAwesomeAPI\""
in your flavor!
ah we're not using flavors yet
i've got them in my ApiManager class XD
we have one starting endpoint under assets in appconfig.properties
then the entire backend supports HATEOAS ( en.wikipedia.org/wiki/HATEOAS )
reading property files is overhead imho
and endpoints do not change while app runs so make it constant with flavors
do you have an example of how that works? and how you read it out in code?
10:48
BuildConfig.API_URI is a string constant you can use everywhere
ah so it generates a java class? interesting, never heard of it
no overhead to read a file first
BuildConfig is always there, you just add constants with gradle using flavors (or default config)
i make all my calls on the same class so i use private constants. that's not bad right? @_@
using getter methods?
i've broken the app flow so the controllers of the activities have no idea on how to grab data, just know who to ask it for and wait for it to come
answering your question, yup, kinda getter methods.
10:52
that sounds good
btw using strings.xml can create issues:
// FIX for stupid crapshit that converts a string resource to integer...
thats what I found in code and checked. It is true
so i make ApiManager.getNews(User n) - > the getNews grabs the constants (getBaseApiUrl + getApiVer + getNewsUrl) , sets the html attributes and waits for the callback.
do you guys have different text sizes at different dpi levels?
^sometimes
using <string>123556878908988754232253</string> is somehow converted into integer and therefore, if the integer is too big, you have an overflow resulting in a wrong integer
hmm interesting
i've never done it, just relied on one text size, seems wrong looking at it now
10:55
jsut when having too diferent dpi sizes
like phone vs tablet
not when phones are huge these days
we're making this change because the text looks small on a Nexus 6P
yeah warren, xml strings are weird for url's
All those quad hd panels
a 6p is a phablet
yeah
10:56
do not lie to me
XD
it's not a phone anymore
soon all phones will be like that
the 5" will remain, not everybody wants big screens
and the 4.5"
i reckon i'll just have one text size for normal phones, and one for xxxhdpi
cos that resolution is crazy
tempted to drop support for mdpi at this point
< max size for my phone is 5"
same here . it has to fit my hippy waist bag
11:01
@WarrenFaith will you upgrade to 5x?
Happy Rebecca all!
what?
rebecca'
?
Are you new here Eric?
i quite liked the big one plus one when i had it, so got the 6P, not too bothered by the big screen, quite like it
a smaller phone would be more manageable though
thanks @WarrenFaith just implemented it :-)
the buildConfigFields thingy
11:05
@OcuS maybe.
@CptEric I am dissapoint
Just search my message here in chat and 90% should be rebecca
is ashamed of himself
the girl of the friday song
ok
yeah
it wasn't enough famous in my country to become a thing though.
Internet is my country.
time to lunch
see you alter
@CptEric You should be :D
@CptEric enjoy
11:30
@netpork hell no
5X is not even close to be good enough for this price
and 5,2"
12:25
I just read this
> In addition Europe, amongst other countries, faces a shortage of over 800 000 IT workers by 2020. We need to retain skilled workers in tech.
shows how stupid people who think like this are
there is no shortage.
there are already too many
and Europe is not amongst other coutnries ^^
@Ahmad I doubt there are too many skilled workers.
that was the point hughzi
there are netpork
there are enough
depends what you mean by skilled
if this craze goes on everybody will want to flood into tech
12:29
for me, the skilled guy is the one who made linux and git ;)
not the app with material design and recyclerView
true, but most things don't require that kind of skill
there's a shortage on some countries though , ahmad
for example, here. but for obvious reasons, most salaries are shit so people flee away to germany or uk
there is a shortage on people willing to take shit jobs paying shit
now imagine
what will happen if more people go into tech?
will these jobs suddenly become better?
will they start paying better?
or maybe it will even get worse because there is not enough demand but a lot of supply?
yeah, just wanted to point out where they got their data
12:48
you are right Ahmad. A good friend of mine also told me the other day that he need to learn ios or android development because knowing c/c++ is not enough anymore to get a decent job. everybody wants to go mobile it seems.
12:59
a good CS foundation and perhaps some experience is all you need to get into mobile
I found the startup time to get into Android very doable
whichever platform you choose.. it's always the same patterns
13:24
Greetings mortals! o/
I want to devoxx yesterday and the day before!! :D
Super excited!
I'm closer to being a git wizard now!
@netpork yeah I agree. For as far as I know he's the only person who truly understands git
@Ahmad Well I've never heard of there being too many.
Yes there are skilled people who don't easily find a job but that's because they either don't want to do other technologies, don't want to work outside their immediate neighbourhood(i've seen a few like this) or recruiters don't understand that they can learn a different language/framework/whatever without having to start from scratch
Lol, I type "sdfghjk" in google to test if my internet works properly and I get images of the butts of girls in bikini/underwear
ah @miva2 how was Devoxx :)
14:09
Hey guys
Good morning, room
Good morning :)
eating olives right now.
#MediterranianDiet
I'm eating a doughnut right now. #AmericanDiet
now an orange
14:15
I'm leaving school early hehe
I'm telling your father
i'm telling adam
Just walked up behind a coworker and scared her. Nearly made her spill her creamer...victory!
LOL
I want to work with you
lol
funny
still, @nil has the best job prank ideas
14:26
@Mike write access here requires a min 100 rep and we like to see at least a 1:1 Q:A ratio. Give some more great answers
We get people pretty good when they are gone. I had once guy tie a firecracker to my chair (just a popping one) so it made a loud noise when I pulled my chair out. We recently siran(sp?) wrapped everything in a guy's office who was on vacation, including his doorway
We have fun when we can
sounds fun cM! :D
@Moeri Devoxx was awesome! Well it's my first devoxx so I felt kind of excited about everything haha
someone stole my JFrog shirt though :(
oh well, it was too small anyway (...but it was a real nice shirt)
The session I looked forward to most seems to have been cancelled though. something like "hack your own android rom" or something like that. I'm sure it was in the schedule in september but was nowhere to be found now
apparently a must see talk was "silver bullet" or something like that. I missed it as I was following another talk. but it's on youtube somewhere
14:57
ugh
been struggling with an RxJava problem
found out it was a bug
properly reported the bug like a good citizen
they tell me "ah just update to the newest version"
that's 2 hours of my life i'm never getting back ._.
rt if u cri evertiem
15:28
\oo it is Friday
@cM you here?
ah, very cool stuff
@Eenvincible Kind of
What's up?
Good to see u
I updated my app again today so that you can just SHAKE IT to get new Quotes
Cool! I will update and try it out
15:49
Should be live later after an hour or two
And that reminds me of my favorite SO title...
183
Q: Android: I want to shake it

SaraI need to add a shake feature that will refresh my Android application. All I find of documentation involves implementing the SensorListener, but Eclipse tells me it's deprecated and suggest SensorEventListener. Anybody that has a nice guide to how I go about creating this shake controller?

Yeah read that ahaha
This is old but just came across it and had to +1 for the title — codeMagic Jul 29 '13 at 2:15
:)
guys, anyone using robolectric + cobertura in Android projects? I'm getting 0% coverage in cobertura reports :(

« first day (1854 days earlier)      last day (3319 days later) »