HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kindofajsdev

no profile record

Submissions

Ask HN: What do you believe is the future of web frameworks?

5 points·by kindofajsdev·4 ปีที่แล้ว·8 comments

comments

kindofajsdev
·4 ปีที่แล้ว·discuss
Adhd here, no meds.

I’d argue this is 2 problems.

1. You reaching for social media is not from ADHD but from habitually doing it. Sure your adhd might be why you’re prone to them but still a habit. You do it when you’re not mentally stimulated. I have deleted the Reddit app (well Apollo) from my phone a dozen times. I’ll go to open the app and it’s obviously not there. That’s the habit.

Do whatever you can to break this habit. For me, its deleting the app when I feel I’m spending too much time on it. Go a week or two without it and then I “reset” that habit and time I spend on it.

2. The second problem is not being able to focus on a book. Good luck. I read A LOT but mostly tech articles. I read 1-4 books a year typically poolside on vacation. The times I’m at home reading a book, I typically will read for 6 hours straight. I’ll chew through it in a day or two. Then I can’t read another book, no matter how hard I try, for months. Unfortunately for us, you just have to follow the dopamine.
kindofajsdev
·4 ปีที่แล้ว·discuss
First, congratulations on the new job! First programming job is exciting!

We have all been there before. Don’t sweat it too much but also don’t ignore it (you don’t seem like you are so that’s good).

Idk what you’ll be doing more of. Identify where you’ll do most of your work on focus on that. DO NOT try to learn everything at once. Maybe that means building a react app with no backend and using 3rd party services. Maybe it’s making a pure api backend and using paw/insomnia/postman to query it.

1. Go to seniors before you go to Jrs for advice. There’s a reason someone is labeled “senior”.

2. Read read and read. Go find a book on fastapi if it exists.

3. Document anything you find weird. Your coworkers will love you for it. Documenting is like teaching and you can’t do it without understanding that piece of code. Furthermore, when you make a PR with those new docs, your coworkers get a chance to say “hey you don’t fully understand this”.

4. What areas are you weak on in fundamental programming? I find most people that struggle with a framework really lack understanding in the fundamentals. If you do not, go read a book.

Python: https://www.amazon.com/dp/1449355730/ref=nodl_?tag=hackr-20&...

Js: (No book just read mdn) https://developer.mozilla.org/en-US/

  - Do you actually know OOP?
  - Can you articulate the difference between pass by value vs reference?
  - Do you understand how the HTTP request cycle works? What about Tls, cors, http methods, etc?
  - Synchronous vs asynchronous code?
  - Scope & closures?
  - The DOM? 
  - (This one bothers me now a days) Can you actually write vanilla js? Do you understand what react (or others) are doing under the hood?
None of these are attacks. Be honest with what you don’t know and go learn it!

5. Create a project with the exact technology. Deploy it to the same services. Yes deploying is Ops but understanding the lifecycle of your code is important. Yes you will rip your hair out deploying on aws instead of heroku. Yes it will suck. But yes, you will be a better programmer.

This is going to be the most important one: 6. Stop comparing yourself to others. Time of programming means nothing. Unless you both read the exact same books and did the exact same projects and solved the same leet code problems, you’re comparing apples to oranges. For all you know, they could have a mentor. Maybe you were reading the worst guides ever and they read the best. Pondering how this happened won’t do you any good. Just keep moving forward!

Programming is not a job you get to walk away from after your 8hrs. You can but others will leave you in the dust.

You can do this! Do your best not to stress the day to day. Focus on growth. I promise you, if you focus on learning, 90 days from now you’ll question why you were even stressed out. You just have to be honest about what you don’t know and learn it.
kindofajsdev
·4 ปีที่แล้ว·discuss
I think I have to disagree with this one. I agree programming is cyclical.

But I don’t think we will get rid of CDN’s. I don’t see js going anywhere and with that, I think package managers and bundlers are here with it. I can’t see people going back to vanilla js (even if someone made a more modern jquery alt).

Why do you think start ups would go back to writing their own deps if the ecosystem is mature and said dependency wasn’t part of the core business?
kindofajsdev
·4 ปีที่แล้ว·discuss
Yeah definitely an overstatement. I probably should spend some time thinking about other services and how they might be built? Could be a fun system design exercise.

Limitations could include: Caching queries, netlify doesn’t offer any kind of firewall like you can when using aws directly so you have to roll your own auth, vendor lock-in, datadog is the best option for log monitoring since it’s the only option both netlify and hasura dump too, hasuras monitoring service is only available on their cloud (not the oss version).

Don’t get me wrong, there are definitely limitations. And we haven’t even scaled to something like 100k+ users so I’m sure other limitations haven’t even shown themselves.

But I can’t even comment on that since I’ve never worked on something of that scale yet. I guess my question was more for MVP crud apps.

Just run some migrations, you have a full backend accessible via GraphQL. Add some event triggers and you can hit rest endpoints from changes in your db. Add some custom actions and your fe can hit your rest api for more complex tasks without leaving gql land.

It’s just less code to get things done. But that’s why I’m leaning into the expertise that can be found on HN! I would never claim my opinions are “right”
kindofajsdev
·5 ปีที่แล้ว·discuss
I'm a newer dev so pardon my ignorance. Is webassembly the new, more open JVM? Feels like that write once, run everywhere but this time with any(most) mainstream language.
kindofajsdev
·5 ปีที่แล้ว·discuss
I'm disappointed. I expected the syntax to be cuter.
kindofajsdev
·5 ปีที่แล้ว·discuss
If this exists, I would love to read it.
kindofajsdev
·5 ปีที่แล้ว·discuss
This is my take as well. Google will sooner run at a loss in certain countries if it means not giving other competitors so much as an inch. Ads are their kingdom. They will protect it at all costs, even if that is giving up some revenue.

What I am waiting to see next is, how will other countries/industries respond? Some countries may institute the same thing as Australia. Other industries may try to take a cut as well.
kindofajsdev
·5 ปีที่แล้ว·discuss
Isn't that why some coins are moving to proof of stake instead of proof of work? Solves the energy crisis. Idk if proof of stake prevents 51% attacks though.
kindofajsdev
·6 ปีที่แล้ว·discuss
Why is no metaprogramming a good thing? I'm mostly a web dev but I've played with crystal quite a bit. Crystal embraces macros & metaprogramming. Its almost a language within the language.

Furthermore, isn't go a statically compiled language? Why isn't go comparable to c + others?
kindofajsdev
·6 ปีที่แล้ว·discuss
I think Ruby's do/end is most readable variant.

Python using whitespace doesn't allow me to mess up and have my formatter autoformat it. Js and others with {} have way too many symbols flying around for easy parsing.

Thats why I really like crystal! Do/end, low level, elegant. Wish the devs would focus more on wasm and other features that would put it more in the spotlight.
kindofajsdev
·6 ปีที่แล้ว·discuss
I recently tried deno. Can we all switch yet? Please no more webpack, babel, etc etc.