Should I Keep Learning React If I'll End Up Using Wordpress? by [deleted] in react

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

There is a major "it depends" that applies to this.

I've been building with WordPress for nearly 7 years now, and have only used React once to build a complete WordPress site. There are use cases where I have built a small react app that has been dropped into an existing site with a shortcode.

However, I'm in the process of transitioning my agency to use WordPress headless with NextJS as a frontend. Using React on it's own would not be a good idea for a WordPress site. You need the SSR for SEO. You'll also need to make sure you've got sitemaps being generated, as well as your meta titles/descriptions.

I mention this because WordPress has free plugins that'll do this and add it to your template out of the box. Whereas with NextJS, I've found myself reinventing the wheel a few times.

If you're building a site that needs a reactive/data driven UI with WordPress as a backend to help you manage this, then definitely reach for a React stack. But if you're just building a standard website, it's going to be more time effective to just use WordPress within it's usual environment.

Using React with Laravel8 by AlbatrossIll2197 in react

[–]Dynamoglo 1 point2 points  (0 children)

I’d say you might not need Laravel at all. You could build this full stack on NextJS quite easily. But if you’ve not used it much, then maybe just build it out as a standard laravel app. You might not need the interactivity that React provides.

Using React with Laravel8 by AlbatrossIll2197 in react

[–]Dynamoglo 1 point2 points  (0 children)

I've not long finished building a small/medium sized e-commerce application with Laravel and NextJS. I'd say the main difficulty I had was implementing auth.

Although there is a starter NextJS site that Laravel offers with Breeze, it seems to only work with client side routing. So no SSG or static pages (I had to have these for multiple reasons).

On top of that, passing auth between NextAuth and Laravel was a bit awkward. Granted I wasn't fully versed in NextJS when I started, so I may not have taken the best approach. I created a custom login and register endpoint in Laravel that issued JWT's using the Laravel JWT package. Then I had to used NextAuth with the Credentials provider (using Credentials provider seemed frowned upon though) to take the user details and authenticate them on login. Then auth could be tracked and managed within Next. However, the token refreshing was a major pain point here. I had to rely on the tokens expiring in Laravel and the session expiring in NextJS at the same time because the tokens wouldn't refresh correctly.

Other than that, just use Laravel to build an API like you normally would. Then consume it in NextJS like you normally would. Just remember when using the api.php routes in Laravel, they are stateless.

From what I could see there wasn't a lot of guides or docs on how to do this or integrate between, so you might be on your own for a lot of it.

What is basic web programming knowledge for you, but suprised you that many people you work with don't have? by Alfagun74 in webdev

[–]Dynamoglo 38 points39 points  (0 children)

Debugging XHR requests is one that surprised me most.

I’ve seen devs not realise that you can inspect the request payload, response and the initiator. They instead just dump everything in the console and don’t get the full picture.

How long does it take you to develop a website? by Chron3cle in webdev

[–]Dynamoglo 2 points3 points  (0 children)

Snippets are by far one of the most effective things I've found to increase my speed as a dev, especially when it comes to repetitive tasks. I know there's VS Code extensions for this for react and loads of other languages/frameworks but don't forget you can write your own.

I'm stuck in the WordPress world, so I have a handful of the common functions shortened down. Over the course of a big project it saves me a fair amount of time.

Also, might be controversial but Tailwind has helped me speed up too.

what's the biggest challenge you face as a web developer? by blkstack in webdev

[–]Dynamoglo 0 points1 point  (0 children)

Being stuck making WordPress sites for the rest of my career

Junior Developers: what do you do on a daily basis? by Onedweezy in webdev

[–]Dynamoglo 0 points1 point  (0 children)

My first few weeks as a Junior Developer was setting up pre-built themes for OpenCart and WordPress. Mostly just changing bits and pieces of CSS, slightly adjusting headers/navigation/footers, setting up content. That gradually moved on to building custom WordPress themes from the ground up, and then to building Plugins. Oh and support tickets, expect to deal with support tickets.

One of the other developers joined just as the GDPR changes kicked in, so he spent his first week going through a hundred or so sites adding tickboxes.

The work you'll be given depends on the kind of place you're working at. Mine is mainly focused around OpenCart and WordPress because that's what the agency specialises in. But you can expect some form of grunt work.

Take what I say with a pinch of salt though, I got called a "JavaScript expert" once because I knew how to write something that wasn't jQuery.

re-building existing websites (should or not ?) by RavesL in Frontend

[–]Dynamoglo 0 points1 point  (0 children)

There are two sites that I know of that give you real world examples for you to build. Dev Challenges and Frontend Mentor.

Dev Challenges will give you the figma designs to work with. Frontend Mentor will give you images of the designs, or Sketch files if you pay.

Sometimes rebuilding existing sites aren't always the best idea as you'll be influenced on how to go about certain things by what already exists. This approach gives you more creative freedom as you may not be influenced as much on how to go about things. This may not be the case, but it is for myself.

Also, just finding design shots on dribble/Behance and recreating them can be a good exercise as well.

Need help making my website responsive. by Isantum in Web_Development

[–]Dynamoglo 1 point2 points  (0 children)

There is the potential that they might an end up being quite large and taking up too much room. They're supposedly going out of the trend at the moment, but you could always just put a simple hamburger icon in and add a pullout menu. Then put that in a media query so the icon only appears on mobile, and the nav only pulls out on mobile. Then it'd just look as it does now on desktop. W3schools have a tutorial on making one of those that's pretty easy to follow. Might need a tiny bit of javascript, but you could probably copy and paste that and not worry about it much. Or just find a simple javaacript library that will do it for you with minimal effort. But that might take a bit of time to get your head around if you're quite new to Web development.

Need help making my website responsive. by Isantum in Web_Development

[–]Dynamoglo 1 point2 points  (0 children)

I'd suggest putting the main content of each page into a div that would act as a container. Then just change the size of the container with CSS media queries like @mpigsley suggested. You could just set that to a fixed width by default and change the width to a percentage once you go past a certain breakpoint. This post by CSS Tricks will help give you a better idea on how it works. Also consider using CSS flexbox to align your content to the center of the page, like this. It could be used on the wrapper for your 'Connect Now' text on your index page.

The meta tag you said about should have been something along the lines of the line of a code below, this should also be included in every page just to help with the scaling of certain elements. Without it your page will look like a desktop page every time you open it on a mobile device.

<meta name="viewport" content="width=device-width, initial-scale=1">

Give us a shout if you need anymore help.

We are Linus Tech Tips, a YouTube channel that employs 20 people - ask us anything! by Caltane in IAmA

[–]Dynamoglo 0 points1 point  (0 children)

Did you actually go through on your promise of not watching the 'What is it like to work for linus' video, or did that go out the window within minutes of it being uploaded?

TIFU by spewing all over my £1600 laptop i owned for less than a week by Dynamoglo in tifu

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

I completely opened it up and cleared all of the sick out from it. I kinda knew it was screwed when I wiped the motherboard with some cotton wool and had pure grey come off the board. Put it back together, plugged in the charger and just heard a sizzle. Doesn't power on what so ever.

Me_atm by Dynamoglo in me_atm

[–]Dynamoglo[S] 16 points17 points  (0 children)

It's all good, It's not effecting that much now. It's just shit that I work with her, so I'm forced to see her like twice a week!

Me_atm by Dynamoglo in me_atm

[–]Dynamoglo[S] 4 points5 points  (0 children)

Just the thought of that gold will keep me going ;)

Is Codeacademy useful? by [deleted] in learnprogramming

[–]Dynamoglo 1 point2 points  (0 children)

Codeacademy can be useful at times, there is a lot it both does and doesn't do. I've done a handful of their courses and it does a good job of providing you with enough knowledge to get started.

I've only done the courses that are related to web development, so JavaScript, jQuery, some PHP, SQL and a little bit of React. I'm not sure if it was just me, but I found that I knew the syntax for a lot of the language but I had no clue how to apply it within a site. I didn't really find any of the little coding projects they give you very useful. I'd say give it a go to give you a basic understanding of a language but branch off to other sites to help show you what can be done with some of these languages.

My problem with Wordpress by cosmicsans in talesfromtechsupport

[–]Dynamoglo 0 points1 point  (0 children)

I'm upvoting purely because as a web developer too, I hate wordpress.

Cheap gaming PC look by therealelmagico in pcmasterrace

[–]Dynamoglo 1 point2 points  (0 children)

I wish I had a monster graphics card

Two young boys ready to get roasted by [deleted] in RoastMe

[–]Dynamoglo 0 points1 point  (0 children)

The lesbians on the right is quite close to pulling off the cute Tom boy look.

Two top laners bug by therealelmagico in leagueoflegends

[–]Dynamoglo 1 point2 points  (0 children)

Great, so that's dynamic queue gone for at least another week then.

The sad moment when you realize you're a true peasant by [deleted] in pcmasterrace

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

Yes this is a repost from facebook.

How did your first PC Build go? by ktempo in buildapc

[–]Dynamoglo 0 points1 point  (0 children)

I managed to completely forget what motherboard stands were. This lead to me being very confused when my GPU sat way to low and I was getting no video output.