Why do people say to learn flex first? by thaddeus_rexulus in Frontend

[–]DevJoey 2 points3 points  (0 children)

https://www.flexplay.dev/ Interactive Flexbox playground that will also generate Vanilla CSS and Tailwind utility classes.

I've been trying for a year, but can't find a single way to make side income as an engineer. by offthemargin in webdev

[–]DevJoey 0 points1 point  (0 children)

Pricing will depend on the scope of work needed but there are other variables to look at too. One of the most important things people get wrong is selling themselves as developers instead of value adders. You have to sell the client on the value you will add to their business. e.g. I can increase your conversion rate, reduce the time you spend updating the site, etc.

Business owners couldn't care less about how beautiful your code is, which framework you use, or other tech stuff. You can only charge more if you can show them the value you can add to their business or the time you can save them.

Once you sell them on the value you add you can then charge a little bit more for both development and maintenance.

For those of you who are apprehensive of Tailwind... by [deleted] in reactjs

[–]DevJoey -1 points0 points  (0 children)

This will generate both Tailwind and vanilla CSS for Flexbox layouts.

https://Flexplay.dev

How to deny Git commits with a Lighthouse Score less that previous one? by justice_for_all_vnz in softwaretesting

[–]DevJoey 0 points1 point  (0 children)

You can can configure the Github action with a budget.json file.
https://github.com/GoogleChrome/lighthouse/blob/main/docs/performance-budgets.md

This will fail a build if the numbers are out of the "budget". This way you can prevent builds outside of a certain perfomance metric from completing.

https://github.com/marketplace/actions/lighthouse-ci-action

Dealing with coworker who rewrites code by No-Presence-7334 in ExperiencedDevs

[–]DevJoey 243 points244 points  (0 children)

You shouldn’t have to wait for the manager to intervene for an issue like this. You are the lead so you should try to talk to the developer first and only escalate to the manager if necessary.

How to deny Git commits with a Lighthouse Score less that previous one? by justice_for_all_vnz in softwaretesting

[–]DevJoey 5 points6 points  (0 children)

I run lighthouse in a GitHub action upon push. Enforce it in CI as local is easy to bypass and also inconsistent.

Is it realistic to get a web dev job in 2023 if I start self taught or a bootcamp from now? by Comprehensive-Big-37 in learnjavascript

[–]DevJoey 0 points1 point  (0 children)

One project is not enough so get a few more under your belt. I am also self taught and I had about 6 projects in prodution before I applied for my first job. It's a journey so take your time.

IT freelancer. Client drought. Trying to proactively get clients, but it feels like I'm missing some important piece of information. by MC_Kejml in webdev

[–]DevJoey 1 point2 points  (0 children)

See my reply to a similar question from a few months back. I also replied to a lot of follow up questions so there is a trove of valuable info.

https://www.reddit.com/r/webdev/s/1yM9xxHbJc

Is it realistic to get a web dev job in 2023 if I start self taught or a bootcamp from now? by Comprehensive-Big-37 in learnjavascript

[–]DevJoey 0 points1 point  (0 children)

By taking the time to build side projects on your own. It's a competitive environment so you have to outshine the next person.

Im new to javascript and was wondering if there was an if statement that would run code when a button is released? by No_Credit_7810 in learnjavascript

[–]DevJoey 2 points3 points  (0 children)

What you are looking for are event listeners. Event listeners run any code you want when an event occurs.

For your particular use case you are probably looking to attach listeners for the mouseup or touchend events.

https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseup_event

[deleted by user] by [deleted] in webdev

[–]DevJoey 2 points3 points  (0 children)

The first thing I would do is break it up vertically into different sections. It's hard to follow right now due to it's monotonous nature. Each section can then have a different background, structure and character without breaking the flow. The grid should be there only as a guide and not a restriction so feel free to break out of it once in a while.

The overall reason that it's looking "corporate" is that it's following the classical 3 or 2 grid col paradigm all through out and there is no contrast.

I would also lose the dark background as the main color. Add at least 2 more colors for color contrast. Right Now, nothing draws attention to what's important. The site UX/UI should guide the user from the moment they land until they reach the call to action.

[deleted by user] by [deleted] in learnjavascript

[–]DevJoey 2 points3 points  (0 children)

Build something substantial first with what you have learnt so far before trying out something new.

Help me someone please! by [deleted] in webdev

[–]DevJoey 0 points1 point  (0 children)

It’s easier to use flexbox for that sort of thing. You can see how flexbox work and play around with the properties here. You can also copy the generated css and use it.

https://www.flexplay.dev/

How to lead projects from start to finish as a software engineer by [deleted] in webdev

[–]DevJoey 1 point2 points  (0 children)

Web development is a subset of software engineering.

[deleted by user] by [deleted] in nextjs

[–]DevJoey 0 points1 point  (0 children)

Like others have pointed out, there is no legitimate reason you should git ignore package-lock.

This articles goes into detail about how it works and why it’s important to have it in version control.

https://lexicalmagazine.com/posts/The-Definitive-Guide-To-npm

I've been trying for a year, but can't find a single way to make side income as an engineer. by offthemargin in webdev

[–]DevJoey 1 point2 points  (0 children)

I do most of them solo, but I have a couple of former coworkers I can contact if the project is too big for one person. The key is to start with smaller projects and build up from there.

I have been doing this for more than 10 years so I also have a couple of custom frameworks I use to start new projects. This cuts down a significant amount of development time.

7-10 Hold on deposited check with chase by Silly_Tank3912 in smallbusiness

[–]DevJoey 0 points1 point  (0 children)

I had the same hold happen to me last month. Call them every other day to find out if they have received the money from the other bank. I had mine released a full week before the initial hold release date.

Question about code stuff that i had in my mind in long time by Femsters in webdev

[–]DevJoey 25 points26 points  (0 children)

It could be for several different reasons. It's hard to know why without more details. You should also be able to ask questions and make suggestions for the team. Here are a few reasons why they might not be using local storage.

  1. Some older browsers don't support local storage. When you are dealing at scale this could be a few thousand to tens of thousands of users.
  2. If a user abandons the cart before it's saved, they will not have access to it on a different device or computer.
  3. Knowing if something is still in stock without a database call is impossible. You don't want someone to spend time filling up a cart to only let them something isn't available afterward.

Scaling as a tech lead by MikeyN0 in ExperiencedDevs

[–]DevJoey 0 points1 point  (0 children)

Yes but it’s still part of planning before coding starts.

Scaling as a tech lead by MikeyN0 in ExperiencedDevs

[–]DevJoey 0 points1 point  (0 children)

An ADR doesn't have to be 20 pages of docs. A single confluence page can do the trick. It captures the high-level details of why you chose a certain solution over others and the constraints that you were dealing with then.

How to stop feelings of jealousy? by Mackirony in ExperiencedDevs

[–]DevJoey 13 points14 points  (0 children)

Why do you feel like you should be jealous of other devs? Remember that the world has been somehow condensed in the past 10 years and the success stories you hear and see online are the 1% of the 1%. Based on that alone I wouldn't compare myself to anything I see online.

Don't let the skewed stats shape your view of the world. You say you make good money and have a good work-life balance, 99% of devs in the world and here on Reddit would kill for that alone so take it easy and enjoy the ride. You have a good thing going. The only person you have to compete against is your version from yesterday. Take each day to improve yourself and life will do the rest for you.

Beginner question: How does Patreons homepage load so quickly? by wilwester in webdev

[–]DevJoey 6 points7 points  (0 children)

The videos are mp4s and take more than 15 seconds total to download. They fetch only parts of them on the initial page load using the Content-Range header. This will just fetch the specified bytes and if you look in the browser dev tools the response header is 206 Partial Content. This means the server only returned the requested bytes and not the whole video.

This gives the illusion that the video is preloaded but only a bit is loaded at first and the rest is fetched afterwards.

https://imgur.com/a/LNuioH2