True
2327;
Score | 64
Matthew Okadinya Programmer @ Remotely
Abuja, Nigeria
1073
1628
51
63
In Arts and Crafts 3 min read
Bits and Pieces Part 5: Not Like Us
<p> I stared blankly at my screen in utter disbelief for 5 minutes, like I just heard I broke a bottle of champagne at Quillox. The jokes write themselves in indignation, It's a sore for eyes. </p><p>These Bits and Pieces can’t be coupled by the far-sighted. Of course they can’t. These stories of code, told in the form of epic rants, are someone’s travail. But that doesn’t compute for most.</p><p>Of course its 12:29AM, and It struck me that I'm not being heard.</p><p>For the record there are no rules, only a room of cluttered ideas but perfect lighting to say it in. False advertising</p><p> I need to distract myself, easy enough except I need an idea.</p><p>…I'm  little intoxicated, I'm not gonna lie. So, what? It's not even 4am and its a Friday night.</p><p>TwoCents is open. Black background, white text. Looks like a platform for thinkers. Feels like a graveyard for approval-seekers.</p><p>Microsoft Word? Closed. I don’t need formatting. I need momentum. This is shipping, not literature.</p><p>something has kicked in.. </p><p>Last i stopped in bits and pieces we were able to build an middle man that tells the database to basically add a new classroom that our users will create. What gives this middle man power, I wonder... From my observation, It's obvious the user fills a form to create a classroom, that form is coming from the frontend (the nice little input form you fill while applying for project fame). JavaScript. The backend (the judges) can’t understand it natively; it’s not psychic. So when you fill a form, we call that the body (… still your form, but in backend language its called body). And what do we do with a body? We break it down. Dissect it. Map it.</p><p><br/></p><p>That body (remember still your form) could have three fields. Or two. Depends on how many questions you force your users to answer before they can do anything useful.</p><p>For me? Just one.</p><p>Name.</p><p>Straight to the point. Saves everybody time.</p><p><br/></p><p>While we’re waiting for that request, we run a parallel function, that function tells our database to do what databases do: create and store.</p><p><br/></p><p>But not blindly.</p><p><br/></p><p>We run checks.</p><p>We verify the data.</p><p>We ask: is the user even allowed to create a classroom?</p><p><br/></p><p>Like... you’re not logged in. You’re not a user. Why the hell are you trying to create a classroom?</p><p>Imagine no auth. Chaos.</p><p><br/></p><p>Now we’ve got a middleman — an API endpoint — that links the frontend to the backend and creates a classroom. Basically, you’re putting a letter in a DHL box, and the backend knows exactly where to send it.</p><p><br/></p><p>Cool.</p><p>Now I’ve got an idea.</p><p><br/></p><p>See, it’s not the classroom that should populate the explore page where users would like to see me post a tutorial video of how to make meth</p><p>It’s the content!</p><p><br/></p><p>The person who creates the classroom should be able to post videos or writeups, that’s what we use to populate the rest of the explore page. Not empty shells.</p><p><br/></p><p>So now the real question:</p><p>Should content be its own table in the database?</p><p>Or should it belong to the classroom?</p><p>Or to the user?</p><p><br/></p><p>I’ll sleep on that.</p><p><br/></p><p>But for now, I’m obsessing over this one thing:</p><p><br/></p><p>True mastery is being able to explain even the most grotesque and mighty detail to the simplest mind.</p><p>If I can do that, I win.</p><p><br/></p><p>Not the trending tab.</p><p>Not the applause.</p><p>Not the monthly writing prize.</p><p><br/></p><p>I win the game.</p>
insight image
Bits and Pieces Part 5: Not Like Us
By Matthew Okadinya 4 plays
0:00 / 0:00

|
my hands are in your pockets whether you like it or not.

Other insights from Matthew Okadinya

Referral Earning

Points-to-Coupons


What is TwoCents? ×
+