Decoding Coding

2019 till present bucket list - learning how to code. HMTL, CSS, JS, jQuery, Bootstrap, PHP, MySQL, Ruby on Rails, JAMstack, Gatsby, Vue, Nuxt

🔥🧠🔥 Wow I worked 4 jobs today: 5-8am, 9am-4pm, 5-7pm, 8-10pm. Brain fried #indiejourney #decodingcoding

You are the real iron man 🔥

0 Likes

It might not sound like much, but my first ever pull request as a web dev freelancer just got merged and is now live.. tiny milestone, tiny win #indiejourney #decodingcoding

Onboarding to Podseeker (https://www.podseeker.co) as a frontend dev freelancer... using Rails and Tailwind! My brain's in max learning mode 🧠⚡️ #indiejourney #decodingcoding

6am video call with Sanjay, founder of Partly (https://www.withpartly.com) about possible freelance frontend work in future #indiejourney #decodingcoding

Download, install Cursor AI code editor! Can't wait 🤓 #indiejourney #decodingcoding

Scrolling, understanding the new codebase for freelancing work. Asking lots of questions using GPT. Checking Vue dev tools. Cmd+clicking through to component files. Got familiar enough. Will dive deep into coding my first feature next week! #indiejourney #decodingcoding

Onboarding call with @_lhermann to get set up to start coding for Stagetimer! 🎉 #indiejourney #decodingcoding

Researched, read up on PHP API authentication - normal user auth for login/signup is simple enough but protecting api endpoints and access control is the key step to moving fwd for my approach #indiejourney #decodingcoding

Completed PHP REST API tutorial! 🥳 Built CRUD api endpoints, but no auth yet - https://youtu.be/zfHaBuzcz58?si=M21Cp62e9H7VGvZC #indiejourney #decodingcoding

Some good progress today learning how to build a PHP REST API app.. got the 2 api endpoints working - Indian programmers on YouTube are so underrated - https://youtu.be/2EJ03wM0erI?si=KhmCSmxYzdhvDEWU #indiejourney #decodingcoding

Oh hello there, old friend – download Filezilla... again. #indiejourney #decodingcoding

FINALLY! Debugged custom domain connection to my php api app 🤜💥🐞💥🤛 It's always the little things that take the most time, not even the code itself #indiejourney #decodingcoding

More PHP lessons: Change SQL query to prepared statements with parameters to prevent SQL injection attacks #indiejourney #decodingcoding

Learn how to build, deploy a quick & dirty JSON API using PHP, SQLite, Apache. Now live on the internet in under 1 hour, and didn't crash. No node_modules, no build step, no dependency hell. JS boi in me is amazed 😮 #indiejourney #decodingcoding

Bought $5 VPS from Digital Ocean for PHP and SQLite. Let's see what this bad boy can do.. #indiejourney #decodingcoding

Internet research and asking best way to build REST API app using PHP - https://x.com/jasonleowsg/status/1800099233657487703 #indiejourney #decodingcoding

Upgraded database in Heroku

Reached the 10k row limit on the Hobby Dev tier pretty fast! Not even 1 year yet for Lifelog. Had to upgrade to Hobby Basic US$9/m for 10M rows now. Let's hope it lasts!

Had sweaty palms and butterflies doing this! Backend dev work is just not my forte. 😓

📣 Added frequent updates banner on home page

• Added a red banner for when site is down
• Added an announcements info banner for updates/announcements (since many seem to be not getting updates from Telegram)
• All this is controlled via a Google Sheet! No need to deploy code changes to update the banner, especially during emergencies when the site is down. All I need is to edit the cell value in the Google Sheets table to push out an announcement!

Successfully integrated Notifyxf bot to send notifications to myself whenever I post!

It just works for myself for now. I'll get a message from the Notifyxf bot whenever I post for the day.

That way, if I ever forgot if I had written for the day, I just need to check the message thread from the bot.

But can't send to other users yet. Feature not available on Notifyxf. 🤔 Should I make my own?

https://dev.to/rgthree/personal-telegram-bot-for-alerting-your-phone-w-o-code-1oih

Played around with adding pushmore.io and notifyxf bot so that I can get a Telegram notification when I post for the day

BUT hit CORS error with pushmore bot. The POST request sends OK in Insomnia. Debugging...

Notifyxf by @jasontxf went fine. Was sending messages to myself in Telegram within minutes! But wondering how to send it to others now, other than me.
https://getmakerlog.com/products/notifyxf

Tried to fix an elusive Vue warn error but couldn't pin in down

Not sure why this popped up when navigating FROM profile/_index page.

Error is 'id' of undefined. Likely culprit is the `this.user` variable, where value is tied to the `this.$route.params.profile`, which doesn't work when you navigate off the profile page.

But since I'm off the profile page, why does it matter? Best guess: Nuxt keeps alive the profile page data somehow...

Fixed new bug where comment didn't appear on comment thread after posting

So the latest deployment introduced new bugs to otherwise working functions!

sortedComments() is a computed property, and using a variable which is the result of a mounted method won't work in computed. The variable won't be reactive. Hence when I post a comment, it won't auto refresh and show the comment. Had to stop using the method, move the forEach() and push() to asyncData instead, and add the `accounts` data into the `post.comments` array directly BEFORE it goes to computed.

I'm still not sure why it didn't work on Vue/Nuxt, just know this is the case...