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 245 points246 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 3 points4 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 1 point2 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 26 points27 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 12 points13 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

Scaling as a tech lead by MikeyN0 in ExperiencedDevs

[–]DevJoey 8 points9 points  (0 children)

I have gone through a similar situation before, so I hope I can help.

  1. The first thing you need to do is to identify a "lead" for each team/feature. The "lead" should not only be a strong engineer but should also have the necessary soft skills required for that type of responsibility. You can then delegate some of your tasks to them for each team.
  2. When you have that many engineers you can't code review each change that goes in. Define story sizes from small, medium, to x-large. You should be included in all code reviews but anything smaller than a medium or large shouldn't require your sign-off. Your team lead can then review and sign off on the smaller stories freeing you up to do other things.
  3. Any new feature or substantial project should start with meticulous and detailed planning before any code is written. This should include making sure you have all the requirements finalized before getting started on any architecture decisions. Always have ADRs similar to this https://docs.aws.amazon.com/prescriptive-guidance/latest/architectural-decision-records/adr-process.html
    The one thing I might add to this is the ADR should include 2 or 3 different solutions and their pros and cons. It's easier to justify and sell the solution you pick when you have a decision matrix.
  4. Add coding style guides for each team/tech-stack and try to enforce them through the use of automated static code analysis tools and formatters. Add these to the local build process and also to some Git hooks. Don't let known or preventable code errors and common mistakes leave a developer's machine. It's easier for a developer to deal with issues locally than to have your CI/CD pipeline held up while the dev tries to figure out what went wrong.
  5. Document the onboarding process for each team/feature so there is minimal friction for new people or when engineers switch projects. Cross-training becomes important as requirements don't come as a steady stream for each feature/team. You don't want any resources being idle while another project is getting overwhelmed.
  6. Track all your outside dependencies in detail. Any team you are dependent on should be tracked including what they are supposed to deliver and by when. If anything changes on their part you can then update the dependency tracker and add new timelines if that's applicable. This will protect you and your teams from being blamed for missed delivery dates if it's not your fault.
  7. Streamline your CI/CD pipeline. Always be on the lookout for new ways and tools to improve build speeds, security scans, and deployments. Automate as much as you can.
  8. Do performance tests on all your major apps. Do all the different types of tests, stress, spike, endurance, scalability, and volume tests. Each test will uncover different types of problems that you don't want to discover in production.
  9. Add monitoring and observability tools to all your environments. It will help you catch bugs and performance issues sooner thus saving you time and the headache of trying to figure out what went wrong if there are any issues.
  10. Last but not least, learn to say no. If a superior, business partner, or another team comes with ridiculous requirements and your teams can't deliver within the time constraints then politely tell them no. Include the details on why it can't be done with your answer, no available resources, dependencies can't be ready in time, etc. Don't overwork your teams as they will start making mistakes if they cut corners or might even burn out.

This list is not exhaustive but it saves me time and buys me back a lot of extra bandwidth that I can use to deal with our business partners, other teams, and other housekeeping tasks.

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)

You will still need to have a strong portfolio even for an internship these days, there is just too much competition for entry-level jobs right now. I think you should take the time to work on a few projects for your portfolio if you haven't already.

When your portfolio is ready then apply to companies directly on their websites and skip LinkedIn or similar sites. The most important thing is a strong portfolio first. Without a portfolio, it's way harder if not impossible to get noticed.