About20 year old hackathon addict, robot builder, "I hate front-end" programmer, and sci-fi fan
SkillsC, C++, Java/Kotlin, Python, Node.js, Unity3D, AR/VR, Android/Flutter, Vue.js, Arduino, OpenCV
Locationsomewhere in subspace
Joined devRant on 5/25/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Fucking building websites from scratch at hackathons are a nightmare and a half to deal with.
There was a JS function that would show a modal with a map for choosing a location when the user clicks on a button. The function was supposed to inject some HTML into the modal, since that's how the library wanted it. The bug that I encountered originated from the to-be-injected HTML, where if you had a valid closing script tag (like "</script>"), some of the the code that was supposed to run just gets printed on the modal. But if you invalidate the tag by just adding a space somewhere (like "</ script>"), it would display nothing on the modal. You can also see in the image posted that Sublime is colorizing the text as if it was valid HTML, despite the fact that the entire string is wrapped in a single quote string and surrounded by script tags themselves and the other closing tags are not highlighted differently.
The more infuriating part is that after a bit of testing after the hackathon, I shit you not, that same code works if you put it in it's own JS file and imported that into the HTML one. Where the fuck is the logic in that??
In retrospect, I was probably too tired to think of that fix or I may have overlooked something stupid, but I can't help but feel angry that I couldn't even pitch at the hackathon (they only wanted working projects to be pitched) thanks to some arbitrary glitch that broke half of the functionality of the project. Next time, I'm either using a framework or just letting someone else handle the web dev stuff for a future hackathon.
Oh and one more thing...FUCK YOU HTML WITH YOUR TRANS-DIMENSIONAL BULLSHIT TAGS THAT HAVE A 10% CHANCE OF NOT WORKING AND FUCKING MY PROJECT SIDEWAYS WITH A RUSTY KNIFE DURING A HACKATHON. IF I EVER HAVE TO DEAL WITH YOUR BS AGAIN, I'LL PERSONALLY BITCH SLAP YOUR ASS BACK TO THE COLD DEPTHS OF SUBSPACE.
this.rant.isFirstPost == true
Found this gem while sorting the endless pile of hackathon swag: two tattoos and a sticker.7