« first day (2526 days earlier)      last day (2645 days later) » 

15:00
@Luggage I might end up using 2 queries because I'm going to manipulate some data with js in between, but I'm interested, what if you also wanted to add selections from the author users?
'selections'?
select twats.*, users.* ...
something like that
ohh. then use my first example that had the extra join
@KamilSolecki They're still using their mouths
15:03
I aliased the users as 'author' so you can do that.
But note that it'll repeat the author data on every line of the results.
@Luggage oh, that works? cool!
select twats.*, author.*
or just , author.name
@Luggage yeah :/
@KamilSolecki I'm so hungry 0.o
query output is a valid time to have redundant data.. you are outputing 'transformed' results after all
15:05
damn, I don't remember the last time I felt actually full with food
but you can have it only return IDs and maybe fetch thr users data asyn later or some shit.
but for now, keep it simple. don't over-optimize while learning sql.
yeah, not sure how to handle it now
I was originally going to have the client fetch the users later on
but it's not too big of a deal if the network is decent
sure, for the sake of learning maybe I should do it the redundant way
1. Get all matching twats (SQL Query #1)
2. Get UNIQUE list of user ids from that list (in JS)
3. Get list of users (SQL Query #2)
or that, yup
you workin on twatter?
15:07
which is how a library like bookshelf does it, FYI.
oh
I could also have the server remember what users the client already had asked for more than maybe 3hrs before, and only send back new users. The client could always specifically re-ask for them.
urgh, this is the point where I need to think about optimizing for different things, and they don't have the same solutions
@KamilSolecki aye
@towc that's what redis is for
@ssube oh
the database server does caching, but for it's own reasons. if you want to remember users for 3 hours, that's at another level.
I might want to look into that at some point
@Luggage yeah yeah. For that, I'd be minimizing a weighing of the number of requests and the size of requests
15:11
I almost always set up a layered memory/redis/sql cache
that's a level of optimization you dont' want right now
as long as you aren't doing something stupid like making 1 request for each in a long list of IDs, you are fine
2 queries vs 3 or 4, no big deal. 2 vs 200, big deal.
> Hello Matei,

I work at Elsevier in our Talent Acquisition team and lead our technology recruitment efforts. I like your profile it comes across well, brilliant actually!

I might be reading too much into your Stack Overflow profile but it seems we have similar values when it comes to best Software Engineering strategies; Agile minded, with a focus on TDD & Pair Programming, that takes a continuous delivery approach, building quality software rather than rushing code into production…
right...
@Luggage well, at this point it's mostly for the sake of learning, so when I know I might want that optimization, I'd start with that in mind. But I guess I won't overcomplicate it for now, and for once get a personal project done
Do they know you don't use seasoning like a fucking barbarian?
Even barbarians used spices.
(fun fact, my SO profile has almost nothing to offer. I'm reluctant to TDD and have never really done pair programming?)
but I guess that's recruiters for me
15:13
I did pair programing in first year university
I did pair programming when I had an intern
I'm trying to think of a fun reply
I also wanted to kill myself in first year university
I believe there's a direct connection between the two
ugh, I might need to go to Staples and get a flash drive
btw, anyone feels like doing some pair programming? No clue on what or for what purpose. I'd most likely learn a lot, and maybe you just feel sorry for me so would say yes
15:15
this one is dying
oh, later on in the email there's some content that might actually be relevant to me:
> Are you an experienced web front-end developer looking for an exciting challenge in a cutting edge, tech environment? If so we are offering an exciting opportunity to join Elsevier Research Products in a new cross-functional Agile team, tasked with completely rewriting and evolving an existing digital product. You will be responsible for analyzing, designing and developing the new platform’s frontend layer. Collaborating closely with business stakeholders, iterating quickly and optimizing for fast feedback, you will support and mentor other developers and continually seek to improve our d
@rlemon oh god
I love you, I hate you
ohhi
another thing about back-end optimization: I've been trying to keep the frontend to never learn about the id of users (just their name), while the backend would mainly only care about the id. Turns out this was not a wise choice
thing is, users can change their name, but I feel like sending user ids over the network is messy and unelegant, and I think there's maybe less optimizations postgres can do on querying by string rather than by integer
@Cerbrus doesn't matter if the code is ugly AF?
15:20
by the standard relational way, I should be using ids in both places, right?
@Neoares Not at all
well, and ideally not have them be incremental
@Luggage ^^^^^
@Cerbrus can I submit aux functions?
ouch
also, for the message far above: cc @ssube ?
15:24
53
Q: Why is there a tag called [scrummaster] on Stack Overflow?

TheGeorgeousSomeone just asked a question on implementing the gitflow workflow in a scrum team with the tag scrummaster. Does the tag even warrant being on Stack Overflow? The tag has only 7 questions left (all of them are closed) that are more or less related to managing programmers rather than solving iss...

which one what huh
> another thing about back-end optimization:
@Neoares aux functions?
@rlemon You can hear the sound of him falling into the friend zone from here.
15:25
yes, auxiliar
I wrote 4 functions
@towc strings are less efficient, use JWT
2 of them are called inside the main ones
part of the JWT payload should be a user id (which you know you can trust, because tokens)
that should be in the main index of almost every table
@rlemon noice
!!prime now or leave the house
15:26
@ssube prime now
wait wut
I have no clue what jwt s have to do with this :/
You have prime now? You fucking suck.
what is prime now?
and prime restaurants
@KevinB 2 hour delivery
@towc you do want to pass user ids (unique/uuids or just numeric ones)
if you can trust those, because they come from a signed token, you can simply pass them on to the database
as a way to not expose the ids to the user, while still allowing the client to change them? I have to admit I'm really not familiar with jwts
15:33
I'm down with jwt,
yea you know me.
a quick look at this told me that it's just kind of a way of ensuring integrity
@Neoares Oh yea, that's fine.
I'm still not sure what problem would the JWTs be solving here
exposing IDs can be a security concern, right?
integrity of the user id
I'm currently using server-stored cookie sessions for identifications
and I don't see a security problem
15:36
then you should already have a trusted id to use
the client never receives the id of their own or other users, and can only mess with their names
why can't they see their own id?
which I just thought was nice to see and work with in an api
@ssube they'd have nothing to use it for, I guess
@SterlingArcher quality meme
I might change to people being able to use IDs
but I don't see integrity concerns with what I'm doing
well, of course I need to watch out for some stuff, but still
just to be clear: the primary key of the users in the database is still the id. The node backend has access to both ids and names, but the client can only use names
in a way, it kind of helps think about what comes from what, semantically
but in the end, there's a lot of extra things to take care of, which might not be worth the hassle when expanding the codebase (which is not something that I'm realistically going to need to worry about, but I'd like to do a good job, and learn how to do it properly)
twitter seems to be using only names for the client too
that I can see, at least
I actually don't have much against using names in the back-end as well, but again, might not be "the relational way"
@rlemon That was dank as dank could be.
@rlemon That would be terrifying but awesome at the same time. They had to have locked the front wheel on that, right?
i.imgur.com/NmmLhol.gifv hahaha the second one\
locked? As in brakes or steering?
Steering
15:48
Wouldn't it just fall over then?
Why would it?
that's how bikes work
Because gravity
There's a guy on it who can lean?
the reason you can cycle without hands is not because you're skilled
15:49
it's magic
@Vap0r let a bike down a hill. You'll see it wobble a lot, but it should mostly end up keeping on doing its thing
there was a good video from smarter every day about that
@KendallFrey At that speed? No.
@towc huh TIL
circles are magical like that
it works with a simple hoop
@Trasiva What does speed have to do with it? It's not nearly fast enough to negate gravity
15:51
@towc I found a vid from "minutephysics" but not smarter every day, unless it's the backwards bicycle link
There's more to physics than gravity
might be them
@KendallFrey You'd have to leave the house and actually ride a bike, but just because the steering is locked, doesn't mean that a bike will just fall over. Especially at those rates of speed.
@KendallFrey wouldn't the guy be moving fast enough he could steer the bike?
The phenomenon of bikes self-correcting depends on the front wheel being able to move
Or at least keep it upright?
it's from the science website
I don't think they want this bike to self-correct.
Too much of a self-correction could prove disastrous at 200mph
@KendallFrey that said, the front wheel is probably given a lot of angular resistance, and put in a way so it can't go past a certain angle
15:53
@Vap0r Then, again, how could it possibly be relied upon to stay upright?
@KendallFrey there's a rider on it?
It doesn't drive itself
it does, actually
self-driving bikes
It doesn't seem plausible to force the rider to balance it by shifting his weight
especially since it's a standing start
15:54
@KendallFrey why not?
@Vap0r Because it seems that shifting weight wouldn't have enough effect
especially at low speeds, and in the position he's in
Low speeds?
@towc short answer: we don't know
He's at 200mph in 4 seconds. how long does it take a bike to fall over?
@Vap0r quarter of a second, maybe
15:56
@Vap0r one stick
hahahahaha
quarter of a second
am I talking to 007?
tenth of a second to get unrecoverable, I'd guess
@rlemon but bikes can still ride themselves
@Vap0r Obviously it depends on how upright it is to begin with, but I don't imagine for a second that he can balance it well enough to stay up for more than a second
@Vap0r back in '77 when I tested this for my Navy position we used an experimental rocket that was shipped to us from the USSR and I ended up taking off two fingers.
15:57
^ there it is :P
only have three left, eh?
@towc but only if at least one of the wheels steers
@towc and?
After a second he's probably travelling pretty close to fast enough to steer himself aerodynamically
@KendallFrey gosh, I'm not arguing against you
@rlemon that's what vapor was arguing against
15:58
that has nothing to do with what I said tho
so why not ping Vapor
oof ^
@Vap0r Like I said, after a second it's probably too late
And it has nothing to do with whether the bike drives itself since this one has a rocket strapped to the back
@rlemon well, I was telling you that it wasn't the question
15:59
The mental hoops you're making me jump through are so much harder than just steering the damn thing
we do know that bikes can balance themselves
@Vap0r How does that affect steering?
we might not know why, but it's enough too make vapor wrong
@KamilSolecki yeah, this
@KendallFrey I dunno but I bet if you strapped a rocket to yourself it might affect your steering
16:00
@towc wait, how does it make vapor wrong?
@towc I never asked a question, or attempted to answer one. I was adding an interesting tidbit to the video
7 mins ago, by Vap0r
It doesn't drive itself
@Vap0r It shouldn't change how it works though
@rlemon oh, sure then
@towc Presumably he was talking about something other than steering
16:01
oh
we don't know exactly how bikes stay up. when I first learned that I didn't believe it. took a few respectable youtube videos to convince me.
@KendallFrey fair. I'm not arguing that bikes don't steer like that. I'm just arguing that if a jet was added that it's conceivable that aerodynamically it could be steered with a fixed steering setup not causing issues
Especially since this is a pressure jet, I'm assuming the initial acceleration is much quicker than the last little bit
@towc there is a linkage on the bike's steering. It's not fixed, but it's not controllable. I'm guessing the linkage was to prevent self-correction from killing the guy. But that'd be speculation
meh, I just had to ride without hands once and remember that I have no discernable skill, so that means I wasn't really helping the bike
@Vap0r conceivably, sure, but I'd think you'd need some hefty control to manage the thing at low speeds
This bike isn't self driving
16:03
@Vap0r someone on reddit did the math. 2gs
I'm not on here to argue with you @towc I was just interested in this. You are more interested in me being wrong.
@Vap0r by self-correction do you mean a speed wobble?
@Vap0r I am
@KendallFrey yeah
It didn't look to me like speed wobble was a particularly likely outcome
16:04
@towc well unfortunately I'm not in this case. Sorry to burst your bubble
@KendallFrey why not?
Also you said "there is a linkage on the bike's steering"
Did you see something I missed?
I now need to live with you not being wrong. See what you've done? :/
@KendallFrey possibly :/ geeky-gadgets.com/wp-content/uploads/2014/11/… this pic isn't that great but someone implied a linkage and that might be what's connected to the front bars on the bottom of the bike's frame
@towc I'm sorry my dude, internet arguments are shitfests anyways lmao
KendallFrey but why no speedwubblez? I probably just don't understand them ****fully**** at all
Once you're fast enough, it's pretty stable on its own, isn't it?
Should be
16:10
> Sustained oscillation has two necessary components: An underdamped second order or higher system and a positive feedback mechanism.
I'd expect the rider to be a pretty good damper
Especially a professional
Not that speed wobble would be impossible, just unlikely
@KendallFrey what's an "undampered second order"?
I think that's just like a spring oscillator
@towc You can use string ids just fine, but don't key off of something like name. This is called a "natural key". Stay with a meaningless key that exists JUST to correlate and identify records like you have. This is called a "surrogate key".
welp, that doesn't help
It's the database's job to be efficient at getting you a Name when you want it. You don't need to change the way to relate records for that small detail.
16:14
the other question is then whether I'm prepared to display IDs to the user
This is WHY you can SELECT twats.*, users.name
'foo' as bar
maybe I can have the client-shown ID to just be a mapper between that and the real ID, so the client never actually sees the real ID AND I don't have to add another column?
It looks like they may have attacked a damper to the frame too
relevant to some prior conversation
16:16
@Luggage welp, at that point I'd just have twats.author_name
@Cereal fake news
No. You don't need to do that becasue it's the database job to return it like that on-demand
and efficiently, too
yeah, sure
You make tables tha way it makes sense to STORE data, and make queries for how you want to GET data.
They don't have to match 100%.
I think I'll go with the "node-mapped" id
You are suggesting 'denormalize user name onto the tweet table'.
16:17
that's redundant
@Luggage I'm agreeing it's a bad idea
ok, cool :)
SELECT
    twat.*,
    author.name AS name
FROM twats AS twat
JOIN users AS author ON author.id = twat.author_id
WHERE 1 = 1
why the WHERE?
Just a placeholder for whatever youe real filter is.
oh. Thanks?
I'm loving how you're insisting on using the twat
16:19
i just like writing sql for what we are talking about. makes it clear to all.
makes for writing backend code give you random giggles
i thought that's what you were calling your thing.
it is, but in most examples I actually talked about tweets, to not make it look like I was pushing it :P
but nope, you're straight in it, love it
^ are we still doing phrasing?
go ahead
16:27
moar automation scripts!
never enough!
TIL Tor supports Win98se
@Loktar there's gotta be a good story for that
@Loktar oh man
I had so much trouble finding an iso of win98se a few years ago
I wouldn't dare connect my win 98 machine to the net haha
@FlorianMargaine yeah man I lost my original, had to buy one off of Ebay like 2 years ago lol
there's a pretty awesome site now with MS isos on it though
a friend wanted to play zorg, so it had to be on a super old OS
@Loktar microsoftlabs has win98se?
16:34
Hm?
Not familiar with MS labs
MS had images for a while
winworldpc.com is the site
doesn't want to load right now though
I have a full MSDN license but win98 was taken off forever ago
I grabbed 98 a few times to run daggerfall and zoombinies
@Loktar really? I dropped my MSDN a few years ago, but they had everything back to 3.5 then
16:35
Yeah I hadn't seen anything prior to XP that I reacall
you had to turn on some filter, I think, but they had all the old stuff
yeah looks like it's been gone for a bit on MSDN 😒
but yeah that winworldpc has a ton of good isos for MS stuff
legacy stuff anyway
huh. I guess all the old stuff I remember seeing was pre-Java
I don't think they have anything recent so no piracy involved (although TECHNICALLY I bet downloading win3.1 even is piracy O.o)
if you have a valid license to it, it might not be
16:38
yeah I just paid $10 on Ebay and have a physical retail copy for life now, well until the CD dies (for win 98se)
I have a few CDs of it anyway
some floppies and the little book somewhere, too
for old systems I mean there is no reason to use anything before win98 unless you jump down to dos anyway
haha nice
I have dos boxed
but I didn't care about Windows back in the day so tossed them all
well, and I got some copies illegitimately when I was a young lad
I've had better luck running some old games in 98 VMs
some work better in dosbox
oh I meant like I have my old copy of dos complete in box
oh
that's a little bit too old for me
16:41
I got it from a friend for like $5
I don't have any hardware that could run that, I don't think
yeah I think I was like in late middle school maybe? idk
@FlorianMargaine @rlemon @KendallFrey happy Friday btw
was late since i was in planning most of the morning 😒
yea... i saw that story this morning and thought... i mean, it might be cool for that kid that he's mowing the whitehouse lawn. but on the other hand... it's a kid, mowing the white house lawn... is he being paid for it? paid the same amount that the normal people that do it get paid? heh
@KevinB He did it for free
16:56
Yay, fixed my Kata so you can't cheat by registering a global like that, any more :D
would be different if it was his son out there doin it :p
He decided not to charge his usual fee of $8

« first day (2526 days earlier)      last day (2645 days later) »