My somewhat rocky start to HNG11…

Between you and me, there is a screen.

Nope? Apologies if that opening joke turned you off, but stick with me here

Between you and me, I never thought the first task for this year’s HNG internship would be to write an article(if you don’t know what H…


This content originally appeared on DEV Community and was authored by Sam

HNG memeBetween you and me, there is a screen.

Nope? Apologies if that opening joke turned you off, but stick with me here

Between you and me, I never thought the first task for this year's HNG internship would be to write an article(if you don't know what HNG or internship means, Keep reading). Trust me, I triple checked to make sure I hadn't registered for the wrong track but it was written there in bold text - “STAGE ZERO TASK - BACKEND TRACK”

For someone like me who dreads putting pen to paper or more appropriately, fingers to keys, I was ready to jump off the HNG rollercoaster of fun, but then something crazy happened… JK, a friend convinced me otherwise.

I'm to write about a difficult problem I recently encountered but in my opinion a proper article would be when have I never faced problems when I boot up my pc? No seriously, when?

However, a particularly interesting recent problem that stands out is a problem I encountered while working with the emerging JavaScript library, Htmx. Everything was going well until I had to do redirects! You see, with the way Htmx works, the direct way of doing redirects wouldn't work as Htmx requires that you return hypermedia from the backend(it's not as bad as it sounds, trust me)

Being an emerging technology as it is, there was no working solution to be found anywhere. Stackoverflow just led me around in circles of Qs and As that didn't really help and chatgpt kept giving me responses from its hallucinations. But then it struck me, if I have to return hypermedia and JavaScript can be hypermedia(if in a script tag), all i needed to do was return JavaScript code to change the current URL. It worked like magic and all it took was a single line of code and I was indeed proud of myself at the time. I have since found a neater way to do this but that's a story for another day.

Now that this article is behind me, I look forward to all that HNG has in store for me this year. So far I have almost missed a deadline and a friend has managed to trap themself in a bet that sees them losing their pc if they fail to complete the internship so this should be fun. If it does sound like fun, I'd recommend you join here or here(for premium access) and maybe shoot me a DM @kid_with_adream

Will I chronicle my journey in this cohort? I doubt it. But let's see how it goes. Until next time, dear reader✌🏽


This content originally appeared on DEV Community and was authored by Sam


Print Share Comment Cite Upload Translate Updates
APA

Sam | Sciencx (2024-06-29T20:11:30+00:00) My somewhat rocky start to HNG11…. Retrieved from https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/

MLA
" » My somewhat rocky start to HNG11…." Sam | Sciencx - Saturday June 29, 2024, https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/
HARVARD
Sam | Sciencx Saturday June 29, 2024 » My somewhat rocky start to HNG11…., viewed ,<https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/>
VANCOUVER
Sam | Sciencx - » My somewhat rocky start to HNG11…. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/
CHICAGO
" » My somewhat rocky start to HNG11…." Sam | Sciencx - Accessed . https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/
IEEE
" » My somewhat rocky start to HNG11…." Sam | Sciencx [Online]. Available: https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/. [Accessed: ]
rf:citation
» My somewhat rocky start to HNG11… | Sam | Sciencx | https://www.scien.cx/2024/06/29/my-somewhat-rocky-start-to-hng11/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.