/wdg/ - Web Development General

Last thread
'Save this image if you're gonna create new threads, faggot' edition

> Discord
discord.gg/0qLTzz5potDFXfdT

>IRC Channel
#Sup Forumswdg @ irc.rizon.net
Web client: rizon.net/chat

>Learning material
codecademy.com/
bento.io/
programming-motherfucker.com/
github.com/vhf/free-programming-books/blob/master/free-programming-books.md
theodinproject.com/
freecodecamp.com/
w3schools.com/
developer.mozilla.org/
codewars.com/
youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB lecture series.

>Frontend development
github.com/dypsilon/frontend-dev-bookmarks

>Backend development
en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
backendDevelopmentBookmarks.md

>Useful tools
pastebin.com/q5nB1Npt/
libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
pastebin.com/4YeJAUbT/
>How to get started
youtube.com/watch?v=pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
youtube.com/watch?v=zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.


>cheap vps hosting in most western locations
lowendbox.com
digitalocean.com/
linode.com/
heroku.com/
leaseweb.com
openshift.com/
>NEW!
scaleway.com/

Other urls found in this thread:

some.cafe/about
discord.gg/wdg
collinoswalt.com/gadgasdg
github.com/Sup
twitter.com/SFWRedditImages

Hi. My anus began to bleed after using JavaScript. Is this normal?

Link doesn't work for me :(

Nice. But I don't see the advantage over subreddits.

I recently put up my first project after learning for 6-7 months. It's another take on internet message boards: some.cafe/about

It has an user section but you can only interact with people who share your email address' domain. So @gmail.com users and @shittyemployer.com users would see different posts.

OP, update your discord link.

We now have a short link:

discord.gg/wdg

Thanks, I'll change it next time

How do I work with a large legacy codebase without killing myself? 10k lines css, about 10k js, and god knows how many for the server side.

I want to build babby's first website for a family member's small local restaurant. What's a simple reliable platform to get this done on?

Wordpress? Where should I host it?

unless you need a foolproof way for them to edit it themselves, why not make a custom page?

I host a few static html sites on Google App Engine. Traffic is low enough that the free tier is more than enough.

Is it at least properly documented? If not: that's your first milestone.

It doesn't need to be fool-proof. I'd be the one editing it.

Also, the only web dev experience I have is when I tinkered around and made a geocities webpage in middle school nearly twelve years ago.

I really have no idea where to start.

What do you think of Wix? That seems right up my alley and enough for a local restaurant (contact page, social media widget/feeed, static menu).

the installer?

Yeah, Wix and Squarespace are easy to use.

Anyone here using redux-sagas to get JSON API data? I'm trying to find examples doing this while sending headers with the fetch request

Wix dot com
I searched around for simple website builders and this seems to be a popular one. Already has restaurant themes to work backwards from.

Does it look alright to you?

Would you recommend one over the other?

Then should I just go digital ocean or aws when I'm ready to go live?

Nope. No documentation, no tests. 400 line methods, classes with more than 1 responsibility, JS mixed with html instead of a separate file, inline css, etc. I'm thinking of not touching it unless absolutely necessary but I still have to reuse some of it or I'll end up with duplicate functionality, this scares me. Not sure if I should add my own or reuse. Hoping to set up my own test suite, starting with integration tests and use that as my safe zone. But I don't think it will be that easy.

I think it's a matter of preference Wix used to be shittier but they've improved their product. They both provide hosting options and you won't need something like AWS or Digital Ocean if you're using a site builder (Wix/Squarespace).

So I build the site, pay to connect a domain then that's about it?

Best approach is probably rewriting it part by part, perhaps in a different language with IPC.

>work at a web dev studio
>work is slowly being migrated to a team in India
>the Indian team is incompetent
>every project we're doing is going horribly wrong

I know I should jump ship but job hunting is such a ball ache...

You'll be job hunting sooner or later. Just be prepared

Get to say I was the lead (only) developer on a site for a multi-billion dollar company which is a nice thing to have on my CV

What's the best place to advertise to get some easy cash doing HTML+CSS shit?

Here is what's going to happen:

You're going to advertise to make a website

You'll be phoned up by a small business who'll offer $150 for a 'small simple website'.

After about 10 hours of work, you'll have a reasonable website up and running for them with all the basic pages for a static non e-commerce site.

"We didn't provide you with specs or a design but I don't like the colour scheme, can you change it?"

"can't you make the design look near identical to ?"

"Why doesn't this site have feature xyz (that takes hours to implement) ? I thought that would have been obvious?"

"what do you mean we have to pay for hosting and the domain, I thought you'd do that?"

It will be hell.

There is a reason developers don't freelance.

If you genuinely want work doing pure HTML+ CSS, look around for contract jobs doing HTML email campaigns. Generally pays more than it should and can be lowish stress. You'll also get the fun that is table based layouts again.

Should I be using event.target or 'this'? I've seen videos that use both.

event.target
this considered harmful

rate pls

Why? So they'll be able to hire 10 times as many people under the same wage structure? Do they think there's strength in numbers or that they can just throw shit at the wall and hope it sticks?

I hope you've already started looking for jobs though, you shouldn't wait until you're unemployed.

>this considered harmful
Crockford pls go.

You can always use something like LESS and CSS to split the CSS up into different well named files, and compile it on changes.

Alternatively there's ctrl+f

Or bleach

I am coding an app in Node.js but I feel like asynchronous programming is a bit overkill for what I am doing. Should I just switch to C# or Python? The core of my program needs to run sync not async.

>The core of my program needs to run sync not async

It probably doesn't. You just don't know how to make it async

It has to post things one by one. If it posts too fast I will get banned.

Dear god a job in web dev is horrific, I just wanna die

Don't listen to If it's sequential, pick a sequential language you already know. Use the right tool for the job. Cucks that brandish their meme of the month as a panacea are simply retards.

How many of you guys actually do enterprise work?

Working on decade old legacy Java back ends that follow no standards because I couldn't get a job that wasn't web dev is killing me

Yes. I've had it with dev work, fuck it I'm going into testing

why are most web developers atheists? you would think they would be smart enough to understand how god could program the universe

Thanks mate ^_^

>testing
I'd kill myself within a week.

At least it's easy. And you can relax most of the time and watch porn. Better than making sure all divs align.

At least it pays well. I just need to not kill myself for 7 more years and I can retire.

I do. I know your pain, I'm At least I can add tests now so the new code should be nice.

Thing is most web developers aren't that smart.

>It has to post things one by one. If it posts too fast I will get banned.

So you need setTimeout() basically.

I mean it really doesn't matter, you can write your spambot using whatever language you want.

Considering the shitty spaghetti code I've seen, I can completely believe that God programmed the universe. But if he did he's a Pajeet, and is not worth worshipping.

Anyone working with Construct 2 here? Where the fuck are all the free plugins, effects, behaviors, etc. being hidden at?

Sucks since it's JS you can't try a plugin out before you buy it.

oh honey, that's no where near a large codebase. God help you

collinoswalt.com/gadgasdg

404 page

Hello friends.

I have a Nginx, php, mysql Freebsd jail set up on a microserver.

It's currently hosting a WordPress site I'm using to help me learn and to help market myself as an engineering designer.

Anyway.
I was thinking about hosting my little eng equation solvers I've written in python on a site so I can use them and have my colleagues use them too. They're simple things, but I want to eventually move onto more complex stuff.

I'm assuming I have to use django or flask for this?
Would it be a bad idea to have my WordPress site link to the django based pages and serve them both off the same server?

ie. On the current FEMP server: Create a new database in mysql, install django and configure Nginx to serve the pages correctly..... then have links to this sub-site from my pretty and easy to maintain WordPress blog shit?

As you can tell, I'm a fucking noob.

>doesn't believe anything is worth doing
>apathetic toward worth of anything in this world
typical atheist.

Useless for web? Better Mysql?

SQL databases suck

I start commenting the shit out of it as I druge along. Over to time it comes together in my head a little more. When it's been percolating in head, i get better ideas on how to refactor it.

Does Java fall under web dev?

I help with regression testing at the end of a sprint and it's should destroying,. I couldn't handle it

I wouldn't mind so much h if we had the time to thoroughly go through it adding tests and the such but there is a hard to please client

If you're doing a web app I don't see why not, but I don't many here use it

Better than MySQL.

What other features should I add to my news site other than tags, categories, articles and comments, upvoting and downvoting on comments?

Most viewed/commented/liked etc

thats highly subjective on the requirements
>performance
mysql
>*in starbucks* omg, it supports so many things
postgresql
every time i encounter a posgresql db/schema its filled with everything, the trash cans and its dog (and the dog is wrapped in a json object, somehow).
try mariadb, or if the db is contained/accessed by a single process sqlite

Okay so, I'm working on a small project and need to decide on some form of frontend, beacuse my lazy hack method of just ripping apart a php returned JSON is just too lazy to work with.

Last I heard angular is a meme now, is that actually true?

You're a humongous diot

What's a good resources for learning ASP.NET MVC? The Microsoft tutorials?

Thanks

literally every frontend framework is a meme but that's only because the idea of a full frontend framework is relatively new and no framework is going to get it right with version 1 or 2 or even 3

that said, i like react and ember

Do you guys think there is any benefit in saving timestamps as Date (human readable) objects? Besides the obvious of it being human readable

I always use unix timestamps because it feels so much more intuitive but from what I can see there seems to be a push to use Date type objects

I'm loading a php tag with just one echo:

Sorry, forgot to put the ?> here, but it is in the code.

>go through the whole learnyounode tutorial
>able to write some code in node
>read some books/posts about node

>still don't understand callbacks at all and any time I get them to work it's just me reciting magic words I don't understand

whats the content of $lang[back]?

Just a string that says 'back'.

weird, do
>var_dump($lang);

Where does it come up? I'm working straight on the server.

Done. Says string(2)"en"

More like modern day bachelor degrees. I might as well have written "BSc Computer Science" on a piece of paper and signed it, because apparently it would have the same amount of power.

>Would it be a bad idea to have my WordPress site link to the django based pages and serve them both off the same server?
I'm not too familiar with Nginx, but I assume that won't be an issue.

Go for it.

Fixed. It was a directory issue.

I'm getting into webdesign freelance soon - going to make on demand WordPress themes and plugins.
Is there anything I should know before starting?

I already have a portfolio with several completed websites, as well as a GitHub with my software projects.

I'm the OP from What's the odds of my server getting blocked from scraping the whole of Sup Forums every hour? Pretty high right? How can I get around this? 70 boards * 10 pages * 14 threads per pages is a shit load of requests (1 request per thread).

Considering limiting it to 20 or so boards until I figure it out.

Only if you want the timezone and don't want multiple fields.

Follow the rules and you won't be banned:
github.com/Sup Forums/4chan-API#api-rules

Also, don't scrape threads which haven't changed, you can figure that out from the thread list, most boards are dead-ish anyway.

This line of PHP is telling you to turn back and learn something else before learning PHP. PHP will make you retarded. You must learn something good first.

On work we have in house website that all the workers (around 20 of them) are using.
The server is in restricted network so it doesn't show to outside world.
On every page the php tests if the user is authenticated and dies if not.

Currently I have js that calls some php service that uses the database.
Could I stop using the php in the middle and connect to the database straight with js?
I know that in general that would be suicide because giving away database username and password but this is not general case.

I could even do it so that once you get to page that uses ajax calls it would generate in php a new database password for dummy user in the database which has restricted access. And when the js created connection it would change the password right away or if that would cause problems once the session is over.

Is this retarded idea?

>Is this retarded idea?
Yeah

Yes. Why would you even want to do that?

I'm currently scraping because 1 request per second for the number of threads I'm processing is too slow but I'm an idiot for not implementing so just cutting the number of threads down will help anyway. Cheers for giving me some common sense, it's been a long week.

Are there any free TLDs?

I'm a Roman Catholic systems programmer.

.tk

famous for viruses back in the day, still works though

I just save UTC Unix timestamps for that.
No reason. You will have to construct a Date object per item each time you need to do a sort or some other comparison. Numbers can be simply compared.
Learn promises and async functions.
Agnostic here.

Timestamps don't come with timezones, if a user enters a time in UTC+5 and you want that information stored then you either need two fields or one date field.

You can have your frontend convert all dates to UTC, when entering, and back, when receiving. But I now see this is not much better in most cases, because of all the conversions you do.

Yes I know, I think timestamps are superior, but there are cases where you NEED the timezone intact, not the UTC time.

So the answer to your first question: It depends on your needs.

most educated countries have a huge atheist population
most educated countries also have a higher amount of people working in computer related fields
therefore, there are going to be more atheist/agnostic webdevs in relation to other industries

i would think someone with half a brain could fundamentally understand this

Statistics hide more than they reveal.

Really makes you think