« first day (2683 days earlier)      last day (2262 days later) » 
01:00 - 15:0015:00 - 00:00

3:00 PM
718
Q: Single quotes vs. double quotes in Python

ReadonlyAccording to the documentation, they're pretty much interchangeable. Is there a stylistic reason to use one over the other?

 
XD Thanks
 
@mr5 crappy custom UI layer
huawei/samsung/wathever force delay for animation/aesthetics
 
no need to say it, I'll spend the afternoon in the noob corner with a how to use google tutorial
 
@TimCastelijns didn't use LMGTFY, -1 point.
 
k
plenty points left
 
3:04 PM
makes calculations
 
> typeof false === 'boolean'
returns false
thank you typescript
 
well
it's correct
 
wat
 
=== was EQUALS ENFORCING TYPE last time i checked TS.
so a = "true"; if(a == true) returns true, but a = "true"; if(a === true) returns false.
maybe i'm wrong, but that's the feeling i had
yeah, i'm right. == is type conversion, === is strict comparision
just like != is type conversion, and !== is strict comparision
 
allright got it working
 
3:13 PM
 
should have been like this if (typeof value === 'string' || typeof value === 'boolean')
how do i avoid the second typeof syntax tho, can i not spaghetti it together
 
> if value !== false && value !== true
anything not those is not a boolean.
if your field can only be boolean or string, that's the least unreadable thing that doesn't play with types
 
Why are you using typeof at all?
 
@mr5 sure it's not the phone you're using or are you using a complex layout?
 
3:31 PM
What else would you use?
 
@MuratK. what problem are you trying to solve?
 
It's a query maker component you throw in a form and it makes you a query out of it
 
it's a hardware controller issue murat
depends on who made the touchscreen driver, the phone will be more or less faster
newer benchmarks put iphone 6 and onward quite low, on the 60-70ms scale
galaxy S8 has 89ms, pixel XL 2 87ms, OP5T 90ms
huawei p9 is on 160ms afaik
 
Why is the razer phone not on that?
 
too early
 
3:35 PM
oh :(
 
this graph is from 2015
 
Would have been nice to see the response from it compared to other flagships
 
the added others come from a benchhmark i jsut saw
there's a benchmark form lesnumeriques but it's skewed because they didn't use usb-c to run on the usb-c phones
so the response time on the debug console is way slower (10-20ms) from the same devices benchmarked using usb-c
 
user443346
@MarkO'Sullivan Noice bait mate
 
iPhone 6S was the best iphone ever on latency, with 23ms
new ones are around 40-50ms
maybe due to the bigger screenies consuming more resources?
or the 3D touch thing
so @MuratK. is right and wrong at the same time, there is indeed some touch input lag on every android or ios device, but it's not faulty of ios or android but whoever manufactures the touch screen unit
HTC is android's best touchscreen maker apparently
go pixel!
dunno how they made the htc one so fast tho
i saw it premiered on mwc 2015
 
3:41 PM
huh, it has nothing to with mobile
i had a syntax missing :o
 
:D
so @mr5 you got the lag thing question solved?
:D
 
@MuratK. hmm...not sure how I would solve that. I need to get ready for work now so maybe we can talk later.
 
@Q8Coder you have access. Start by reading the rules and confirm you have read them before saying anything else
 
@Jordy what?
 
user443346
@MarkO'Sullivan The Razer phone is a total joke :P Except for the 144 hz screen, that's pretty cool
 
3:49 PM
@Jordy I was talking about the screen though :( it's very responsive
 
user443346
Fair enough ^^ cant argue with that
 
do it anyway
you're on the internet
 
Tim with the hood
 
I have read and understood the rules.
 
:D
greetings Q8Coder
feel free to enjoy the technical knowledge of screen reaction times and typescript type comparisions compressed between dank internet memes and cat gifs.
:D
 
3:53 PM
The dankest of memes / gifs
 
gotta steal that gif
 
everybody always reads the rules when I ask, it's so not what I was expecting
 
your banhammer is gonna get rusty soon
the hell.
 
@CptEric sharing is caring
Please tell me someone in here has experience using ItemTouchHelper.Callback?
It's a nightmare to use, I cannot click anywhere within the layout without it triggering back to the original position, I'm wanting to click the background layout to trigger onClick callbacks
 
what are you trying to achieve?
 
4:00 PM
> triggering back to the original position
what does that mean
 
think of us as lazy 40yo 80k/year salary sanfrancisco-living repo mantainers.
 
pitch your issue and pray we find it interesting
 
^
 
Easier to explain with an image, it was the swipe thing I was working on last week. So I swipe one of those cards to the right, it moves off the screen about 1/2, another layout below it is revealed with an edit button and delete button. If I click anywhere in the layout containing the card, it'll reset back to where it was before I swiped to the right.
I'm wanting to trigger the onClick callbacks for the buttons but anything I do to trigger it, whether it be onTouch / onClick, doesn't trigger at all and just seems to result in the swiped card resetting back to non swiped state
 
back from the noob corner \o/
 
4:06 PM
you can play with returning true/false on onTouch or onClick to tell the system whether or not it needs to propagate the event further down the chain
 
^
 
You reckon it'll be in onTouch / onClick triggering the reset? I'm trying to avoid that and whenever I checked the sources of ItemTouchHelper,Callback, I couldn't see anything which affected the onClick / onTouch
Wait maybe I should extend ItemTouchHelper
 
time 4 home
 
the callbacks are independently triggered one after another, but you can stop the execution by returning true from your callback handler
the order of handling depends on the view hierarchy I think, so it might not work depending on your setup
 
So if I just set an onClickListener on the entire ViewHolder I can override what happens?
 
4:18 PM
o/
 
yes, but that is dirty
 
The dirtiness is on the viewers eyes
 
"if the eye of the viewer is dirty, the wallet of the maker is empty" - wise man 2018
 
4:33 PM
@TimCastelijns what's a cleaner approach?
 
My spotify decided to switch to spanish, out of the blue
 
@MarkO'Sullivan actually moving the upper view out of the way instead of only making it seem to have moved
I guess
I'm not good with UI stuff, ask mauker
 
@Mauker
I have moved it out of the way
 
@me
 
I'll show a screenshot
 
4:37 PM
I believe I pinged Mehdi by accident lmao
What's up Mark?
 
How do I trigger onClick / onTouch for E / D button?
 
Hmmm
It depends on your setup
 
I have tried setting onClick / onTouch listeners within the SwipeController... maybe I should try it in the recyclerview adapter
 
Are they children of that item?
 
Essentially the recyclerview items have two layers, the 2 at the bottom you can see the top layer frame layout containing the round info, the bottom layer is the buttons which I want to click on
 
4:40 PM
Ok
I believe that if you set the listener on the adapter it might work
 
Doing that right now, I reaaaally hope this is the solution
 
I think we have discussed a similar issue here a while back
 
were you using a lib for this swipe stuff?
 
Nope
I was going to but it looked pretty simple to do without a lib
Time to test it out
oooooooh
 
m8 bro, never make stuff yourself if there is a lib for it
 
4:42 PM
When I want to set listeners to parts of my view on a RV, I set it when I bind the view
 
Hmm didn't seem to work but I've seen the onTouch callback come up in one of my swipe classes
 
@MarkO'Sullivan Is that a good "ooooooh"?
 
o/
 
o/
 
fs
onTouch is on the card not the bottom layer
 
4:46 PM
o/
 
o/
 
how can your card's onTouch be triggered when you are not touching it? It was moved away right
 
Sometimes when you move a view, it's only "visually" moved
but the listeners are still working on the original position
 
the onTouch was triggered only when it was being swiped
If I touch the area behind it or away from it, onTouch isn't triggered
 
Did the listener work, mark?
 
4:49 PM
Which one? I have about 10 atm :D
Setting any type of listener on every view component
 
for the bottom buttons
 
nope
What a useless piece of shit this component is
 
check how this guy does it
 
or better yet kick your designer and don't use iOS UX
 
lol
i've seen it in Android apps before
 
4:56 PM
@TimCastelijns hahaha
Me too
But it kicks material design in the balls
You know what would be way easier for you to do?
Expand the item to the bottom, and show the action buttons
Like I'm doing on ChatSE
 
every time an app does this, a CAB somewhere on the world starts crying
 
Only thing is, I already trigger the app opening up the round if it's clicked on
unless I do a dialog box whenever they long click
 
click and long click are easily distinguishable
 
you could also place a button for that, like an arrow
 
some say android has those events built in. They are right
 
5:00 PM
or, open on swipe
 
On swipe one direction for one action would probably be easier lol
Anyway, if I do get this working, I'll try and do another example and post it as a blog post so everyone here can recreate it if they want to in the future
 
pls don't spread this cancer
 
These awkward designs are the problem, if I can help out other devs implement a solution for it then I will :D
 
Yeah our designer and I talked about that feature before, think he wanted to use it for something else
Okay after looking at both those libraries, they both don't use ItemTouchHelper anywhere. ItemTouchHelper is the problem lol
 
5:19 PM
Burn it down
WTF, my images are aways being sent twice
 
Stripping down this library down to just horizontal swipe
 
5:36 PM
Tell me how it goes
 
Well it has some really weird behavior whenever you swipe on recyclerview
god damn
 
I too have this love/hate relationship with RV
 
I seemed to have deleted something, hmmm
I'm getting closer
 
I registered 1wtf.com
any ideas what to do with it?
 
Anyone here doing any sort of advanced architectures on their apps? MVC, MVVM, MVP, VIPER, etc?
 
5:48 PM
Just the MOS pattern
 
Not sure if it's advanced but it works for me
Mark O'Sullivan :D
 
lmao
 
we are toying with the MVP architecture right now and considering VIPER as an alternative
and it's been a long time since I've had to think at this high of a level for architecture
 
5:54 PM
Same here
I believe Adam had his share of MVP and MVC
I worked with MVC on Java desktop applications
 
I've done some MVC stuff in Rails, but only a little tiny bit.
 
java desktop applications using Swing?
or javafx?
 
Both
 
i have done a little with swing. by the time i tried javafx i was into android
 
But I customized the LAF
This one was made for a restaurant
 
6:01 PM
nice.
has any one seen a design where otp is in a BottomSheet and when edittext is focused the bottomsheet is hidden.
all ui elements hidden when keyboard opens. I asked the designer if i could use a dialog of otp instead of bottom sheets
 
6:18 PM
@Raghunandan thanks!
 
Think I've stripped everything down apart from the left / right swipe now
will add it in tomorrow and see if it works
 
ok bruv
 
Okay
 
6:34 PM
hey
 
ho
let's go
 
where?
 
> I find this a curious term because there are few things that are less logical than business logic.
 
 
1 hour later…
8:23 PM
o/
@Code-Apprentice I beat you this time ;)
 
@TristanWiley I figured. Was too lazy to find your link. I watched it during my lunch break.
 
9:08 PM
o/
 
sup broseph
 
Just livin' life in the new city. Getting settled in. Start my new job tomorrow! :D
 
How are you, Tim?
 
getting used to being the dumb guy at work
 
9:15 PM
aw
Have you asked Jordy for noob tips?
 
he will claim he has none
what will you be doing at OkC?
 
Working on the Android app. Not 100% sure in what capacity yet.
 
Kotlin evangelist
 
What mehdi said
 
9:21 PM
what shirt will you be wearing?
 
For my first day? I don't know yet lol
 
 
1 hour later…
10:28 PM
how does okc stack up tech wise @adam
think they do kotlin right?
but like rx and stuff?
 
10:51 PM
I believe they do. I'll know more tomorrow. :)
 
11:40 PM
Everyone in this room needs to read this
 
o/
 
01:00 - 15:0015:00 - 00:00

« first day (2683 days earlier)      last day (2262 days later) »