« first day (3706 days earlier)      last day (1249 days later) » 

1:17 AM
   OAuth 2.0 authorization requests from native apps should only be made
   through external user-agents, primarily the user's browser.  This
   specification details the security and usability reasons why this is
   the case, and how native apps and authorization servers can implement
   this best practice.
User -> removes browser from the phone
User -> now what?
 
 
7 hours later…
eli
8:43 AM
@IvanMilisavljevic you are genius
3
[ Hi ] all
@IvanMilisavljevic it was
 
9:37 AM
o/
@grrigore thanks
 
9:59 AM
@Code-Apprentice I'm already using Google Pay. Can't find an option to link it with Play account.
 
@JBis nice thanks
@Tim noooo stop making him invest more money
o/
 
Tim
10:17 AM
dude he is rich
 
10:32 AM
Flutter reminds me a lot of Vue so far
 
10:52 AM
This was the most starred message last year on this day:
Dec 9 '19 at 15:15, by Tim
plz some help iam making an app with geofence in the background its not work!!! plz send example code, thx
 
11:47 AM
Anbody use revenuecat? how's their service and support?
 
12:06 PM
 
12:42 PM
lol
 
1:06 PM
hi
o/
 
Tim
@SagarV I wouldn't take any service with 'cat' in the name seriously
 
1:28 PM
lol
I heard about it from this answer stackoverflow.com/a/55835182/2427065 hope it's genuine.
 
2:12 PM
whats going on with the chat?
 
2:27 PM
pokes the chat
It seems to be dead, Sir
 
2:43 PM
o/
it feels weird to no longer be a student
 
You can always get another degree
 
true. but not everyone have that chance
 
Or you can get a salary
 
3:01 PM
From experience, you do more with a salary than with exams. A degree is nice tho... to get a salary after
 
3:22 PM
yeah. A degree is nice to have. saw many people who have multiple degrees and doctorates.
 
eli
3:57 PM
if you can't change ur life with ur first degree just don't add the second one. I once found this quote in LinkedIn
 
before degree, I worked as freelance php fullstack dev. after degree, I got placed in a company from campus selection, worked as Angular dev, worked for 10 months and now freelancing as fean stack and flutter dev.
 
nice im now building a flutter app myself
I'm looking forward to participate in the workfield but I despise office-like areas
 
Tim
lucky for you there's a pandemic raging that has us all working from home
 
yeah
 
eli
4:14 PM
you have vaccine now
 
exactly. I don't like spending 9 hours in an office environment. I feel tired when I came back from office and that entire day is wasted. * 5
 
I rather have covid than office space
 
eli
No Mb. That is a monster
 
maybe we already are in a dystopia
 
we have a new candidate as replacement of covid-19 currently being called eluru mystery disease
 
4:17 PM
If I have an "Order" table with a foreign key to the "Product" table, and a user calls POST /orders to create an order. Should I explicitly check whether the user inputted Product id exists or lets the database fail (due to the foreign key constraint) and handle that error?
 
@asim wait, what
I just graduated and now this happens
 
eli
Just check and inform the user what is the problem JBis
 
@JBis why should someone be able to place an order if there is no product? You can already prevent this with hiding/stoning buttons
 
@JBis doesn't make sense because should not be aware of product id, just the product and every product should have an id, but you should implement id exists checks
 
and if such thing occurs the db constraint will handle the error, ofc the user must be notified on this error too
 
4:21 PM
@MwBakker They shouldn't. This is for the backend. My question is whether I should let the db handle the check or I should do it in the application. Either way the error is reported to the user.
 
@MwBakker NO! user should never be notified about database related errors, only general errors
 
@JBis validate it yourself
 
@eli The question is where should the check occur. DB or in application logic.
 
@JBis app logic
 
@asim I didn't mean the exact error, just that input failed or such
 
4:22 PM
Ok. That's what I thought. Thanks.
 
@JBis in application
why send out a faulty queue if you can prevent it being sent
 
well it's an extra db call that is theoretically unnecessary
 
@asim pls elaborate
 
also you introduce a slight race condition, although it doesn't really matter
 
eli
@JBis Application logic JBis
 
4:25 PM
@JBis what do you mean, you can check the queue before sending it. "does order have product id yes/no"
 
elaborate what?
 
that mysterious virus
 
@MwBakker In order to check if the poduct id exists it would be a db call.
 
point is to prevent crashes and unknown behaviors, a single call to db is not that expensive
 
@IvanMilisavljevic as the db guy, you got any thoughts? (sorry for the ping)
 
4:27 PM
@JBis I thought you meant to check if there was an id attached to the order. But yes, this requires another call
 
> In early December 2020, an idiopathic disease broke out in Eluru, a city located in the southern Indian state of Andhra Pradesh. The first case was reported on Saturday, 5 December 2020, with hundreds more falling ill over the weekend and one person dying.[4][5] The primary analysis identified organochlorine as a plausible cause.
 
@JBis i would let the db handle it
 
@asim here we go again...
 
there is no need to do extra validation
just catch the error on BE and react appropriatelly
 
Also, depending on programming language used and environment, you should already have list of products and their respective ids available in a variable to validate the orders from without querying db
 
4:30 PM
@IvanMilisavljevic Interesting...How would you detect the type of error from the db? There are some error codes here: postgresql.org/docs/10/errcodes-appendix.html but I think it'd be difficult to detect which column is the issue.
@asim i wouldn't store this in memory
 
i mean dont expose db error to the user
catch in on the BE
 
eli
@IvanMilisavljevic why should i disturb the db just to get an error ?
 
Closed as opinion based
 
I imagine it like a truck doing delivery at the company, would you wait for acceptant to tell you "this is missing" or would you validate what is in the truck before sending it instead
 
eli
I suggested to handle it in application logic so i can send back to the user a reasonable response like Your requested failed because of this
 
4:33 PM
@IvanMilisavljevic yes. But i'd rather give a specific error message "product doesn't exist" instead of "db operation failed"/"unknown error occurred". So we need to detect what type of error the db responded with. I could be wrong, but I would think that could be difficult.
 
i might be wrong here, but why would you do this in 2 steps instead of 1
your proposed solution looks like this:
1 -> Check if row exists
2 -> Write row (db will still run fk checks)

My solution
1 -> Write row (db will run fk check)
 
@MwBakker you cannot validate what is in the truck before sending a minivan to the company first which comes back to confirm
 
I know
 
@JBis It should be really simple, you will probably use some kind of ORM that will do this stuff for you
and there is very finite number of exceptions database can throw in this scenario
 
@IvanMilisavljevic because as I said earlier, there could be multiple reasons of a write failing, imagine good orders being ignored because there was another sneaky logical error there
 
4:36 PM
@IvanMilisavljevic would you do some kind of switch/case or if/then to handle all possible errors?
 
So instead, handle everything properly which doesn't necessarily mean multiple validation calls to db, you can do validation in single query
so you can rest in peace later
 
Probably just if/then
@asim im saying exactly that, let the database do the checking for constraints
 
Ok thank you
 
you have to think about distributed systems complexity as well
if you have a single master + multiple read slaves
 
Next question, for custom API error codes. Would you just do some kind of enum? Or each error have a custom error class?
enum ErrorCode {
     UserAuthError,
     InvalidProductId,
     MissingKeyError,
}
 
4:41 PM
enum, personally
 
I would create a couple of predefines classes and extend per need
but that might not be the cleanest solution
 
what about something like that?
new APIError("AuthError", HttpStatusCode.BAD_REQUEST, "User/Pass invalid");
 
heyyyy bbbbbb
im learning error handling
 
Nitesh requested access. Rep: 21 - Questions: 3 - Answers: 1 (ratio 4:1.3)
 
4:56 PM
!reject
 
@Nitesh you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
1 message moved to Trash can
Just a gist, or pastebin
That's all we ask
And yet, JBis fails, over and over
 
Nitesh requested access. Rep: 21 - Questions: 3 - Answers: 1 (ratio 4:1.3)
 
!reject
 
4:57 PM
@Nitesh you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
@JBis niice nicenice
I got 12 hours of 2xOT from this weekends deployment, and the deployment ended up being rolled back lol
soooo I'll be getting a lot more money in the future too, gotta love overtime pay
 
 
2 hours later…
6:43 PM
anyone here ever use rust? what'd you think?
 
6:54 PM
rust and aluminium powder? no thats illegal
 
yes, exactly
 
nope
 
7:10 PM
The survival game, right?
 
o/
@JBis It's Russia's main export product
 
@Nyakouai haha that what I was thinking too
 
@MwBakker You got that mixed up with Lada
 
no, that's included in my term
@ballBreaker bro I finally graduated
 
ohhhhhhhhhh!!!!
You don't have to delay a year??
 
7:24 PM
Nope
 
fuuuck yeah dude!!!!!!!!!!!!!!!!
 
:D
It's quite a relief, can't comprehend it fully yet
Not going to ruin my plan to finish my oldtimer app though, it's my way of getting back at the field
 
heheh nice
man I wish I had a really really good RTX computer xD
my laptop is only going to be able to run cyberpunk2077 on medium/high nortx and I'm a little upset about it
 
What is so special about that game that it's so hyped?
 
7:39 PM
probably just because of the company who made it
also cyberpunk shit is dope
not a lot of games have done it
I personally am neutrally hyped about it haha, I've been purposefully avoiding everything about it, I only know there are 3 different storyline choices
 
and 792 genders
 
you get to customize what ur peepee looks like
apparently
 
I'm waiting for the new FarCry and the new S.T.A.L.K.E.R
 
Ribbit
 
nice
you're not going to bother with it then?
I finished metro exodus
it was decent
 
7:45 PM
@ballBreaker with cyberpunk? No
 
I took a day off for the release
On Friday
One of my friend took a whole week... last month
We still make fuf of him for that
 
I like fuf
fuf is good
 
@Nyakouai lmao
that's awesome
I have 19th-4th off
I wonder if I should just wait a week
 
Same :D Want to hang out?
 
haha if you want to come here
:D
 
7:48 PM
I just watched the trailer of stalker 2, I am so hyped
 
I'm not sure I can move my computer while running CP77 on the way
I don't have a power cable long enough to go from here to Toronto
 
ahh too bad
I wish I had a GTX 3090 right now
I'm going to have to replay this game in the future again with a new computer haha in 2 years
 
With some luck, this is going to be the new Skyrim
 
I'm glad I haven't seen any videos on it otherwise I would be upset in my quality difference vs the gameplay videos quality
I imagine it will be more along the lines of witcher 3 xD
although not exactly sure what you meant by that statement haha
 
@ballBreaker not me, won't spend this amount of money for just one or two games
 
7:51 PM
yeah definitely
I woulda just went with the 3080 if I was actually buying one
 
I still run a 970
 
niice
you could run cyberpunk on minimum
 
so far so good, but with the new farcry prob not
@ballBreaker oh snap, that means I wouldn't be able to sharply see the schlongs the developpers have put so much effort in
 
hjahaha
yeah thats mostly what I'm upset about as well with my computer only meeting the medium/high reqs
 
Same here
2070 super
I think I can do medium RTX or high. But that's it
The poor baby is not even 6 month old and already outdated
 
7:59 PM
hahah
at least your medium/high has RTX and is going to be miles ahead of my medium/high
so you shut ur mouth!
 
Yessir!
 
haha no don't
I just need to remind myself that it could have been worse, I could be playing this on my PS4 if I didn't get a new laptop
 
I could have resprayed my car twice if it wasn't for my year delay from school
I could have resprayed my car and get my motorcycle license, right before the appocalyps from whatever India is going to bring at round 2 pandemic
now I gotta act with the 9-5 office life knowing that my kids will have to become blacksmith or such in order to survive
 
I thought you said you aren't delayed a year anymore
 
I am not delayed another year
 
8:02 PM
or do you mean the one-year delay that you've already experienced
 
that one
 
gotcha
I mean, I would have been a millionaire if I didn't spend my 100 bitcoins on drugs
Can't really think about the past like that man, it's not good for your mental health heh
 
ough
I could ease your pain a bit
I knew a women who was married to an art collector. She was the only dutch woman in the region I lived and I had good contact. She always told me I had to help her sell some of her art, she didn't need the money
 
I would have had my debt paid off a long long time ago and had actual money being invested and saved.. if I didn't lose my job 2 years ago :'(
so would have/could haves D:
@MwBakker oof is the artist super famous now
 
I didn't want to make my relationship with her about money, so I stayed polite and didn't mention it too much or went on about it
Later some bloke from the gypsy side of town bought an artpiece from her for 1000 euro, it appeared to be a wooden masterpiece of one of the students in michael angelo's class
he sold it for 35.000 euro to a museum
I could have bought it for 1000, but I wasn't raised that way
Me knowing her was and still is the most important, it's not about her money. But man... didn't know she would just randomly give that stuff away like that
and I was invited to this 'giveaway' (selling cheap cause nobody to give money to after death) several times... oh well
I think there was appr 150.000 euro worth of items in her house
Hope that eases the pain a bit for your side BB
 
8:09 PM
hahaha
you were dating a married woman?
 
Nooo
 
Okay good haha, she was just a friend?
 
I was dating a spanish girl, I lived and worked in her town. This older woman was an exported Dutch
 
ahhhh gotcha
 
what is the human term for exported again?
emigrated?
 
8:10 PM
yep
 
that
 
gotcha gotcha
I understood that much at least just wasn't sure because u kept saying relationship
 
I dk another term
 
dam though, that sucks haha
Honestly if I didn't lose my job those years ago I would have been much better off financially haha
but I fuckin' hated that job so I don't regret it
But as such it resulted in more years of debt
 
A depression from a job you hate can be a lot more costly
 
8:12 PM
Although a silverlining is that this pandemic has put me on course to be out of that debt this year if I keep my spending low
 
not just financially but who knows what else
 
yeah exactly
 
@MwBakker expatriate, if you want to sound fancy
 
plus I just made ~$1k in overtime this past weekend lol so I'm doing well
and the deployment got rolled back lmfao so I'll be guaranteed another random $1k
 
nice work man
and you like the job, so you're good right?
 
8:14 PM
yeah man I like the job aaa lot more
aaaaaaaaaaaaaa lot more
 
in the end that is what's most important
 
yeah for sure
suck though because my life plans get put on hold for another 2 years because of that but oh well
Just pray to fuckin god something else doesn't happen to throw me back into it
But so far so good
 
don't look at it that way, life is not 'on hold' it's simply 'reschedualed'
unless you are dying ofc
 
haha true
 
in those 2 years you may have done other stuff that was a cool experience, right?
 
8:16 PM
oh yeah my life hasn't changed much other than my financial plans for the future
the sooner I'm out of the debt the sooner I can focus on savings/investing and not worrying about my spending as much
nothing else has changed though just more future plans
 
alright nice
 
yeah :D
Although that being said, I DO have my company pension that I try to remind myself of
I donate 2% of my paycheque into that every pay and my company matches 7% ontop of that so 9% of my pay is always being put away
although I only get that money in the case of losing my employment, or retiring
but the fact I get it back if I get fired will save me from what happened last time
I basically have a get fired for free card
 
 
2 hours later…
10:01 PM
@JBis yeah something like this
 

« first day (3706 days earlier)      last day (1249 days later) »