webdev: reddit for web developers

Subscribe to webdev: reddit for web developers feed
Updated: 14 min 3 sec ago

Just created a blog using jekyll, is there a good alternative to disqus?

1 hour 22 min ago

I've been looking online and I haven't found anything that looks too convincing. I see a lot of complaints about disqus with their heavy advertising and tracking. I would really appreciate your opinion on alternatives.

submitted by /u/xaksis
[link] [comments]
Categories: Web Development

[PHP] What's a good practice to handle form values?

2 hours 1 min ago

What's a good way to handle form values instead of this:

$name = $_POST['name']; $email = $_POST['email']; $pass = $_POST['password']; $ipadd = $_POST['ipaddress'];

When I have huge forms, I don't want my PHP to be cluttered with a huge list of variables. Does anyone else know a better way to go about doing this?


submitted by /u/sparkks
[link] [comments]
Categories: Web Development

Web Languages?

2 hours 18 min ago

Hello, I would rate my self a junior to mid-level web developer and I've been digging around trying to find an answer to this question and have received multiple types of responses to why does everyone (or mostly everyone) prefer JavaScript over PHP? I have found through some research it can't really be the speed, PHP7 has kinda sped PHP up to the standards of Node (in most aspects) so it can't really be speed? Or is it because Javascript is the more widely known language? Is there something I'm missing?

I'm sorry if this doesn't belong here I'll remove if not allowed. I was trying to look through the rules and haven't seen anything saying I can't ask this question.

Thanks~ Dose.

submitted by /u/DoseAu
[link] [comments]
Categories: Web Development

Adding hover event to all objects with a certain class...

Fri, 03/16/2018 - 23:59

I'm trying to add a hover event to all objects with a certain class, but keep getting errors. I copied my code below:

document.addEventListener("DOMContentLoaded", function() { document.getElementsByClassName("box").addEventListener("mouseover", function(){ //do stuff }); });

Can anyone see the problem? This seems like it should be relatively easy to do...

submitted by /u/ScratchTrackProds
[link] [comments]
Categories: Web Development

Portfolio icons not showing up on iPhone Safari.

Fri, 03/16/2018 - 23:15

Hello, I need a bit of assistance, I have a background in a div element that is showing up my icons that I made in Photoshop to show what my skills are. Well on Chrome, Internet Explorer, and Firefox on my desktop show up fine, as well as on my iPhone all those browsers show the icons only Safari is the only not showing them. I sent the link to a friend on instagram to test it and when I pull it up via the instagram app it shows up as well. If I search it up independently in Safari it refuses to come out and i'm a bit confused.

Here is my portfolio website (PS th website is not done, I just have been uploading the update files to test code but any feedback besides the safari issue would be greatly appreciated): armandolarios.com

submitted by /u/theleaderofebola
[link] [comments]
Categories: Web Development

Whats the best way to make this website - Wordpress theme or ground up development?

Fri, 03/16/2018 - 22:51

I am new to starting my own business, but am not toally tech illiterate. I will need someone to make this website for me regardless, but I've heard two schools of thought on how it should be accomplished. So what I'd like to do is describe what I want, and if you could, please inform me of which route I should go.

I'd like to create a classifieds website for people wanting to buy and sell their boats. I want the users to be able to create an ad for free, allowing one picture and a brief description, and the option to purchase a premium listing for $10 which will allow many pictures and unlimited description. I'd like the listings to be view-able chronologically, but also be able to search throw all the listings via brand/model, number of engines, etc...

I've heard I can do this with wordpress, and I've heard I'll need to hire out a developer. One costs under a thousand dollars, and one costs several thousand. If I get a wordpress site/developer, will I be able to ad advertisements and create a mobile app of the site, if need be? Which route should I go? Thanks for any help!

submitted by /u/jessejamess
[link] [comments]
Categories: Web Development

WP Site on Vultr VPS w/ ServerPilot. Postfix does not want to mail me e-mails (through g-mail MX) from contact forms, they just stay in the queue or don't get added.

Fri, 03/16/2018 - 22:50

I have 6 wordpress sites on my vultr VPS powered by serverpilot. They all have contact forms. All but one of them is working correctly and sending me e-mails from the contact form. But for some reason, the 6th one is being stubborn and won't work no matter what I try.

Since VPS doesn't come with mailserver, I route my e-mails through gmail (google apps) using MX records on the vultr VPS server. Doing it this way, the other 5 sites are working fine and I get the e-mails almost instantly.

(ETA: These e-mails are all same domain name as my wordpress websites. Which is why I'm using google apps gmail app to route the them to MX)

But for some reason, this 6th site does not want to mail me anything no matter what I do. I have the MX records set exactly the same as the other sites, but no dice. I can't figure out what the issue is. I looked at the SSH logs for postfix and they seem to hang up on "QUEUED" (whatever that means) and never leave the queue, or sometimes they don't get added to the queue at all.

I've tried restarting postfix on the server, but no dice there either.

Any ideas? Mucho gracias.

submitted by /u/TheDevilishAdvocate
[link] [comments]
Categories: Web Development

Thinking long term, should you freelance or expand your skill set in your spare time?

Fri, 03/16/2018 - 21:09

I work a full time job 9-5, Mon-Fri. I design and build WordPress sites.

I make enough money to pay a mortgage and all the bills, put away money and still have some left over at the end of each month. However, I also freelance on the side, doing some SEO / WordPress work.

It's nice to make anywhere from a few hundred to a couple thousand on the side each month. Money is money, and anything helps.

However, I also want to learn JavaScript. I want to get into front end development and be able to build web apps. Main reason being..

  • Job market's hot
  • Feel unchallenged at work
  • Lots of $$$$$
  • If I know JS, I become so much more marketable

Now, I only have so much time. I come home every night, and usually have 2-3 hours worth of side work to do. It's a big time suck, I don't really enjoy it, but money is money.

I'm wondering if it's worth it to just completely stop freelancing (which will be tough cause, I like money), and just full on learn JS.

Basically it's giving up the short term money, to expand my skill set and invest in myself long term - or, keep up the side work, and not really grow my skill set.

But like I said, I only have so many hours in the day.

What advice can you guys give me here?

submitted by /u/jdfweb09
[link] [comments]
Categories: Web Development

Squarespace vs. Wordpress Engineering: Difficulties in Setting Up My Dev Environment

Fri, 03/16/2018 - 21:02

So I'm conflicted and wanted to get the advice of those who know a lot more than me on this issue. I'm currently self-teaching to become a web developer. I know HTML/CSS well enough to get started I feel. I want to start out freelance and over time use my experience to get a job down the road or if the freelancing takes off, just do that. But I'm conflicted.

I'm torn between Squarespace and Wordpress. Hear me out lol because I know how popular WP is. That's what makes it appealing. The large, mature community of WP developers/engineers.

But for a newbie like me that's also intimidating and I worry the competition may not be worth it. Squarespace on the other hand has a much smaller community, byt is not open-source and that small community also means there's a shortage of tutorials and walkthroughs on how to work their system. Squarespace allows the selling of custom themes and websites too and the google search engine data suggests both platforms get somewhat equal levels of searches per month. So there seems to be a sizeable market for SP and of course there is for WP.

My dilemma is I don't know which is the better option. I have more experience with SP because I used to run a SP blog for 3 years before passing it off to someone else. But SP uses Javascript and JSON and WP uses Javascript and PHP. Two completely different languages (PHP vs. JSON)...so I have to choose one over the other. I can't do both.

I'm leaning to SP because there's a shortage of plugins and themes compared to WP, so there's the opportunity to make a lot more money with much less competition. That's my thinking anyway.

I need help building my developer environment. I want to set up Roots.io if I go the WP route, but I'm completely lost setting up the Squarespace environment lol. I think it's just a lot of information and I'm looking for a step-by-step process to follow to set it up. But first I want to get your opinions about which direction to go in.

submitted by /u/CryptoInvestor87
[link] [comments]
Categories: Web Development

How bad is it to have a website that requires JS enabled to be functional?

Fri, 03/16/2018 - 20:54

Hello guys.

I'm working on my pet project and right now and what I do is creating two versions of stuff like forms: one with JS which is more pleasant to use for the end users and one for people who have the JS turned off. I don't want some people to be unable to use my webiste because of that. Should I continue to do that or is it safe to drop the support and just put some information that this site requires JS turned on to function properly?

submitted by /u/Nitek
[link] [comments]
Categories: Web Development

What vim plugins do you use for web development?

Fri, 03/16/2018 - 20:00

Years ago I used pure vim like 4 months, now I'm working in web development (MERN) and I want to try vim again, I'm tired of the IDE's, can you guys help me, which plugins do you recommend me?

submitted by /u/GeeGeeks
[link] [comments]
Categories: Web Development

Are there any solutions to marketing tags impacting pagespeed scores and load times?

Fri, 03/16/2018 - 19:51

I work for a creative agency that builds and manages quite a few websites for clients. When we build a site and hand it over to the client it sits at a pagespeed score of 99+. Invariably this goes down as clients use the site. The biggest offender and the one I haven't found a solution for are marketing tags. They tend to hurt every aspect of the pagespeed score and that is the most visible metric to the client.

The only improvements we've been able to make are to move everything that we can into Google Tag Manager and using async when it doesn't break things.

What solutions are there besides telling clients remove unnecessary tags?

submitted by /u/elwombat
[link] [comments]
Categories: Web Development

What is your main source of getting clients?

Fri, 03/16/2018 - 19:17

I want to know the #1 source that you have for getting clients are. Whether it's SEO, Networking, starting a Blog, etc. I want to invest in some Marketing, but I need to invest in the ones that will provide me the best ROI and Leads. Thank you!!

submitted by /u/Pronces
[link] [comments]
Categories: Web Development

Optimizing a Static Site

Fri, 03/16/2018 - 18:20
Categories: Web Development

How Do Web Dev Agencies Make Money?

Fri, 03/16/2018 - 18:19

Hey All.

I'm in the dark about the business side of Web Dev Agencies and was wondering if someone could educate me.

As I understand, Web Devs usually charge a one time fee for the website and the recurrening income is only through maintainence charges. This is the case atleast in the East, where I live.

How is this a stable business model and how do they actually make enough money to scale higher?


submitted by /u/TheProph3t
[link] [comments]
Categories: Web Development

If you are in the USA, don't use foreign hosting company!

Fri, 03/16/2018 - 18:15

Just learned a hard lesson about Siteground. If a foreign web services company rips you off, you can't take them to small claims court like you could a US-based company. They are outside of US court jurisdiction. Siteground has no US office or personnel. No recourse and they know it. They stole money for a year of high-end service that was terminated, after tacking on addon services I didn't want. Only way I found out is they tried to auto-bill a credit card I cancelled. Refused to refund. A domestic firm I could address with arbitration. Not so with a Siteground, who is based in Belgium and lists its corporate office in Panama. Far as I can tell, most positive posts are made by their shills.

submitted by /u/FeudLord
[link] [comments]
Categories: Web Development