Oh yes, I forgot about the 3 minute part. You didn't write anything from scratch. You just at best googled for a math library and hooked it up to your hello world program... if not downloaded the whole damned thing from easy-Aplus.com!!!
Nevermind, rest assured that grownups never had to learn anything in order to build the infrastructure you happen to enjoy today.
I'll just say that a good general knowledge of various topics will greatly help in life in a variety of situations. What you get taught in high school after all is the basics of the basics. If you don't know what a gerund is... sorry, you're an ignorant, and I don't care how many stars your JavaScript library has on github.
E.g.: It's important to know that Greek history is divided in 3 pretty different big main periods and each of them had different column designs but after that knowing the details of those designs is pretty unimportant.
A gerund is a pretty easy and obvious notion. Personally I just know it without even thinking about it probably because I was taught about it at a pretty young age. To me someone not knowing what gerund is is like someone e not knowing what multiplication is.
Honestly anything before college is a pretty young age and 99% of people aren't sure (or shouldn't be sure) about what they're going to do with their life because they don't know enough about it yet. Even that 1% will benefit out of basic knowledge in the long run because that's what makes you a man with basic culture that can discuss on a range of topics.
We humans are not computer programs specialized on solving a single task. High school makes us more like an OS, providing the features to solve (hopefully) any kind of problem we encounter in life.
I only used the word "trick" because you did. There are NO TRICKS in math. If a practitioner uses the word "trick" its because he's being facetious or joking. The algebraic manipulations which you find challenging are absolutely essential to master inside-out to be able to follow more advanced mathematical reasoning. You'll see these "tricks" again in a profoundly more generalized form if you study Algebra again (abstract algebra, that is).
There is utility in doing algebra on your computer when you're dealing with literally pages for one expression. That is done to save time and reduce the probability of errors-- and NOT because you "can't" otherwise do it. Even then, you'll need to manually sanity-check the work using skills you learned doing all those tedious problem sets.
EDIT: When I was in high school there were a few teachers that frowned upon memorizing things. They would give low grades to such students. Then halfway my education I went to live in another country where memorization was the accepted learning method and I've felt the difference greatly so I know what you're talking about.
-----
Oh, you're a talented young engineer? You can write a program in 3 minutes to approximate nearly any integral? Fuck you, we don't even teach programming in high school. In fact, such witchcraft is prohibited here. Instead, spend half a year of your life memorizing these integration tricks because we're definitely still in the 19th century. Speaking of which, don't forget that you have a big history project due tomorrow because you will no doubt be required to distinguish between Greek column types when you're in the real world!
Oh, you have a natural gift for writing? Too bad you don't know what a gerund or past participle is! You must be dumb! Let me tell you: In the real world, it is imperative that you be capable of diagramming sentences. Yes, you deserve to fail grammar tests even if your grammar is impeccable in practice.
Oh, you taught yourself conceptual aerospace engineering in elementary school? Fuck you and your creativity and advanced knowledge; you must follow directions to the point in engineering class to build this cardboard rocket! Engineering is all about following directions!
-----
Yeah, I've seen some nasty things in school.
I hope I see the day when students don't feel pressured to learn things just to make the grade or "keep up" with the fierce competition. Maybe young people will increasingly realize that competing to be #1 in the Great Conformity Competition is really dumb because it actually makes them less competitive where GPAs don't matter.
Imagine where you'd be if you were given the chance and encouragement to really focus on the things you loved while growing up. Young people should not be led to believe that there is one correct path for everyone.