« first day (3388 days earlier)      last day (1575 days later) » 

3:35 AM
I have returned
 
4:14 AM
hello
DB question. How would you design a db to manage reputation like SO does?
Would you count all things that influence reputation every time? I feel like that would be very slow. So is there an aggregate value stored in the db? If so, couldnt that cause problems
 
4:33 AM
SO has a bunch of posts on their architecture
 
Ok i'll take a look
 
4:57 AM
In general, the way SO does it is a mix of aggregate queries, rolling counters, aggressive caching, and batch jobs
That's why some badges who up after a few hours, while stuff like Nice Answer shows up instantly
And why chat takes longer to update rep than the main site
 
 
1 hour later…
eli
6:10 AM
Hi
Kotlin nerds
I have this recycler adapter
`class HouseListAdapter(
private val items: ArrayList<String>,
private val context: Context,
val onItemClick: ((View, String) -> Unit)? = null
`) : RecyclerView.Adapter<ViewHolder>() {`
How to call it in Java Fragment class
rcy.setAdapter(new HouseListAdapter(houses, requireContext(),what_to_put_here ))
I want onclick to excute function startNewIntent()
 
6:28 AM
looks at more than 4 lines of code in chat
goes to get... tools
 
 
1 hour later…
7:29 AM
Greetings!
 
8:16 AM
Interesting read on bulk insertions using room hackernoon.com/…
 
8:55 AM
@DaveS yeah we use react as a core on the web
 
9:19 AM
o/
 
 
2 hours later…
10:58 AM
No.
 
11:48 AM
Also no.
 
12:15 PM
> seen 1s ago, talked 14h ago
Timothy, stalker of rooms
 
Tim
👀
 
> seen 15s ago, talked 15s ago
Timothy, active participant of the room
 
12:27 PM
I have passed an exam
 
Congratulations.
 
Thank you :)
 
What does that make you now?
 
3 more to follow we
Nothing more than I was before ofc
 
Then what was the point?
 
12:29 PM
Of the exam?
 
Yes.
 
Idk ask the teacher
I recommend Babylon Berlin series
 
Don't want to learn a language over a TV Show
 
you don't have to
 
But it is in German
I do not speak German
 
12:41 PM
subtitles
lol
 
I watch shows, not read them
Half the time I'm working side by side
So need audio to be understandable
 
well ok them
 
Such is life
 
1:27 PM
@CarlAnderson oh god I love infected mushroom
 
 
1 hour later…
2:44 PM
@RaghavSood I probably wouldn't be able to focus if I had a media playing side by side my work monitor
 
2:58 PM
Should I get an Alienware R3-15 (2017), is it worth it?
nvm
 
3:40 PM
nerds
 
4:07 PM
Ribbit
 
@Taseer I know nothing about Alienware, but I do that nothing is inherently worth anything. It's worth is based on your goals/requirements, so no one can answer that question.
but that's a tad bit philosophical for a Saturday morning....
@Chulo I first used Flash a few years before that, back when it was still owned by Macromedia. lol
 
@Taseer I'd rather get a mac for programming
 
4:23 PM
Macs are pretty awesome.
 
4:54 PM
@Ahmad <3
 
That's...that's something
 
6:43 PM
very something...
 
7:02 PM
I'm a big fan of quartz-obsession, it's a daily newsletter, with very detailed facts on topics one does not normally think of :D
 
yo dude
 
7:18 PM
👋
 
can you recommend me a chill movie? :D
 
did you watch The Irishman?
 
Well, no, but I wanna see it on the big screen
 
it's 3.5h long, not sure staying on a cinema for that long is fun :D
 
haha yea...
hm
gonna watch Career Opportunities
 
7:45 PM
@Mehdi For sure. I actually took a few breaks to pause the movie and do other things when I watched it :D
 
@RaghavSood Can't find anything about designing the db to support different sites.
 
8:15 PM
@codeMagic hahaha, It took me 3 days to finish it XD
> The Irishman' was completed by only 18% of US viewers who watched it on the first day
 
Oh wow
If you like those types of movies, I watched one called "Kill the Irishman" recently that I thought was good
 
thanks! googling it now :D
 
8:30 PM
@JBis not sure about SO's specifics, but you could have a few options to model such a thing, either a database / site, then parent database linking users to all the sites, or actually just a table with static sub-sites (which would be relatively small given the limited number of sites), then for each event (new post, upvote, comment etc..) you save it into the corresponding table with a foreign key to the site id on which the event occurred
 
that second thing you described was my original thought
both seem like it would be difficult to scale tho
 
in which regard?
 
db per site is a lot of db's
second one is a bit better but thats a lot of foreign key checks and joins
 
user store + auth system
rest of the data
2 layers separated from each other
 
(but i guess "a lot of foreign key checks and joins" sums up RDBMS pretty well)
 
8:35 PM
depending on the data, you can even use multiple different databases for different layers
 
ivan how would you design "rest of the data" layer to support multiple sites sites?
 
like so?
well as i said
 
also, when I say a db, it could mean many things, an RDBMS is just one option, you could use document storage etc... which are highly optimized for fast and frequent access
 
i would have centralized user store
see Keycloak for example
 
then you don't need to involve the DBs in every query, you usually use caching for that
 
8:36 PM
Any chance either of you want to join a project and help me out with the db stuff?
 
and for data layer, you have 2 options
 
As you prob could of guessed, its an SE clone.
 
1. separate dbs
2. single db - with bunch of relations
ah ok, in that case
 
@Mehdi caching would be a must no matter how i do it
 
yes
caching is going to be really huge part
 
8:38 PM
however, only if the load you expect needs that
 
@IvanMilisavljevic which is better?
 
possibly even multiple layers of caching
 
i don't need to setup the cahching yet but i would want to design the db's so it is scalable
 
yeah
also replication in one point
when it comes to the arch, well
 
@IvanMilisavljevic at that point, you get into a different world, Devops :D
 
8:40 PM
heres what i did for the users db
 
i would probably use elastic
as my main data store
 
Yes. I agree. Although I have never used elastic.
 
or atleast for indexing
and probably pg as my main data store
 
no interest in joining?
 
but only if you have a huge load, otherwise, it's just a waste of money and efforts
@JBis joining what?
 
8:42 PM
I don't expect to have a huge load...yet
 
i would but im already swamped with work
 
5 mins ago, by JBis
Any chance either of you want to join a project and help me out with the db stuff?
 
also having a baby in ~10 days
:d
 
ooo congrats
 
oooh, early congrats Ivan! :D
 
8:43 PM
yeah, thanks :)
 
ok i'll be back soon with more quesitons thanks
 
@JBis I could help but not actively, meaning, i could answer any question I know the answer of but not part of the dev (I really don't have much free time)
 
you can see my progress at 127.0.0.1:3000
;)
 
start at smaller peaces
as i said checkout Keycloak for the userstore
 
8:45 PM
@Mehdi alright no problem. thanks tho. feel free to make a couple pr's if you get time.
 
is it for JamesBot?
 
nope
the two top alternates are codidact and top answers
top answers looks like its from the 1990s and is in php
codidact is going to be in C# but its taking for ever
I think the best solution is Node. So I am gonna build one in node.
 
im not so sure
i mean i guess its going to be fine in the early stages
 
The reason I think node is because more people can work on it.
 
but node is not really that performant
thats true
 
8:50 PM
Node performs very well under certain conditions. Conditions that I think are met by SE.
There is no heavy CPU work. And plenty of huge sites use node many bigger than SE.
 
yeah, but rest of the arch needs to be spot on
 
whatever gets the job done, if it's a success, you'll have enough time and resources to migrate the whole stack if you think it no longer works
 
replication and HA
distribution as well
 
I don't even know those terms.
 
you will have to learn if you want to have a chance on this scale :D
Ha -> high availability
 
8:53 PM
I'm really not the best person to create this. But I really want to work on something and I figure if I beat Codidact and TopAnswers with an initial working prototype people will join.
writing.codidact.com is the furthest anyone has gotten
 
there is no "best person for X", programming is a learned skill, anyone can do anything given the time and commitment to learn
good luck man :)
 
thanks, i do understand that this will most lilkey be a failure but at least i'll get some experience
 
Ivan got a new pic
 
haha yeah
 
that's the spirit and the regular path of any developer, Jbis :D
 
8:56 PM
@JBis just try to build as much as possible
 
with a green background? he's just asking for photoshops
 
thats already photoshoped :)
 
haha yea
 
everyone in smallpdf has his avatar with different background :)
 
we can photoshop everything in there
 
8:57 PM
and thats the best picture i took in like years, so it stays :D
 
brb i'm going to make a new profile pic for myself
 
yeaa
DAVE
hi
 
yo dave why did you ask about react?
 
because he can't flutter
haha
 
react native has nothing against flutter
 
9:05 PM
@JBis btw, you should talk more often to Raghav, he's started (and is) very young as well, and works on tons of interesting and advanced topics, you'll learn a lot :D
 
i've had some good convo's with him. He's a very knowledgeable robot. Taught me some stuff about security too.
 
Is there a dev site for that codidact or just writing?
 
better learn the most quickly from him before he turns into a cynical adult like many people in our industry XD
 
I don't like that name, btw, not even sure how I'm supposed to say it
 
@Falady sorry, you currently do not meet the requirements to chat here. You can find our requirements in the rules: room-15.github.io. (min 80 rep)
 
9:13 PM
@Falady you don't yet meet the requirements for write access here. See more in our room rules --> room-15.github.io
 
@codeMagic they have an entire question dedicated to pronouncing it
@codeMagic yes
I am also pissed off at codidact mangment
Writing is NOT codidact
which is stupid imo
 
You can't answer a multiple choice question with "yes" ;)
What is codidact?
 
@codeMagic There is going to be a development site but currently only writing. But writining is not codidact.
I've gotten into arguments with them about writing being on the codidact domain when its not codidact.
 
You keep saying writing isn't codidact. I'm asking what it actually is then
 
The software for codidact is still in development. github.com/codidact
 
9:22 PM
If it's a made up thing, can't the creators make it be whatever they want?
I understand how GH works
> a community-controlled, open source Q&A-platform.
It doesn't say anything about not being about writing
 
So basically the owner created a SO clone with Ruby on Rails a couple years ago. They updated it to support writing. However, it is agreed upon by everyone in Codidact that the code base for writing is not going to be used for the real Codidact software. Writing isn't even a beta, its just a site to help the SE writing people because their site has some issues.
Imo writing should not be under the codidact domain if it has no connection to codidact code. It should have its separate domain.
 
Codidact is supposed to be covering all the subsites including "writing":
"the intention is that the Writing community will migrate to the Codidact software once it's complete"
 
The reason I believe this is becuase its
 
I'm still confused, JB, but I will concede
 
1. Confusing to people who see a site under codidact domain when its not codidact
 
9:26 PM
Unless Mehdi is right because his comment makes more sense :P
 
2. Codidact is changing everything from moderation to reputation, yet writing follows SO model. Contradicts docs.
 
that quote was taken from their FAQ
 
Mehdi is right
 
Then everything you said is wrong
 
the current "writing" is just a sub community who's in a rush to be online but want to join the rest of the network, so they made a temporary solution to serve their users, while the real platform is being built
 
9:29 PM
oh ok
 
Yes. That.
But I don't think it should be hosted under codidact domain.
 
i think it's just non realistic to build it and hope to compete with a big established platform (SE networkà
there is literally 0 incentive for most users to move there
 
I thought someone said that one of the ex-mods was creating it, no?
 
I think it is very possible but not the way codidact is going. I have been trying to work with some other people to get a non profit to buy/help codidact.
Monica is helping create it
 
but what's the mission there?
 
9:32 PM
I don't think Codidact can succeed without full time people which isn't possible without $$ which is why we need someone to buy us.
@Mehdi Open source q&a alternative.
 
In that case, I think they have a better chance. People who like her will move and could possibly bring others
 
@Mehdi Soon we won't be competing. SE is getting out of the business it seems.
 
I don't think it's the case, the average user doesn't even live these topics
they have sales: teams product etc., traffic: ads / jobs...
 
@Mehdi What are you saying here?
 
that I think SE is doing well, business wise. And the users of the platform aren't even aware of all the drama happening so they're not really affected
 
9:37 PM
SE is moving out of public Q&A I think. More into private Q&A (teams, etc.). Main users only come here because there are answers. Soon there won't be up to date and new answers.
 
I completely agree with that, Mehdi
But I still think something else could take over but it would have to be done well
Especially if enough ex mods come and bring users over. It would take time though
 
that's true, it takes dedication :D
 
10:06 PM
How long does profile pic cache take to clear?
 
I think it's usually just like 30 minutes
 
Ok
 
10:22 PM
wow you look young jbs
 
Yes I do lol.
 
how old are you again?
 
17
I was 16 in that pic tho.
 
oh wow, you are young
 
:D
 
10:28 PM
you have a lot of time to learn shitload of stuff :)
so thats a plus
 
Yepo
 
awesome, i thought you were 20+
 
Lol. Yay!
Instead of creating error messages i'm just gonna print a github link to the validation code. User can figure out what they did wrong.
 
HTTP status code + error_identifier (unique constant specific for the error) + error_message = github link
or detect the line in the code which thrown the original exception
and create a github link to that exact line
 

« first day (3388 days earlier)      last day (1575 days later) »