/wdg/ - Web Dev. General

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

> Discord
discord.gg/0qLTzz5potDFXfdT

>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 - "Crockford on JavaScript" 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/ (embed) (embed)
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

Other urls found in this thread:

github.com/4tran/VIB
4tran.bid/
youtube.com/watch?v=UdAqU4GRR9Y
rainymood.com/
reddit.com/r/webdev/comments/4e2hn8/i_shared_my_web_app_to_Sup
seocopywriting.com/seo-copywriting-certification-training-faqs/
github.com/Forestdev/jsRoute
rosettacode.org/wiki/Rosetta_Code
vanilla-js.com/
twitter.com/SFWRedditGifs

1st for Go

2nd for Come

3st for cum

4 for how do I get a job

5th for India

6th for Trump and MAGA

6th for why aren't you asleep yet

>tfw got more done in 3 hours at Starbucks than a whole week at home

I guess not being able to browse image boards helps a ton, and being seen coding helps your ego and desires to continue.

I'm unproductive everywhere.

This is bait

I think that it could be a social pressure thing

Drank too much and slept all day.

Also found a bunch of cheap herman miller aeron chairs I'm looking at.

how is that bait

guys let's start a wdg - webdev fraternity.
just a friendly group who share common wdg passion.

Requirements:
1. html, css, js
2. rest of the memeshit frameworks

What should we name it? I was thinking of just converting initials of wdg to greek but "w" has no greek equiv. pic related.

>Resume: "member of Whatever Delta Gamma"
>Github: "member of Whatever Delta Gamma"
Sounds Nice!

Something something hipsters in Starbucks on their macs trying to look productive.

That guy is a meme.

I'm making an imageboard software in php.
Looking for help with the front-end/design, as I don't have an eye for such things.
As far as the back-end goes, I know it has bugs, I'm working on it. That said, pointing out bugs you notice is never harmful, only possibly redundant.
It's free to use, although I wouldn't recommend it, and the source code is available here:
github.com/4tran/VIB

A live site is running here:
4tran.bid/

Any opinions are appreciated. If you'd like to help me more extensively with my project, do let me know, as I would not turn down a competent partner.

Im on it brah...

doctors have their own, EE's have their own, architects have their own...

Web Developers must have this!! We need to unite against pajeets!

Can anyone explain what the hell is going on in this scene?

When he goes to close his account, what exactly is he doing? Why would he be doing it in code? Is he just deleting it with an sql command? That seems retarded?

youtube.com/watch?v=UdAqU4GRR9Y

Not a bad idea.

Make some sort of online web dev fraternity where only really good web devs can enter.

Membership cards and bumper stickers. Extremely intense testing standards.

Also if you hired a recruiter to find placements and to shill the idea to businesses it would probably catch on.

I simply cannot tell if this is sarcasm.

>where only really good web devs can enter.
people who are not so good as long as they know css, html, js should be able to enter. Members are ranked anyways. Just like illuminati - the better they become, the higher they climb the steps. The thing is /wdg/ really needs to have a fraternity badly. People who just rip other's work a.k.a "those who ignore licenses(MIT, Apache) without proper attribution", "people who can't into google" "dipshits", "pajeets" and other "cancerous individuals" need not apply

Can someone enlight me on front-end framework? After a shallow study of React.js I don't seem to find their utility. They seem just like yet another layer of unnecessary complexity.

But I've never made anything big, only intranet sites and a couple of small personal projects.

>people who are not so good as long as they know css, html, js should be able to enter

>what is backend
fucking hell, is this general now a meme or what?

agreed. I think at minimum sql should be required, as it's foundational to any web software with even moderate complexity.

Actually, now that I think of it, I'm being quite biased.
SQL is not used in all dynamic web software.
However, a back-end is required for any real functionality.
Instead, it should require one of the following languages:
php, python, ruby, perl.
OR
javascript or any other language if they can prove that they can use it as a back-end (through the means of node.js or whatever)

Well /wdg/ is small.

It would need to be open to everyone.

We can range block India.

databases often have a boolean field "isActive" with true/false values

if false, then x restrictions

Lambdadelta

the utility of react is that the components are simply functions of props and state, and are able to handle updating themselves and their children when data changes
this means that one of the major problems, keeping ui lined up with application state, is mostly already done for you

but if you really don't like it, you could use backbone which provides utilities for accomplishing the same thing with more code

just a suggestion: when you make a post, you shouldn't have to click to get back to the thread.

can anyone point me towards an in depth look at ASP.NET mvc frameworks? More specifically: how are Html helper methods implemented, and other things of this nature.

Code is a mess. Logic mixed with presentation, SQL queries thrown in for good measure. Eww.

I suggest you to restructure your project into a proper MVC or similar pattern.

pretty neat. are you using a framework or just php?
also you should look into google captcha.
its pretty easy to implement

Are there any eslint rules for maximum length of jsx components? There are people on my team who will make 800 fucking line components with clear potential for breaking up and my manager is too busy with a retarded QA team to tell people off

what is that http request builder application anyway

postman

Alright fixed.

>Requirements:
>1. html, css, js
>2. any backend like php, python, ruby, perl, sql


Now somebody be a leader already! We'll go from there

Read one of the stickies

>Sleeping during the day may have unintended consequences.

uuhhh, what kind?

Unsure if /dpt/ or /wdg/, but it's in the web, so here I am.

> open rainymood.com/
> view source
> see the face of satan

I'm not much of a code monkey but I have no idea how the fuck such a simple looking page can justify this much code. I don't want a line by line breakdown of whats happening but can someone tell me broadly what the fuck is going on here?

Completely new to web development but have very basic HTML and CSS knowledge from high school. How good is freecodecamp as a place to start? I watched the "Watch this if you want to become a web developer video" and I think I'm more interested in the back end side of things. What would you guys recommend? How did you get started?

It's just a minified library (jQuery). That's why it looks terrible like that. They just import it to use some of it's functions, it's not the code of an app.

That just looks like standard minification, even if loading jquery for such a simple page is overkill

All web devs projects the same.

You can master one framework and be able to do it all

whats the best way to create links to articles nowadays

>article/id
>article/slug-id.html
>article/date/slug

also, using mongodb, the id field is rather unhandy

>mongodb
kys

>mongodb

its just a blog idiot. I dont give a fuck if there is a 0.00000001 % chanse of data loss

doesn't justify using db that has literally no merits

>>no merits
>doesnt save emty fields (save space)
>native json support
>horizontally scalable

but what do I care, fuck wdg, should have gone to google in the first place instead asking autists.

If you actually want to get good, pick up a js book and a php book with good reviews. When they teach you a concept, implement it and make it more impressive.

Say the php book teaches you how to do simple form handling and has you print the result on the screen. Take that further and make a super simple login system using mysql or some whatever db you like. After about a year of doing bullshit like codecademy and never learning anything, this strategy is how I actually started learning shit.

Oh and you're going to be very confused at times doing projects beyond your reach. Google is your friend.

>horizontally scala-memeing a blog
kys

Recommendations for hosting a web application pls. Relatively simple, runs on Java (Spring), Postgres database. Currently just undergoing development and testing.

Is there much of a benefit to having separate servers for database and app server as opposed to both on the same server (assuming total specs are the same), especially while just testing? Any recommendations for specs? Was thinking of starting with 1 core and 2 gigs of RAM. Finally, any better option than linode?

Is there a guide on testing your project's security?

post it on Sup Forums and fix everything that breaks

>Sup Forums
>capable hackers
I think you mean Sup Forums

This happened some time ago. It's not about actual server security, but it still is about common security measures
>reddit.com/r/webdev/comments/4e2hn8/i_shared_my_web_app_to_Sup Forums_and_forgot_to/

I'm more of a paper books kind of guy than web tutorials guy. What books have you guys found helpful in learning? For any webdev subject.

Why is web development looked down on Sup Forums?

Thanks guys, I'll google the shit out of your posts when I get home.

Because it's far easier to learn and pays just as well as other programming jobs.

>WordPress "devs" make as much as video game programmers.

>go to a meetup
>they're doing hands on session with raspbpi like board
>everyone is told to group up
>dude comes up to me and asks what i do
>tell him i'm a webdev
>dude goes away to find a different partner

>Post resume on Dice, Indeed, and Monster
>Get 6 calls
>marketing, marketing, marketing, marketing, computer repair, wordpress content producer located 5000 miles away

This is depressing.

You can do some hardware stuff with node.

Digitalocean? They've worked well for me, and if you can use an academic email you can get a significant amount of free credit.

I'd say to just try setting up the full stack on one server and see if it works well enough. It's true that Java is an infamous memory hog, though.

>tfw I'm decent at low-level programming and have a keen interest in it
>tfw find it much more satisfying
>tfw can only find work as a freelance node webdev

Javascript the definitive guide
Exploring ES6
Code Complete
Peopleware
An introduction to parallel programming
Computer Networking
GoF
Introduction to Algorithms
Modern Operating Systems
SQL and Relational Theory
Unix and Linux administration handbook
Don't make me think

How do I into AWS? There's like 100 different services, I just want to get Node and Express to Hello World my shit up.

Google "node express aws tutorial"
Entry level google fu

seocopywriting.com/seo-copywriting-certification-training-faqs/

Would this be of use to me if I'm going into Web Design?

In javascript is there any overhead for a class that has prototype functions? For example, say I have a simple Point (x, y) class and a Vector (x, y) class. The point class does nothing except store x, y but Vector has a dozen or so prototype functions to help add/multiply/divide/etc vectors. Would there be a performance hit if I just decided to use the Vector class for all my Points even though they'd never use those prototype functions?

I think I read somewhere that prototype functions are basically a single instance that are re-used for every new instance of a class (hence needing to use the this keyword in them) but I'm not 100% sure.

I wouldn't bother with AWS for dev, use digitalocean or vultr or another basic VPS provider

If you are concerned about performance, why are you using Javascript for core constructs like that? They should be native code.

> They should be native code.
I don't know what that means or how to do that. I only recently started using javascript.

Is there any overhead, though?

>recently started using javascript
don't think about performance until it's an actual issue, tested and measured. limiting yourself from the start is a bad idea.

openshift, free

I know this will lead to some vague responses, but what are some tips for people who are just starting on the path to become a web developer? It seems to be being a freelancer might be incredibly challenging with the technology that's changing, but if you know HTML/CSS/JS it can make finding a job easier.

Can you write a library less than 10 kilobytes without sacrificing structure and maintainability?

I'm working on this currently: github.com/Forestdev/jsRoute

It for whatever reason irks me that the main library (which includes 1 dependency bundled together) is 12 kb. I've seen smaller libraries, but they look like a fucking mess.

rosettacode.org/wiki/Rosetta_Code

Get your new project going lads

>Can you write a library less than 10 kilobytes without sacrificing structure and maintainability?
yep,vanilla-js.com/

I need to step it up.

Why is my uploaded picture in an Android app not uploaded to my images file?

Any php webfagg who has an idea about this error?

>REMOVE QEBAB CONFIRMED

Show the actual code giving the error

Line 12 on createCar.php

what the fuck is up with your file naming?

??

Working on php code base and there is encoding problem.

Apache's default charset is set to utf8, php's internal encoding is utf8 and the webpage has metatag with charset utf8.

When I echo ä it will show ä in the webpage.
When I echo string that came from database that contains ä it will print the ä as question mark.

If I try same from terminal by executing php file it will show ä properly on both cases.

I could just change the pages charset to ISO-8859-1, then the page would show ä properly with strings that came from database but there is other functionality on the page with hardcoded encoding conversion form ISO to utf and back and I'm afraid that something will break.

No idea what to do. Urge to tell boss that I quit is rising.

What encoding is your database and tables? Should be utf8_unicode_ci these days.

It's db2 and now that I'm checking it's telling me that the table encoding is empty. But I assume it defaults to utf8 because the old guy said that they never had this problem before and they claim they have not changed anything in the database settings.

>not utf8mb4_unicode_ci

You're trying to use the contents of the image as a filename.
Your code is also completely open to SQL injections and arbitrary file writes. Just thought I'd let you know.

Thanks for your answer

but i thought
file_put_contents()

was for putting stuff in a file? Well i'm trying to use the content of my file for the creation of my file? What am I doing wrong here.

Yea I know about the vulnerabilities but it's for Android app programming, so no worries

For file_put_contents(), the first argument is the filename and the second is the contents of the file.

Your code, file_put_contents("images/".$image . ".JPG", $decodedImage); tries to write a file to ./images/.jpg instead of an actual path.

You're also using bind_param wrong and feeding your variables directly into the query, without quotes, so if the problem above didn't happen the script would fail anyway later on.

Okay, i'll do some troubleshooting and debugging then.


TYVM for you help.

Where can I find a long list of little front end web dev projects? I'm teaching myself using FCC but I'd like to have mini projects to keep working on my skills.

Gulp vs Grunt?

Coding at McDonalds >>>>> because you're likely the only engineer there most of the time.

WEBDEV CANT SYSDEV

>it seems bumping works now

Were you not just sorting by last_bump_date ??

Web developers can't program!

Webdev's aren't programmers!