what's react good for? what do you use it for? I'm thinking on getting gud with vanilla js before diving into react, newbie here btw.
Zachary Brown
got a jnr front end job for an agency which does adverts for a lot of big clients
how will I like it?
im a neet atm so not even used to a 9-5 job do you actually code for 8 hours straight or is there a lot of time where you sit around doing nothing?
Colton Peterson
If you're a total newbie to programming don't even bother with react. You won't understand anything and you'll end up just copying chunks of code. Vanilla is enough to write functionality for almost any standard website, react is dedicated towards bigger web applications with a lot of dynamic content (and still it is not required, it only makes it easier to manage the code).
William Collins
Having a good foundation in JS will make learning anything else JS-framework related much easier. I suggest you do that. Even if it might seem a bit annoying/difficult in the beginning, JS gives you a lot of power.
Landon Edwards
golang or node? i need to write the backend for my site now
Jaxon Rodriguez
How to I performance optimize react apps? Just finished something, but it's slow.
I'd like to know which compnents, which data elements etc are slowing my app down.
Any recommendations?
Brandon Sanders
Since everywhere on the internet it's this annoying "absolutely anyone can be good at programming" attitude, I'm asking you Jow Forums, are there people that are not made for it?
I was always very good at social sciences and struggled with math, physics etc (though my grades weren't shit, but they weren't anywhere near as good as my lit, history etc grades). For some reason, I decided to learn webdev. By some miracle I got an internship and eventually a job as a frontend developer, but I mostly do HTML & CSS. For a year I've been trying to learn Javascript and I feel like I just cannot wrap my mind around a lot of programming concepts. Should I waste more time in this career or should I just try to find something more suited for me? I find it hard, frustrating and not that satisfying at the end of the day. Is my brain just not made for this type of work?
Cameron Myers
>For a year I've been trying to learn Javascript and I feel like I just cannot wrap my mind around a lot of programming concepts.
I'd say forget about javascript and move to a different language to see if your reaction is the same. Take something like PHP and read some modern books, once you get the basics of programming done make sure you move on to classes/objected oriented programming.
If you are still frustrated by it I'd say it is not for you then
Javascript is mostly about accessing the webpage properties, which is somewhat of a boring process, I don't like javascript much myself but I love coding c#, java, or modern PHP which is a fully object oriented language with namespaces to make everything really organized and nice to work with
Joseph Perez
But I guess it can be said that to enjoy programming you must enjoy one of these two, preferably both:
>1) Write clean, organized code and feel accomplished and have fun just by doing that >2) Enjoy getting features done and seeing them in action
I've been writing my on take on a templating engine (it takes pure HTML and switches things like {{username}} with the actual username, so pure HTML code can still work with dynamic content), that can do anything other templating engine do but disregarding all need for complexity and doing actual programming tasks at the HTML (and so far I have been successful with it), and it was fun as fuck despite being very hard at times
Alexander Scott
your browser dev tools
Jonathan Ward
Hi Jow Forums, I'm looking for some advice on approach so for those of you more experienced with front-end javascript and design I'd appreciate your feedback.
I want to create a portfolio similar to the homepage of this site: agence-me.com/us/ There are a lot of moving parts but my focus right now is to get the general structure but leave room for animations and customization later.
I'm thinking of using: >Bulma CSS Framework >Take Fonts and some color hints from the site >Try and replicate the vertical sliding menu from source code >Use VueJS for loading animations >Try and learn Adobe AE (much later)
How do I start?
Anthony Moore
>using all these frameworks >doesnt know where to start yikes...
Kayden Wright
Learn JS before you learn anything else. Get good at JS before you even think about react. Stop trying to put the cart before the horse.
if you love boilerplate, go
Anthony Moore
Install React dev tools for your browser and start going through stuff in that. Consider tracing stuff or writing out events to console.
Jason Morris
>... What >I was putting -l >Why putting -l in a post mean that I'm not knowing what I'm doing? >Why shouldn't it work for you and not me?
Because obviously user, I know what I'm doing when I put a - in my post.
It's the old joke in IT: >clueness luser goes to tech support and complains that their laptop doesn't work >I rebooted it and it still won't work >tech support reboots the laptop, it works >well you can't just hit the reset button without knowing what you're doing and expect that it will just magically work
Obviously, if you know what you're doing when you hit the reset button then it will magically work.
Mason Smith
what do you guys use for css/js animations
Hunter Scott
what kind
Nicholas Adams
text, svg/shapes, and elements like changing a hamburger icon into an X or movements between those 3 dots you would have on a slider
Levi Allen
That might be the most terrible reference to this old joke ever. Are you high?
Levi Cox
>turn off javascript on my browser >site is completely unusable
javascript is fucking cancer forcing developers to either make 2 completely different site layouts presenting the exact same content, or shoehorning everyone to use an anti-privacy technology.
>turn off javascript on my browser hey here's a novel idea how about don't?
Camden Miller
you're just doing it wrong.
sorry bud.
Adrian Cox
I like NOTY for notifications, that's all I know
Andrew Perez
>he fell for the Stallman meme
Adam Ramirez
To reiterate what everybody else said - get a handle on Javascript first before you do anything. Look up ES6 syntax as well if you're looking at getting into react - you'll need to know how to use it.
Regarding what react is actually good for, if you're familiar with the MVC model, React is the V - the view part. It's a super easy way to handle complex UI's. That being said, if you're still trying to get a handle on vanilla JS, don't even think about touching it yet.
Mason Gutierrez
>he uses sites that require js xD
Luke Morales
non-dev here how safe is to use a nulled wordpress plugin from piratebay? anyone here did it?
Juan Murphy
>nulled not really safe. I know the ins and outs of WordPress and PHP quite well so a few years ago I would take nulled themes and remove the malicious scripts. So, if you know WP and PHP well, I guess you could risk it, otherwise, don't. It's not worth it.
Aiden Thompson
where do the malicious scripts usually reside? do they follow any pattern, any way to recognize them?
Asher Watson
Why are you here then? Jow Forums uses js. Are you only pretending to be retarded to get yous? Damn. >xD
Hudson Allen
But that's completely wrong. I guess you take some bloatware react+backbone+handlebars+modernizer+jquery+angular shitshow website as examples in your mind to make yourself comfortable with the idea that js is 100% shit but you're wrong. I dislike js too, framework more, but don't disregard a whole programming language cause you've seen bad practice. Or maybe you're a retard who can't into js? I guess we'll never know.
Kevin Hill
It's never safe to get content from torrents, especially code. no pattern, you'll have to read the damn thing mate.
Jose Gomez
I'm out of the loop as I haven't been dealing with nulled wp themes for a few years but it would vary, sometimes it's just a simple script in the functions.php file, sometimes it's scattered across multiple files, even have a directory buried deep within other directories.
For peace of mind, you shouldn't use one but that's just my two cents.
Anyone used the DigitalOcean free $100 credit offer? Or used DO free credit in general? Can I register, use all my credit on like 20 months on the cheapest droplet, and then remove my credit card? Or will removing the card somehow terminate my droplets or something?
can you explain why do you think the modern php is shit ?
Brody Davis
So I made a wordpress blog to show employers that yes I can use wordpress. Other than the basic filler and such I added a poll for people to vote for favorite beers (its a beer review site). What are other features I could add to make my wordpress site look more impressive?
I hate wordpress by the way. Only reason I am doing this is that a lot of people at interviews ask if I know anything about it presumably because their sites were built using it by some retard.
Carson Diaz
Why am I surprised at these responses...there's always been an underlying zealot/purist mentality on Jow Forums that overemphasizes meaningless obsessive work. 99% of people don't give a shit what you use to build a website as long as it serves the purpose... web dev isn't my core competency and hacking something together to attract clients is perfectly fine by me. I don't have unlimited time to learn everything properly and I already solved my own problem so I hope you enjoyed reading my rant
Hudson Turner
see
Alexander Davis
This playlist on how to build a wordpress theme from scratch is pretty good. Learnt a lot and just adapted parts of it to make my own theme.
Let's say you have a static site that does some JS calculations and not much else, how much hardware would you need to scale it to a few million users a day? Is there a way to calculate this? Or should one just throw this on AWS or heroku and wait to see how much the bill is. (Seriously how do I calculate aws prices)
Juan Perry
Hey I'm a noob too, always will be a noob.
Anybody here know how to make an element that is created through JS have a transition, preferably a fade-in?
noob again here, trying to help, what you want is to display the item at opacity 0% and animate to opacity 100% within x seconds, hope that helped
Noah Collins
what does the document.body.appendChild(box); do?
Oliver Johnson
Appends box to the element as a child node. Adds it into the page
Owen Williams
got it
Levi Torres
why would you do on===true rather than just putting "on" in the condition??
the if statement evaluates it for you right?
Dylan Rogers
what's the advantage of using the wordpress rest api over the conventional way? I want to start making sites for small business around my area and I think I might prefer using and expanding my react skills if it's an option
Logan Roberts
Yes but the important part of writing code is making it as readable as you can to other human beings since the computer interprets every programming language in the same exact way regardless (machine code). So 'on === true' is a bigger clue of what the condition is than 'on', which is actually checking if 'on' exists and not if it equals true.
Kayden Jackson
interesting
is there another way to do this where you could make two variables one where on= always true and off= always false and use them in the logic?
Matthew Gomez
please don't use wordpress; if wanna do rest api in php, use zend expressive, way much faster and better code.
you can also use zend expressive with swoole php which gives you way much better performance than NodeJS.
PS : swoole only works on linux , so you can develop your application using php built-in server for testing, and when you move it to a server, you can add swoole. ( to do that, you need to build the application using the expressive skeleton : github.com/zendframework/zend-expressive-skeleton )
Adrian Evans
Not that user but thanks, that's quite interesting as a matter of fact.
Austin Stewart
> work for a small business > writing internal tools for team to use > most of our bugs result from our team typing GARBAGE into input boxes > white space everywhere, intermixed capital and lowercase letters > typos, misspellings, letters in number only fields
I weep for my s
Juan Sanders
Depends. Some companies ask for daily progress at the end of the day. Some ask even for hourly. Very few don't ask at all, as long as you complete your task.
If it's a daily thing, it's fine. Depending on the time of year and how many projects they have on, you'll work anywhere from 1-2 hours (yes, seriously) to 9-10 hours a day. Make sure you ask for extra if go overtime tho.
Josiah Fisher
i meant you can develop on windows without swoole.
i forgot to mention that swoole also provides async support, coroutine and much more.
you can also use the templating engine of your choice ( twig, plates, zend view .. ) , which mean you can also use ReactJS on the front-end.
Xavier King
i think i heard them mentioned they are starting to do daily standups.....good or bad?
Kayden Lewis
Is web development gonna be replaced by AI robots by the time I finish college?
hey, thanks for the response, I will definitely look into this,
Christopher Bennett
good because you are new so you an absorb a lot of info, but after a few months they become pointless
Bentley Bailey
you are welcome.
if anyone has a question about Php, or how to do something in particular, i'm here to answer.
Blake Scott
Will you lurk often in these threads? It would be nice to have an experienced php dev to ask questions. Also, what do you think of Phalcon?
Aiden Jenkins
I'm learning react by writing a simple blog and I'm wondering how to go about storing the webpage content. Let's say that I have a contact / about me type page. Should I have that content hard-coded into the jsx files or should it be fetched from a database, like other content, such as new blog posts? I'm leaning towards having all the content in a database.
Blake Wood
how do I stay safe from MySQL injections drop tables etc, what should my basic security set up be ike?
dont even need the on variable and can use replace instead of add & remove
Alexander Barnes
/Gallery?mode=tag/{tag} or /Gallery?mode=tag&tag={tag}
Ryder Davis
the js code looks exactly the same??
Jonathan Williams
/gallery/tag/ss
Christopher Anderson
use prepared statments. if you are using mysql database or mariaDB, use the Mysqli class. but i would recommand using PDO, so you can switch between databases without changing any code.
if you wanna do something more secure, use a Database Abstract Layer such as Doctrine DBAL, Illuminate Database or Zend DB.
hmm i like that, though it would mean two different urls for what is basically the same version of a web page. all the {tag} does is open a dropdown and autoscroll to it on page load, within the tag view.
Aaron Cox
oh i know, ill just have /gallery?tag to refer to the viewing mode, then go from there based on whether or not it has a value. Thanks for the bounce, mates
Chase Thomas
Which computer science subjects should I study if I want to become a good developer? I've already read a textbook on algorithms and data structures.
Luis Richardson
thats pretty much it for basics. next pick up a book on the specific technology you want to work with, then go from there
Nicholas Richardson
Any good elegant looking UI kits for bootstrap?
Brody Price
>bootstrap >current year
Jason Roberts
Or for whatever, I just mentioned bootstrap because I already set it up and have the basic layout with its classes, and it's still the most popular so I figured there's more UI kits out there for what I need.
James Bennett
>be me >be trying to get a job in web dev for years, never have enough experience for entry level >land a job with a company that'll look tremendous on a resume >get hired to redesign their website >they give me a graphic design project >fffffuuuuuuuuuu but do it anyway >they give me the web project login info >it's for a WordPress site >think oh OK no big deal its entry level they did ask me about CMS stuff in the interview >they're tech department created a custom theme >I'm required to adhere to their strict "branding" policy. >my login credentials don't give me admin access >their IT department rightfully hasn't given me access to any of the server stuff so can't upload media and can't write any custom css/php
What the fuck am I even doing here? I can basically only change the content of the site. Any media will have to get sent to IT to upload and the branding policy is so strict that it has to look like every other departments site.
Im going to ride it out because it looks so good on the resume but how do I change the site enough to make my bosses think they got their monies worth and how do I list this job on resume to make it look like I wasn't just doing graphic design and pissing in the sink for fun? I'm going to focus on UX stuff so their site is at least easier to navigate but what else?
>hasn't given me access to any of the server stuff should they ? i think that's the right thing todo.
also , you don't have to work for a company to get experience, learn by yourself, create projects, try to build tools and put them for free on github, that's how you gain experience.
Carson Ramirez
Choice quote m8, literally drag your mouse one word over.
>but how do I change the site enough to make my bosses think they got their monies worth How about you do what you were told to do and give them their money's worth by making sure that they get what they wanted?
Cooper Evans
In javascript, you got an array: ['foo', 'bar'] and a dictionary/map/object { 'abc': 'def', 'foo': 1, 'bar': 2, 'baz': 3 }
How do you retrieve the subset of key/value pairs (or just values) from the dictionary/map/object, using the array? i.e. the result should be