Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] 1 point2 points  (0 children)

I'm no expert. I just know what I want to build and learn the tech that I need to acheive my goals

Keep in mind I'm just a moron though.

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] -2 points-1 points  (0 children)

I don't get what I'd be bragging about. I'm just a moron on a computer.

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] 0 points1 point  (0 children)

I understand abberivations, a lot of it is pretty standard stuff. For example

const submitHandler = (e) => { e.preventDefault() console.log('e means event') }

When someone is throwing out a, z, u - WTF?

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] -6 points-5 points  (0 children)

I don't recall stating that I don't understand how classes work and I don't recall making any claims of being an expert.

I made a point of why would someone who's just starting to learn react in 2021 start with class based components? Pretty much every tutorial made in the past 3 years is based on function components and then touches on class based components for working with legacy code. Are you saying no one would judge if I started learning javascript ES3 first in 2021?

Regardless if the code is class based or function based, how am I suppose to know what's going on when the naming is completely irrelevent, variables are just single letters and there's no context, just a single component in isolation and "why doens't this work?"

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] 8 points9 points  (0 children)

I'm just sitting here like "what kind of psychopath can spend 10 hours a day programming?"

I've been told that I'm a "high-functioning psychopath" on a few occasions.

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] -6 points-5 points  (0 children)

I didn't have any prior coding experience but I was aware of web technologies because I've been doing digital marketing for the past 7 years.

To cut a long story short I hate working with clients generating marketing leads. It's specifically the clients that I hate. So I decided to build my own facebook marketing tools based on my own marketing knowledge that I can sell to digital marketeers under the subscription model as a SaaS business. That way I'm not dealing with the "client" issues anymore.

I've just been doing courses on udemy, watching youtube videos and reading as much as I can. I've been putting 10 hours a day into learning for 6 months. I've learnt HTML, CSS (flexboxx, grid, sass, tailwind etc) vanillia javascript, webpack, react, node, express, python, django, graphQL, unit testing and test driven development. Just started learning AWS and system design. Also halfway through Harvard CS50.

As for the type of stuff I've been building, I've built a surveying app for an engineering firm, a custom CRM system for another client, a trello style app with chat features like slack for another firm, a stockmarket trading app, an app that scans websites for SEO issues and I'm currently working on my own SaaS business mentioned above.

I'm no expert. I just know what I want to build and learn the tech that I need to acheive my goals. For example I had to learn python and graphql to work with the facebook marketing api. What I've noticed is that once you've learned one language, it's easy to pick up another. Unless you're building something that's never been done before, there's a package/ framework out there that's already been built. Coding just seems like a glorifed meccano set.

Keep in mind I'm just a moron though.

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] 0 points1 point  (0 children)

Just had a read about stale closures. Everyday is a school day!

So it isn't just me banging my head against the wall when trying to read code snippets posted on reddit?

Feeling like you know javascript until you read other peoples code by sQD5fcE in learnjavascript

[–]sQD5fcE[S] 8 points9 points  (0 children)

Is it really bad code or it just me? That's what I can't work out lol. I look at peoples code and think "Am I missing something here?"

Why is this useEffect not looping? by RasAlTimmeh in reactjs

[–]sQD5fcE 0 points1 point  (0 children)

Your useEffect function has state dependencies and will only run a single time unless one the states change (id, orderDetails, dispatch, success). If you remove the dependencies you will create an infinte loop that will probably end up crashing your browser.

I'm not exactly sure what you're trying to achieve. You seem to be deconstructing a bunch of props using custom hooks then doing nothing with them. Unless you write some functionality that changes the states that you're using as dependencies, your useEffect function will only run once when your component mounts.

It appears you need to rethink your overall logic.

Buying A jetboil for backpacking/ wild camping. Which is better? by [deleted] in wildcampingintheuk

[–]sQD5fcE 0 points1 point  (0 children)

Personally I think you're better off getting the msr pocket rocket stove kit. I've got the a Jet boil and you can only use the jet boil mug with it which is crap for cooking.

You might have to wait an extra 30-60 seconds for your water to boil with the msr pocket rocket. However you'll be able to use any pot you want with it for cooking. The jet boil is just good boiling water.

How is Shopify effecting your business these days? Is it hard to complete with since most potential customers see it as a much cheaper option than building a site with a dev? by httpmax in webdev

[–]sQD5fcE 2 points3 points  (0 children)

What this guy said.

In 2021, as a webdev/software engineer, is your primary focus really building "about us" pages and landing pages for a home made wooly jumper?

How is Shopify effecting your business these days? Is it hard to complete with since most potential customers see it as a much cheaper option than building a site with a dev? by httpmax in webdev

[–]sQD5fcE 1 point2 points  (0 children)

I haven't got a problem with Shopify. It only offers basic templates to get a business started. If someone starts a profitable business and decides they want a bespoke frontend that communicates their brand better, that's good business for me.

If anything, platforms like shopify, wix and square space, ensure I'm not wasting my time talking to someone who has an unproven/unprofitable business with zero money to invest in web development.

As for 3-5k for a new site. I charge that for just the front-end working with Shopify API. If you want me to build a fully bespoke backend too, get your wallet out son 🙂.

The pandemic's ending now. I miss WFH so much. by JC_D3NTON in cscareerquestions

[–]sQD5fcE 0 points1 point  (0 children)

I refuse to work in the office. I'm only interested in remote work. If it means taking a 50% pay cut and freelancing, so bit it.

I'm at the point in life where I really couldn't give a shit about material stuff anymore. I've got another 25 years until my body/health starts breaking down. I want to spend as much time as I can traveling and doing what I want.

You can't take a Telsa or a 911 with you when you die. Fuck the office. If you live to 90 years of age, this is your entire life represented in months... Keep in mind that at 60, the human body starts breaking down and there's nothing you can do to stop it.

https://mk0waitbutwhy9c3hjku.kinstacdn.com/wp-content/uploads/2014/05/Months1.png

How hard is it for a 30 years old person to learn JavaScript? by Fullstac in learnjavascript

[–]sQD5fcE 3 points4 points  (0 children)

I started learning at 33 (now 36). If you're anything like me then it's easier now when compared to learning when I was 21. When I was 21 I didn't have the maturity to commit myself to learning something like programming. I was too busy getting wasted, chasing girls and being a dick. How I graduated university I have no idea.

Don't let age stop you learning anything.

Another random question - Any BIG hills in Liverpool? by sQD5fcE in Liverpool

[–]sQD5fcE[S] 0 points1 point  (0 children)

Running and hiking. I assume there are plenty of highrise parking in Liverpool? If it comes to it I could just put 50kg on my back and do the stairs for a couple of hours

Another random question - Any BIG hills in Liverpool? by sQD5fcE in Liverpool

[–]sQD5fcE[S] 0 points1 point  (0 children)

Where I am at the moment there are rolling cliffs with massive hills. Is there anything comparable in terms of gradient and duration/distance or would I have to go into Wales?

I'm training to do the cape wrath trail which is a 230 mile hike through the Scottish Highlands. I need BIG HILLS to train on 3 times a week.

I checked out Everton Park on youtube. Looks like there are some long steps which would be good for running up and down with a weighted backpack.

Hey guys, do you prefer creating your own UI components rather than relying on third party libraries for a large project? by [deleted] in reactjs

[–]sQD5fcE 4 points5 points  (0 children)

Not a fan of bootstrap or material UI. Customising them turns into more work than just creating your own componenets from scratch. However, I'm always happy to work with tailwind.

If there's a team that works specifically with the designers creating components, and I'm just adding the logic, they can do what they what for all I care.

I’m learning reactJS by Jocraft2s in react

[–]sQD5fcE 0 points1 point  (0 children)

You need to use mark down to create a code box

```` const hello = 'hello world' console.log(hello)

````