[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 322
Thread images: 18

File: pepe.jpg (11KB, 258x195px) Image search: [Google]
pepe.jpg
11KB, 258x195px
> Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

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

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

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/
>How to get started
> [YouTube] 2016/2017 MUST-KNOW WEB DEVELOPMENT TECH - Watch this if you want to be a web developer
https://www.youtube.com/watch?v=sBzRwzY7G-k [Embed]
> [YouTube] Javascript is Easy - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.
https://www.youtube.com/watch?v=zf_cb_Nw5zY [Embed]

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
https://www.openshift.com
>>
First for Go.
>>
I work fulltime as a web developer but I'm itching to code as soon as I get home, only problem is I don't have any ideas at all on what to built. Since our methods is so shit in regards to every stage of the development and deployment process I don't really learn anything exciting or useful at work.

Is there a list anywhere with essential tools for a web developer, like https://www.youtube.com/watch?v=sBzRwzY7G-k?

I'm interested in learning things like grunt, docker, and other modern tools. I don't know what people use though.
>>
>>56176794
> Shit-tier pepe image
> No link to last thread
> [Embed] [Embed]
>>
>>56177097
You're probably better off in the web dev general thread. People browsing here are usually elite cunts when they see web buzzwords
>>
I don't know what to do.

There's a chance that a place where I'm doing my obligatory internship for uni will want to keep me. It's a frontend position. I'm nothing special with it because I don't care, but they need someone who can design good. The projects are boring as fuck, basically CRUDs with a bunch of meme frameworks. Everything looks and functions similar.

This is my first internship so I don't have any experience outside of it, but I don't like it very much. I didn't learn anything on a job. I feel there is no way to improve here, especially since I'm the only one doing frontend, nobody knows any design either.

Basically, it made me miserable already, because it's pretty much a code monkey job, you just solve your tickets without thinking.

If I accept the position, it will mean I accepted that I failed at life and should've pursued a better degree. (Keep in mind my degree only has webdev from the CS world, other classes are different, so no, I couldn't transition to something else easily, even if I wanted). I don't even like anything programming and web related, the only exception is web design, but even though I'm good at it and enjoy doing it, I don't see myself as a professional, the salaries are not that good either afaik.
>>
>>56177097
grunt is good for automation, docker is good for deployment and environment standardization. I honestly use grunt more than Docker for personal projects to help with linting or testing automation. Personally, I use node + express for all my development. I like JavaScript a lot.

You have an infinite amount of possibilities you can work on. If you're a web dev and want to build small games, check out Phaser. It's a fairly simple html5 game dev framework. If you wanna dig deepers, get a udemy course on Unity. I have a virtual reality app I'm practicing with in c#.

Find something that you like to do outside of programming, and challenge yourself to build an application to supplement that. If you like jogging, try to build a mobile app (Cordova + Phonegap and Angular) that tracks your runs. If you like video games, find an API and do cool data visualization (d3). Employers cream their pants if you have a sexy data visualization project you can show off. I always think it's easier to work on something if it can relate to other areas of your life, and gives you a little more motivation than a product you would never use.
>>
drop me a line if anyone's interested in making a blog theme with some YouTube/twitch integration a la vinesauce

[email protected]

pretty flexible ish with budget
>>
>>56177347
First find out if you like to do front end work. I hated it at first, but then dove a littler deeper into better practices with my frameworks and liked it the more I learned about it. Doing cool tricks is cool. If you're using something like Bootstrap there's a ton of neat stuff you can do.

Second find out what you like to do. Do you like to set up servers and stick to back end work? Do you prefer to build games? See my post >>56177445 for finding some motivation. Once you start having fun, pick a small project and complete it. Have stuff that an employer would be impressed to see.

Lastly, If you're not happy with where you are, then think about what you would look like to an employer who you apply for. Noted above, but work on personal projects if you don't have a ton of resume experience. If you want to keep to web dev, the job market right now is looking for node developers, angular devs, react devs, and ruby on rails devs. Find a position you would be happy with, and be the candidate they want. Don't get fucked over again with sweat labor.

Don't get so down about your current position. You are not your job. Find something to get passionate about. There's always something for someone to code.
>>
>>56177294
>You're probably better off in the web dev general thread.

Where do you think you are, anon?
>>
>>56177097
If you're business oriented and love the idea of running the show, then make a website with the idea of making money.

It's a fantastic hobby and very rewarding. Even if it fails it will still be a learning experience.

Now if your nose is short, then consider learning game dev. Either toy around with GameMaker or jump into Unreal with C++.

If you just want to learn a new web language and you don't know Angular, then learn Angular.
>>
Are any of you guys self-taught? What route did you take to become employable specifically?

I've taken some free online courses but they don't seem to go deeper than the surface so I've been using the free programming books in the OP. Just want to know what you guys did to eventually become competent enough to get a job or freelance.
>>
>>56177975
>Are any of you guys self-taught?
Entirely.
>What route did you take to become employable specifically?
I'm not.

Some people here got jobs by just uploading their completed course projects to github.
>>
>>56177975

What languages are you planning to work with? I took the self-taught route and I'm currently employed and I did A LOT of research so I can give you many recommendations if you tell me what you're wondering about. Ask away.
>>
Where does /wdg/ get public domain social media icons for their websites?
>>
File: laravel-vs-symfony.jpg (575KB, 2048x1365px) Image search: [Google]
laravel-vs-symfony.jpg
575KB, 2048x1365px
Why are there so many symfony jobs but no good tutorials, videos and books? In my country 80% of web jobs are wordpress and symfony jobs.
Should I really learn symfony or still learning Laravel? And why?
>>
>>56178199
Laravel is a meme. If you want a job, learn whatever is in demand. For personal projects use something more solid than Laravel or PHP.
>>
>>56178260
>Laravel is a meme.
So why are there so many tutorials, books, contributors, github stars, ...
>More solid than PHP.
What is currently more solid than PHP except oldish C or ASM?
>>
>>56178424
>So why are there so many tutorials, books, contributors, github stars, ...
Because it's a meme.
>What is currently more solid than PHP except oldish C or ASM?
Go and Node.js
>>
>>56178424
>What is currently more solid than PHP except oldish C or ASM?
are you joking? anything is.
>>
>Not using OTP
https://www.youtube.com/watch?v=rRbY3TMUcgQ
>>
>>56178424
Anon, in /g/ the language is more important than the programmer and experience.
>>
>>56178074
I'm still learning HTML, CSS & Javascipt but based on the video in the OP, I'll most likely move on to React for front end and node.js from backend.

How long was the time period between starting to teach yourself and your first job? What languages to you use at your current job?

>>56178019
What resources did you use to teach yourself?

Same question to >>56178074
>>
>>56178465
Golang seems to be fast but what the hell is that syntax, how people could create solid projects with it? There is also a big problem about it, the google paternity. Google is known to kill/mess its opensource projects!

Current node.js is slower than current php and a lot of people said that working with node.js is completely irrelevant for today projects.
>>
I'm working on polishing the style of the commissions section of my website in preparation for a launch.

How does this look?
>>
What do you guys use as an alternative to cmd if you're working with windows? Preferbly something that has linux commands. I used gits bash but it's a bit buggy sometimes so I uninstalled it.
>>
>>56178667
Cmder
>>
>>56178667
Powershell is the only viable solution.
>>
>>56178569
Syntax is simplified on purpose to improve readability, which is crucial in large projects with many developers. It's a language initially developed by Google employees, but is living its own life for many years now.

>Current node.js is slower than current php
Source? Hard to believe.

>>56178667
Are you on windows 10? If yes, install their Linux subsystem. If not, dualboot or keep a VM.
>>
>>56178721
Benchmarks proved it multiple times, node is slower than php7+ for almost anything and you can find modest web hosting for less than $4/year! So it's fantastic for personal projects! I saw somewhere that clusters of more than 100 machines with node could be a little bit faster but who cares? I think it's more relevant to use C/C++/Golang it this special case.
>>
>>56178920
Fair point.
>>
>>56178521


Alright, I'm >>56178074 and I'll give you a "path" to follow, involving the bare minimum you need to know to land a job.

You don't need to spend that much time with HTML & CSS unless you're going to be a web designer, but you should understand still understand it very well. The exact source you choose to learn this from doesn't really matter since these are very easy languages and aren't really programming in the real sense of the word. They are markup languages. There's not going to be much logic to learn and understand here.

If you're going the node.js route, you obviously need a good understanding of Javascript and the majority of your time should be spent learning the language. This includes the functional side & the OOP side. I'd recommend getting pretty good at JS before even starting with node. I think http://www.freecodecamp.com/ would be perfect for you. It has a clear path to follow and you'll practice making real things. The site is 100% JS (with HTML & CSS of course). I don't recommend fully completing it though. Just the "Front End Cerftication" part which is pretty huge in itself.

When you're done with that you can move onto node.js and web development. I'd recommend you learn to create a website WITHOUT any frameworks to begin with, so you get a good understanding of how requests and responses work and what a framework actually does for you. You have to experience the bad way to appreciate the good way. I know treehouse has a course that teaches you this exact thing, but it costs money and I don't think there's a way around that. Here's an alternative: http://www.nodebeginner.org/ it costs $9 but you can get it for free if you just google " The Node Beginner Book" + pdf.
>>
>>56179095

Now that you understand the old, and bad way of doing things, you'll fully appreciate moving to a web dev framework. We'll choose Express because it's a bare minimum framework so it's very easy to learn and understand. All the concepts will be transferable knowledge when you move to more advanced frameworks later on. I already knew about frameworks before starting Express so I didn't need a tutorial per se, but you probably will, and a comprehensive one at that. So get a book with good reviews and plow through that bad boy. Just google node express book and do some research.

When you're done with the book, you need to create something that you can put on your resumé. A semi big project that includes as many technologies as possible to show off your skills. HTML&CSS, JS, Express, SQL and/or NOSQL, REST, making calls to other APIs, Redis are also good to include and learn about. You should also practice git and apache/nginx while building this project. It's very important to understand.
>>
>>56178692
Does everything work with Cmder? I know just using the Python interpreter was pretty buggy in Git Bash, and it also had a lot of issues with packages for different languages in general.

>>56178701
Tried so hard to like it but I couldn't.

>>56178721
Oh yeah I completely forgot about that. I'll check it out.
>>
File: Maki_Sushi_on_green_leaf_plate.jpg (3MB, 3456x2592px) Image search: [Google]
Maki_Sushi_on_green_leaf_plate.jpg
3MB, 3456x2592px
I'm not very familiar with web dev, and have a question.

I've been working with a company that's expected to get a lot more hits, and they want a new web host that can handle the increased volume. What are some good options out there?

Anyways, I hear /g/ likes maki, so have one in exchange.
>>
>>56179302
Go with AWS
>>
Is it a good idea to use erlang for back-end development? Anyone have any experience?
I'd just like to do it as a hobby btw.
>>
Someone link me to how I can setup a dev environment using Docker for web dev.

I'm exposing the fucking ports and publishing then when I run a container but for some fucking reason I still can't access the site on my host OS.

When I'm inside the container I used local tunnel to making the port publicly accessing over the internet and that worked so I don't know why it's not working.
>>
>>56177506
Theme for what platform?
>>
>>56178920
Why would you use PHP for web dev? Who the fuck wants to make a new request for every page of a website when you can just request the data you need into a SAP.
>>
>>56178199
Laravel is based on Symfony.
>>
>>56179845
SAPs need backend.
>>
>>56178667
busybox.exe , it's a ~200 kb executable file that supports the most basic bash commands
>>
>>56179095
>>56179112
Thanks for taking to time to write all of this. A lot of useful information. I appreciate it.
>>
>>56179892
Just use JS for both so you can share common libraries and models? PHP has two different functions to get the length of an array, clearly a shit tier language made by invalids.
>>
>>56179782
Do you expose your container web port to port 80 in host? Should be something like docker run -p 80:80. Also maybe hosts firewall blocks?
>>
>>56179942
[] == ![]
>>
>>56179942
So PHP has alias for some functions for historical reasons, so what? New versions have really improved OOP and other things making PHP better language with each update while Javascript is still struggling to not suck.
>>
>>56179651
hipsters are starting to use it (Elixir), so yeah, it's a good idea, I suppose
>>
>>56178569
>Golang seems to be fast but what the hell is that syntax, how people could create solid projects with it?
it was made by some of the same that created C... you can imagine that they know their shit.
go to tour.golang.org , learn it (it won't take more than a few hours, if that), use it, love it.
>>
>>56179986
Yes I'm doing that when I curl port 8080 in the container I get a response. Outside I get jack. I'm on a Mac.

If you could just link me to a good source or example maybe I spot what I'm missing.
>>
>>56180197
I didn't know about elixir, thanks for mentioning it dog.
>>
>>56180078
JavaScript is the most portable thing going. Almost every device you own comes shops with a JS VM by default.
>>
>>56180298
Not better than HTML.

PHP 1 - JS 0
>>
If i use a homeserver for a public domain i assume i will have a lot of problems with the traffic.

What do I need to do to prevent this?
What are the big companies doing?
Is there, like, a special router to handle all the servers?
>>
>>56180462
>What do I need to do to prevent this?
Not host it on a home server.
>What are the big companies doing?
Hosting on VPS services like AWS and Digital Ocean.
>Is there, like, a special router to handle all the servers?
People use load balancers and multiple web servers. All requests go via the load balancer which in turn picks which server should handle the request.
>>
>>56180510
Guess I'll go with a VPS then. Thanks anon!

How much traffic can a raspberry pi home server connected to 1Gbps (it actually never gets to 1Gbps, but around 300mbps) handle?
>>
i need advice /g/, i need to make a java web project for a college assignment (it needs to be made in java) but i don't know which technology or framework to use, i'm quite good with core java and i've made web projects using angular+express, can someone point me in the right direction?
>>
>>56180552
It depends what your serving and to how many peers.

Web server hosting a personal website you'd probably be fine, as long as the Pi or your internet connection doesn't crap out.

Media server serving content to friends and family? Probably fine.

Business/enterprise/client website your better off using a VPS.
>>
>>56180565
GWT looks cool.
http://www.gwtproject.org/overview.html
>>
>>56180565
spring boot, GWT, Play framework.
>>
>>56180625
Thanks again!
>>
>>56180298
With wild differences that make any hope about portability wet dream. And there are better alternatives on every platform except browser.
>>
Best analytics service?
>>
>>56180552
cuckberry pi can't into Gbps, it caps at 100 mbps
>>
>>56177506
Can i help anon ?
>>
Hey guys. Codekit baby here trying to adjust to developing on Windows. I have gulp running and understand how it works, but I was wondering what your guys' recommended "starter" setup would be?

I'm only doing wordpress this week, so I don't need any js linting / unit testing. Just basic sass and minification, I'm pretty sure. Anything else I should be using?
>>
>>56179845

Because it's quick to get something out the door, it's tried and tested, it isn't a meme, and if you actually use the language properly it isn't really all that much of a mess either.
>>
>>56180816
Google
>>
What the easiest framework to create solid websites with multiple user roles/rights and automatic payment for subscription without spending days on it?
>>
Is it worth working a job which offers almost no challenges or knowledge? I don't want to spend my time learning and improving webdev skills in my spare time. I have other interests. But I realized that this position is practically braindead and just takes a huge amount of time for nothing in return. I feel like a factory worker, doing same shit all the time and wasting my life. It feels like a dead end.
>>
Am i retarded? Why cant i find a single working vagrant box with ubuntu 16.04 with php7 LAMP stack with a synced www folder. Tried a billion old boxes and trying to upgrade them but shit never ever works.
>>
Did anybody have to write a CV in their thesis? I have no idea what to put there, it's not, like, a job application... What, should I list my education in that same institution and then list my skills, put past work experiences and all the other shit as well? I don't get it why are they asking for it.
>>
Anyone have any portfolio inspos?
>>
>>56183786
Primary objective of job is getting paid. But there is no reason why you should not try get better job. So basically keep working your current job but also look for better one. Just don't quit until you have confirmed new job.
>>
>>56184191
Wat. Are you looking for inspiration to design a portfolio or are you looking for ideas for apps to build to put into your portfolio?
>>
When will webasm be standard?
>>
>>56178521
>What resources did you use to teach yourself?
Books.

I find it easier to learn if I sit away from the computer with a book and only go to the computer to work on an exercise.

It's fun to sit outside in the early morning learning a new language to a cup of coffee.
>>
>>56185241
It's still at least a couple years away from being anywhere close to complete. Then you have to convince the powers-that-be to agree and accept it as a standard. Then you have to wait for web dev community to actually start learning C and make stuff with it. Then we all go through the same awkward phase we're all in now with ES6 where it's technically the current standard, but support is still patchy enough that you have to use babel to ensure compatibility. Considering it's
${CURRENT_YEAR}
and something like 4% of people are still using IE, I expect that last part to take a while.

I would estimate at least a decade before it really catches on, if it even does catch on at all.
>>
>>56185586
People will start to develop tools and more language transpilers as soon as there is an specification available, and I hope that will encourage adoption. HTML5 wasn't finished but everybody starting using asap.
>>
Is it possible to host the same site from two different computers on the same network?

I want to have a setup where I can leave my desktop and pick up from my laptop without too much hassle.
>>
>>56186537
uhm, just host it in one machine and log into it from the other one, or use git... or something? learn a bit about networking and use the tools you already have?
>>
>>56186757
log into what?
>>
>>56186537
Don't host from home. It's really stupid
>>
>>56186537
Learn to use the command line, and stuff like scp and ssh.
>>
>>56187010
I'm not hosting to the internet officially yet. Just practicing and localhosting to test.
>>
>>56186948
ssh or whatever remote thing you need to use
desu, your post is confusing. you clearly need some knowledge of networking.
>>
>>56183301
Wordpress.

>automatic payment for subscription
Can you elaborate more on what you're thinking of implementing here?
>>
how/where do I get free bootstrap themes?
>>
>>56177097
I've actually just managed to get a Web2py server working in a Docker images to launch and run correctly using SSL on an Azure machine.

It took a bit but I'm happy with the results. Its really flexible and easily updated.
>>
thoughts on php7?

looks really neat so far
>>
>>56187327
good improvement, but it's still PHP
>>
>>56187386
Good job at being indoctrinated by /g/ memes.
>>
>>56188529
youre the memer, this whole thread is nothing but PHP shilling
>>
>>56188559
Are you new? wdg in particular talks mad shit on php.
>>
>>56187327
Learn a real language
>>
>>56177648
very thoughtful reply. listen to this.
>>
>>56188625
By mad shit you mean the PHP shilling just started a few weeks ago? Thats pretty funny that someone has picked the absolute worst scripting language to meme
>>
>>56188529
>... [PHP] doesn't follow established patterns laid by more complete languages which many don't want to sort through vs any technical difficulties.
>[The] Web 2.0 movement really took off roughly 5 years ago, CS graduates found web apps could work with languages and principles they know and now we're in a place where smart educated people can use familiar, tried and tested methods to build applications on the web, after having to deal with legacy PHP for the ten years before that.
>>
Look at all the PHP memes the PHP memers are shilling, PHP is faster than Go lol, Laravel is a meme, you want to code SQL by hand, wow, the retarded shilling doesnt get better than this

>>56178260
>Laravel is a meme. If you want a job, learn whatever is in demand. For personal projects use something more solid than Laravel or PHP.
>>56178569
>Current node.js is slower than current php and a lot of people said that working with node.js is completely irrelevant for today projects.
>>56178920
>Benchmarks proved it multiple times, node is slower than php7+ for almost anything

>>56179845
>Why would you use PHP for web dev? Who the fuck wants to make a new request for every page of a website when you can just request the data you need into a SAP
>>56181459
>Because it's quick to get something out the door, it's tried and tested, it isn't a meme, and if you actually use the language properly it isn't really all that much of a mess either.
>>
>>56188783
I'm sick of this personality on 4chan overall. Getting too old for this site.
>>
>>56188783
>Look at all the PHP memes the PHP memers are shilling

That's because people are refusing to believe that in 2016 PHP is actually catching up to modern web dev standards.

Continuing to parrot outdated opinions without evidence is literally what an old meme is.

PHP may have been a piece of shit and to some extent it still is, but PHP is hugely fucking popular, and there is tons of money being dumped into improving it. And now the benefits of that spending are coming into fruition.
>>
Wow, look at the PHP memer go!!!
>>56188826
>That's because people are refusing to believe that in 2016 PHP is actually catching up to modern web dev standards.
its catching up with modern standards?? wow, sign me up, thats such a good reason to use PHP

>Continuing to parrot outdated opinions without evidence is literally what an old meme is.
outdated opinions?
hand coding SQL queries is outdated, unless you use a framework like Laravel...whoops, but you cant use Laravel can you, because thats a meme

>PHP may have been a piece of shit and to some extent it still is, but PHP is hugely fucking popular
Its hugely popular?? you mean to PHP shills like you

and there is tons of money being dumped into improving it. And now the benefits of that spending are coming into fruition.
like, what?
>>
Yesterday (18 hours ago) I bought a domain on Eco Web Hosting and it's still not online and only accessible through the temporary address.

How long does it usually take to sort out the DNS stuff? Is it host-specific or is it like that everywhere? It didn't say I needed to do it manually in the instruction emails.
>>
>>56188913
up to 24 hours, usually less.
what do you mean temporary address though? so you can reach it already?
did you configure it properly and set up your A records?
>>
>>56188921

The temporary address is like this: 1.1.1.1/mydomain.com and it shows the default index page.

I didn't set anything up.
>>
>>56188913
Are you using your ISP's DNS? If you are and if your ISP is shit, try temporarily switching to google's DNS and then test it
>>
>>56188953
https://toolbox.googleapps.com/apps/dig/
enter your domain name here and use 8.8.8.8 as nameserver
>>
>>56188955

I'm quite new to this. Is setting up the DNS settings done in the hosting control panel?

>>56188990

Didn't return any addresses.

The email said "your address is mydomain.com or until it goes live 1.1.1.1/mydomain.com", so I'm guessing I need to wait a bit more?
>>
Spring Boot or Laravel for complex websites?
Could you provide pro/con?
>>
>>56187239
Internet.
>>
>>56188737
>absolute worst scripting language
What is javascript
>>
Anyone here used Illustrator's generate CSS feature? Is it worth getting excited over?
>>
>>56188876
>hand coding SQL queries is outdated, unless you use a framework like Laravel...whoops, but you cant use Laravel can you, because thats a meme
That's all bullshit. Best part of PHP is working with frameworks and all decent frameworks come with some sort of query builder and ORM. Laravel may be a bit meme but it's still good framework and there are tons of alternatives.
>Its hugely popular?? you mean to PHP shills like you
It's more popular than any of the other stuff /wdg/ likes to shill. Many of which are memes.
>and there is tons of money being dumped into improving it. And now the benefits of that spending are coming into fruition.
>like, what?
Decent OOP with support for strong typing.
>>
>>56179845
> SAP
> Node.JS

Cause Node.JS is a clusterfuck made by the 90's tard who think they are hype as fuck doing everything in JS.
Seriously this autism must stop, they went too far with HyperTerm (a terminal made with HTML/CSS/JS, wtf ??!!!!).
We reached the point of no return.
Decent people know that it is a pain in the ass to write beautiful and organized code with JS, whereas you can easily make professional and good looking code with PHP frameworks like Laravel or even better, Symfony, which is by far the most well-engineered of the current frameworks.

But keep doing your JS over-engineered BS, that's why we create Docker for you :) So you can put all this mess in a BIG container full of shit.
>>
>>56184165
Use buzzwords, like 'agile', 'design patterns', 'OOP', 'deployment' ...
And you'll quickly get a job :D
>>
>>56187327
Extremely fast desu.
+ easier to use design patterns (god tier programming)
>>
.web is really ugly. Everytime I put it behind a domain name it looks like shit.

.net and .one are so much better.
>>
>>56180078
>>
>>56189420
I used to create menu's with Adobe Fireworks. And it always resulted in unmaintainable shit. So I'd have to see it first. I'm not excited.
>>
What are some good books for learning linux command line and for web dev in general?

These two books seem really popular:
* The Linux Command Line: A Complete Introduction
* Unix and Linux System Administration Handbook

Are there more excellent books out there?
>>
>>56189561
Being serious?
>>
>>56188783
>mfw I try to pick up the last version of Laravel
>huge dependecy bloat
Is this the fate of all promising frameworks ?
>>
>>56190521
typical retarded php shitter detected, laravel never was a slim sinatra-like framework

try lumen, slim or a better fucking language
>>
<?php
$white = "black";
$red = 'white';
$green = "$red";
$blue = $green;
$yellow = $$blue;
echo('$yellow '." $yellow");
?>


What will be the output? Or will that throw an error?
You should know this.
>>
>>56190959
Output should be '$yellow black'
>>
>>56190959
>parentheses after echo as if it was a function
>disgusting
>>
>>56190450
Not him but I highly recommend it.
>>
var penis = {

color: caucasian
size: 10''
hornyTime: true,
fuck: function(){
document.write("Insert Penis In Vagina")}
};

if (penis.hornyTime == true) {
penis.fuck();
}

else {
document.write("no sex");
}

//Functions inside objects are called Methods
//Variables inside objects are called Properties
>>
>>56191076
var penis = {

color: "caucasian",
size: 10,
hornyTime: true,
fuck: function(){
document.write("Insert Penis In Vagina")}
};

if (penis.hornyTime == true) {
penis.fuck();
}

else {
document.write("no sex");
}

//Functions inside objects are called Methods
//Variables inside objects are called Properties

// how I can put this in code blocks on /g/ sir
>>
>>56191076
>>56191091




>>
>>56191337
4chan a shit


[ code ]

[ /code ]

>>
File: 1232113420227.jpg (31KB, 512x381px) Image search: [Google]
1232113420227.jpg
31KB, 512x381px
>>56190959
yellow white?
>>
>>56191354

document.write("thank u sir");

>>
What are the go to language and/or frameworks for web nowadays to serve huge websites?

so far I've tried aspnetcore (c#) and some node variants. was wondering if there was anything else worthwhile.
>>
>>56185901
This. C/C++ already compiles to WASM. There is an experimental Rust compiler too. All 3 major browsers already have experimental WASM support behind flags.

>>56189487
>Best part of PHP is working with frameworks
That invalidates the "PHP is fast" claim, because PHP frameworks are still terribly slow. Only raw PHP is fast. Laravel specifically is ~50 times slower than raw PHP. Be sure to check the multiple different benchmarks. https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=fortune&l=27wbun

>>56191719
If by huge you actually mean huge - Go and C++.
>>
>>56190521
Laravel is a fullstack framework with bunch of things like:
- oauth2 server
- http/2 push server
- sms/mail/slack/... notification system
- auto-payment/subscriptions system
- frontend wrapper for angular, react, vuejs and so on
- fantastic orm with full-text search system
- forms builder
- video streaming
- ...
>>
>>56191764
And you can host it on $4/year hosting!
>>
>>56191764
>>56191790
And it's even slower than Bash :^)
>>
>>56191764
- global cache helper
- event broadcasting system
- comfy migration system
- officially supported vagrant/docker development machine
- attractive and not expensive conferences
- screencasts website to learn it in depth
- ...
>>
>>56191858
Bash is dead, use powershell. :D
>>
>>56191895
Powershell is so good Microsoft ported Bash to Windows :^)
>>
>>56191764
- auto backup/upload/streaming with bunch of services like s3
- 5s to create login/auth bs3/bs4/... views
- 5s to create login/auth api with jwt and/or sessions
- ...
>>
>>56191912
As an option...
>>
>>56191912
Some people still using linux based distro to build their multi-os apps.
And most of them are so dumb they need bash even on windows!
You know some gamers (yes!) created wine to play their games on linux.
>>
Doing java web and servlets related stuff.
Where should i save user's uploaded files?
I need my jsp to be able to see those files( i.e. photos) to show them to other users.
Is an absolute path a must?
>>
>>56178141
Unrelated but i got a transparent png format icon, i just googled social media icon transparent and i sized the width and height to 35x35 and put the link inside the image.
>>
>>56192026
You will have a very hard time building cross-platform programs on Windows, unless it's in Java.
>>
>>56191912
And then Microsoft ported Powershell to Linux and OS X https://github.com/PowerShell/PowerShell
>>
>>56192056
A subdirectory of your project folder. Point your web server to the absolute path. That will make development easier too.
>>56192271
And nobody will use it.
>>
File: dyeWMGXypbs.jpg (80KB, 540x810px) Image search: [Google]
dyeWMGXypbs.jpg
80KB, 540x810px
any RxJS people here? is that shit worth learning or not?
>>
how long does it take to learn Javascript ideally sir. I am now 2 days in and learning functions, variables and objects
>>
>>56192954
> raakesh
Hi Pajeet.
If you don't Poo in the loo every 2 hours, it will take you approx 2 months. 1 if you are clever :D

Btw just joking, if have nothing against Indian People, you are literally the best at math and computer science
>>
>>56193099
that is ok sir. I will do my best
>>
>>56192230
use an svg with bg hack instead of a png (works way better for high dpi screens)
>>
>>56188625
Yeah, but that's only because we have a nu male problem here.
>>
Self-taught anons, what do you put on your resume under education? Are Coursera, Udemy, etc. acceptable? Or do companies only want to see "real" education? Should I just say 'self-taught' or something?
>>
node or go for backend?
>>
Let me get this straight. An API is basically just a system that returns data as JSON objects?
>>
Is there a CSS media query boilerplate template i can use? I dont know shit about screen sizes or pixel ratios or whatever so it would be much easier for me to have a template that i style in.
>>
>>56194057
Depends on the project. Do you need a chat room or websockets or high concurrency?
>>
>>56194067
Either use something like Bootstrap or Foundation, or learn how to use media queries properly (shouldn't take you more than an hour or two if you aren't a dumbass).
>>
>>56194062
An API is interface for communicating with another system. In context of webdev you can simplify that to system where you can send in and get out data as JSON.
>>
>>56194057
Depends. If you just need a simple database frontend that does not do much processing, Node is fine. Otherwise - Go.
>>56194062
Not necessarily JSON, but basically yes.
>>
>>56192283
>A subdirectory of your project folder. Point your web server to the absolute path. That will make development easier too

Yeah i thought that aswell, here's the catch: it must be a relative path because the teacher said so.
It's fucking retarded.
>>
>>56195923
A subdirectory is a relative path.
>>
How can I accomplish an SQL query that sorts forum threads by the latest replies?
>>
>>56196317
http://www.tutorialspoint.com/sql/sql-order-by.htm
>>
>>56196366
that doesn't solve my problem at all, anon.
>>
File: Screenshot_20160821_143311.png (44KB, 1917x159px) Image search: [Google]
Screenshot_20160821_143311.png
44KB, 1917x159px
I dont know if I'm asking in the right thread, but here it goes. If anyone has experience using stylish that could helo me, that would be great.

Basically, I want to move the menu bar (top left) beside the download button (bottom right). The downloads button is on the bookmarks toolbar.
>>
>>56196366
You're a developer, figure it out. Find the latest posts and the threads they belong to.
i.e. figure out hoe to single out the threads that have been most recently updated and order them accordingly.
>>
>>56196510
I've been trying, but it doesn't work.
I can order the posts by time, but I don't know how to relate the threads they belong to to the actual op post.
>>
>>56196551
Are you using Sql Joins to link multiple tables together? Because it seems like you'll need it in this case.
>>
>>56196609
That's what I tried, actually.
It seemed pretty logical in my head, but it still didn't work. I guess I'm doing something wrong initially.
>>
>>56194057
node uses callbacks for concurrency which is fine for realtime page updates, but if you want to maintain connections with websockets then languages like Go, Elixir, Clojure all use message passing concurrency to maintain state
>>
Can you make a site look as good, as a site that uses bootstrap or any other framework, using pure html and css? I'm convinced that it's either impossible or time consuming.
>>
>>56197337
It's possible but not worth it unless you are learning or professional who has unusual requirements.
>>
>>56197337
>>56197870
Stop being fucking pajeets. Not only is it possible, it's easier to make a site look better without those bloated frameworks, because you have complete control. To make it look non-Bootstrap you would have to practically rewrite a whole CSS so there is no point doing it. And it won't take much time if you know what you are doing and have a finished design you just have turn to code. Only people who have bad frontend and design skills use frameworks.
>>
I've got a hopefully not too dumb question.

I'm looking to save disk space - is it really dumb to keep related files in a gzipped tarball? If a user wants a file in the tarball, I should be able to track to that file and decompress on the fly in a request, right?

Does anyone has experience in the read times for this?
>>
>>56198572
What type of file? IS it like a pdf hosted on that site that may occasionally be downloaded, is it an image, or is it a script?
>>
>>56198744
it's a group of image files (of a comic book).

looking into it a little more, looks like zip is a bit more up to speed for this as you don't have to decompress the entire file to get one entry (compared to gzipped tar).
>>
>>56198036
>>It's not time consuming
LOL its possible but takes far too long, it's easier to test out design concepts using a framework.
>>
>>56198780
Why not just provide the files to the user as a .zip?
>>
>>56198780
You can't achieve good compression ratios with image files, so scrap it. If it's a bunch of pngs, use optipng, it reduces the image size losslessly. You use it like this:
optipng -o16 filename.png
, where you can use other numbers, not just 16, but 16 usually produces optimal results.
If it's a bunch of jpegs, use jpegrescan: https://github.com/kud/jpegrescan , it reduces the size of jpgs without any loss of quality.
>>
>>56198888
quads checked.

It's a comic book reader app so they'll need to view the images one-by-one or download the entire book.

>>56198889
Hmm, good point. Sounds like there isn't much to be saved by looking into compressing the files.
>>
>>56198889
>>56198952
Here's the script I use to optimize all images in a folder, utilizing all cores of my cpu. You need to install parallel and opting for it to work, and place the jpegrescan script in a directory like /usr/local/bin/, where bash can access it. Alternatively, you can change "jpegrescan" to it's full path. You will most likely save more space this way than by using hardcore compression, but not that much more. However, doing this has no performance penalty, unlike zipping them.
#!/bin/bash
find . -name "*.[jJ][pP][gG]" -type f -printf "%p\n" | parallel --no-notice jpegrescan '{}' '{}'
find . -name "*.[pP][nN][gG]" -type f -printf "%p\n" | parallel --no-notice optipng -o16 '{}'
>>
This might be a dumb question, but I don't know the right answer for it.

I'm working with express, and I'm not sure on the best practices for authorization. At the moment, I'm using both redirects if they aren't logged in, as well as other times sending http status codes. It works fine, but is there more I should add?
>>
>>56199240
Make an authentication middleware that checks the request for authentication data (from a jwt, cookie, etc. Whatever you're using) and invoke it on every route that requires authentication.

If the authentication fails, it should throw an "AuthError". Then, in your error-handling code, check if it's an "AuthError" and redirect to a login page with a 'Not Authorized' code (or however you want to handle it).
>>
>>56199240
Just use Passport dingus
>>
>>56198036
This answer is wrong. Obviously it's way easier to re theme a bootstrap site than to write an entire responsive grid system yourself. That's why everyone uses bootstrap. If all you need is the responsive grid system, you can build a custom bootstrap package and just include the part you need. But no, there's no reason to roll your own CSS framework, unless you really want to waste some time
>>
>>56198572
Why not keep files in some other place and only save links?
>>
How can I style my website so it isn't just plain text?
>>
>>56200311
CSS
>>
>>56183786
You should be working to get paid in the first place.
>>
Is it ok to place key attributes directly on your React elements?

E.g.
<div>
<FooBar key={some_id_value} />
</div>
>>
>>56200211
>some other place
You mean like s3? I want people to be able to deploy this anywhere without actually spending money. It's a project I'm planning to open source.
>>
What OS do you guys use for web development?
>>
File: 1334383839232.jpg (30KB, 400x300px) Image search: [Google]
1334383839232.jpg
30KB, 400x300px
>>56190322

>learning linux command line

Why this meme real?

All you need can be learned from some online tutorial in 20 minutes. The more sophisticated command combinations you can just copy paste from SO.
>>
>>56201901
any unix environment is good.
>>
>>56201901
Windows 7.

Can't fully commit to Linux because for some reason my Windows partition breaks when I install Linux (no matter what distro) alongside it. Might be a compatibility issue with this old ass laptop.

Can't run it on a USB because the port operate at speeds less than USB 1.0. Took me 2 hours to transfer a 5gb folder to a flash drive when it shouldn't have taken more than 10 mins.

Can't run it in a virtual box because slow as fuck.

Basically I stay with Win for the the two games I can actually run on this shitbox. No wonder I can't finish my projects.
>>
>>56201950
I've been using linux for half a year and still don't understand the whole chmod thing.

I think I just chmod 700 every folder I need access to.
>>
So I'm working on something I can use for Artists such as myself to fuck around with. Don't know if i'll finish it, so let me just post it here so I can pretend I have a legion of people waiting for it's release.Would also like feedback desu

Idea for website (Imageboard + Chatroom + Polling Site)

Here’s how it will go:

- 7 different boards (called ROMs for no reason; artROM, newsROM, moneyROM, adviceROM, gameROM, cartoonROM, comicROM)
- 5 threads (called BLOCKs) are the maximum amount allowed
-Users are allowed to vote on what (out of the 3 maximum proposals given to vote on) to make into a BLOCK.
-The first to reach 15 votes, have the maximum amount of votes in a 1 minute period, or the first to be proposed (if their were no votes at all) get made into a BLOCK, and can be commented inside of with pictures and other things, as an imageboard woulde entail
-Names and profiles are allowed, but not forced; anonymity is defaulted
-After a 10 minute period, the BLOCK can be voted upon for deletion.
-If the vote to delete the BLOCK reaches 20 votes, have the maximum amount of votes in a 1 minute period, or isn’t being replied to for 5+ minutes, it gets deleted for another BLOCK to be made
>>
Anyone here using Aurelia? Would love to hear opinions.
>>
File: shaq.gif (930KB, 320x240px) Image search: [Google]
shaq.gif
930KB, 320x240px
>>56202195
>chmod 700 every folder I need access to
>>
>>56200432
When looping, React encourages it. Otherwise, I dunno.
>>
>>56202593
Is there a video tutorial that teaches what

I'm kind of lazy
>>
>>56202195
man chmod

if you know C,
man 2 chmod
>>
>>56202997
>"Pls spoon feed me, I'm a lazy shill"
>>
>>56203584
gj not knowing what a shill is, nigger.
>>
>>56203629
I am white.
>>
>>56203660
>implying being a nigger has anything to do with being black
>>
>>56203704
Please stop quoting me. Let's stay on topic.
>>
Laravel is the perfect framework for today websites! People that said it's slow or that go/node is a better choice have never built any websites in their life. In industry you have to create multiple complex websites a week (yes with unique design, multi-language, all the seo stuffs and so on). It's completely irrelevant to use current node/express/meteor or go! Now you are free to create a node/go laravel clone!
>>
>>56204009
>[Deleted]
>>
>>56178199
>but no good tutorials
because the guys at SensioLabs are selling training courses for symfony and php. Probably more lucrative than writing books or tutorials. This bothered me already with version 1.4
>>
>>56204017
Just like oracle/jee or microsoft/asp!
>>
>>56204009
>today websites!
>In industry
Your broken English means you must be a Indian. Of course you have to make multiple websites when you get paid 5$ a day lmao.
>>
>>56204033
you can still find more books and tutorials for those than for symfony.
>>
>>56204058
A 3h English formation like any Indians. ;)
>>
>>56204075
Is that a good tutorial to begin with ASP.NET Core?
http://ebookee.org/ASP-NET-Core-ASP-NET-5-MVC-6-C-Angular2-EF-Crash-Course-2016_2859534.html
>>
Can Azure compete with low cost php hosting?
>>
>>56178593
get rid of the black background for the titles. It distracts from the contents.
why is the last line in the characters paragraph indented?
>>
>>56178199
There is a boat load of symfony documentation on their own website! I am a web dev and constantly use their site to for reference when building big corporate things
>>
>>56204212
What's your opinion on Laravel?
>>
>>56204180
I removed that indentation already after I realized it was stupid.

I'll see how it looks without the background.
>>
>>56193945

I just don't have a section for education. No one has ever asked me either.
>>
Hi, i am afraid i haven't understood what an embedded database actually does.
Let's say i use an embedded jdbc database and build my web application, is the database now in the .war?
Is there a way to have some kind of standalone app this way?
>>
>>56204009
Laravel is shit, we're not gonna use it again in future projects

t. Laravel user for 3 months
>>
>>56178199
>>56204258

Laravel is actually the best PHP framework out there.

Some years ago PHP was almost dead, but then Laravel came and made thigs right.

Also Laravel is always in demand.
>>
>>56206271
Also the slowest one.
>>
>>56202154
>my Windows partition breaks when I install Linux (no matter what distro) alongside it
What do you mean? Does it not boot when you select it in grub, or is it not even there? Are you sure you didn't accidentally delete the 350 or so MiB system reserved partition?
>>
>>56202216
Sounds annoying to use
>reading "block"
>suddenly a popup "hurr do you want to delete??"
>repeat every ten minutes
>>
>>56200097
BS, responsive grid is trivial.

>>56198883
>if you know what you are doing
>>
>>56204143
Azure can't even compete with other cloud service providers.
>>
>>56204764
What sections do you have then, if you don't mind?
>>
>>56206184
Why? What problems did you get with laravel?
What do you use now and why?
>>
>>56206580
why would you even use php if speed was important?
>>
What's the best way to test browser JS? Do I just add a separate script tag with a file containing the tests?
Which testing library is best?
>>
My portfolio is finished but has no work on it. What do I make to showcase my web dev/design talent? Should I do pro bono work?
>>
>>56207829
Update: This looks like an interesting way to get ideas for portfolio pieces.
http://briefbox.me/
>>
File: blazing_laravel.jpg (56KB, 446x790px) Image search: [Google]
blazing_laravel.jpg
56KB, 446x790px
Please share your Laravel tutorials/books/videos!

>Create a simple blog
https://youtube.com/playlist?list=PLwAKR305CRO-Q90J---jXVzbOd4CDRbVx

>Build a shopping cart
https://youtube.com/playlist?list=PL55RiY5tL51qUXDyBqx0mKVOhLNFwwxvH

>Laravel with Docker and PhpStorm
https://youtube.com/watch?v=YazmkZszq5c

>TDD with Laravel and PHPUnit
https://youtube.com/playlist?list=PLrIm-p2rpV0EWSkkE6Llxaw7sxnsxdVWB
>>
File: blog-bg6.jpg (74KB, 2560x1600px) Image search: [Google]
blog-bg6.jpg
74KB, 2560x1600px
What are wrong with symfony?
It was so popular, there even were formations/courses in my country.
Is node/express killed php frameworks?
>>
>>56208215
Laravel came. It's based on Symfony anyway.
>>
>>56207763

>What's the best way to test browser JS? Do I just add a separate script tag with a file containing the tests?

(Assuming you're talking about unit testing and not, like, A/B testing or something. That's a whole other ballgame.)

Typically in your testing scripts you would do something like start a headless testing browser like phantomJS and then run tests on that, but it depends on a lot of things. Read the docs for whatever your preferred testing suite is and take a look at some tutorials.

Which testing library is best?
As with everything, there's no such thing as a "best" thing. It depends more on your preferences and what specific needs you have.
Some popular ones:
- Mocha/Chai
- Jasmine
- Jest
>>
Hey pals I have to create an index.html to embed an animation for school but how do I do that?
How to make it spceically an index.html, all i have so far is opened a new HTML 5 page
>>
>>56208957
>How to make it spceically an index.html

It's not a special thing, you literally just save an html file as "index.html". The web server just looks for a file named 'index.html' if you don't specify a different file you want.
>>
>>56209220
alright cool thanks hombre
>>
give me small project ideas to learn node.js
>>
im trying to make my first, i guess, real application in rails and right now im wanting to have a map that displays the location of all online users but idk how to do that.

i can currently get the google maps api to show my current location but i dont know how to store that info or anything like that.

can someone point me to some more tutorials or somethign? im going through the documentation right now but im still pretty lost.
>>
>>56209412
Create a simple screencasts website with teachers (earn money) that can propose courses and students (subscription) that can subscribe monthly to your all catalog.
>>
>>56209764
hmm going to think about it
>>
Where do you get the url of the site youve just uploaded to your server? Like at what point in the process did you determine that name based on something that was used to name or save the site in the process of creating it in dreamweaver?
Ive got most of it but theres one name that goes on the end after the last / of the url
>>
>>56210284
I think its just the name of the folder you made on the server side
>>
>>56189528
Every single garbage programmer I know shys away from JS. Having worked with Java, ColdFusion and PHP, I can honestly say my entire life as a web dev became twice as enjoyable after switching to node/react. By all means stick with PHP, I don't mind cutting away half the competition because they're too dumb and/or stubborn to understand and use JS.
>>
>>56211172
>Every single garbage programmer I know shys away from JS.
>Having worked with Java, ColdFusion and PHP
ok...
>>
>>56211375
Consider heroku.
>>
>>56211172
How old are you? Just curious.
>>
>>56211642
18 and half
>>
>>56211682
Welp... I'm sorry if you had to maintain 10y'o old projects in your first year of web development.
>>
>>56178692
Thirded
>>
So... I'm trying to make a React app and basically what Ineed to do is "append" a component to another each time a button is clicked. This is exactly what Im trying to do

https://egghead.io/lessons/javascript-redux-describing-state-changes-with-actions

Minute 1:00

So far I can make a component return another when a button is clicked but when I click again is not going to append a new component, is just going to return the same one. Any ideas?
>>
are there any books I could read to get started with web development in addition to the learning material on the OP? I didn't see much on the wiki other than books for programming languages
>>
>>56211766
That guy isn't me. I'm 24.
>>
>>56212478
I once started reading "Learning PHP, MySQL, JavaScript & CSS", it has an updated version titled "Learning PHP, MySQL, JavaScript, CSS & HTML5, 3rd Edition", I guess you should check it out if you want to use php for the backend.
>>
>>56212404
Are you changing the component state too, or just appending items to an array?
>>
>>56212680
This one right? I will check it out, thanks anon
>>
Linux permissions.

Is Apache root or what? I want people to see webpages in directories but not see directory contents.
I want a mysql user to be able to delete contents....im confused. What is apache?
>>
>>56212736
>This one right?
Yeah that one, but I must mention that I didn't finish it's predecessor, because I stopped caring about web development (I was like sixteen at the time), so I'm not sure it's the best option for you, I just think it's good for a beginner because understanding each topic would be pretty hard in itself without having some idea about the big picture.
>>
>>56212799
Apache runs on its own user. Usually www-data.
Apache is a web server.
>>
I don't get permissions.

So I can gksudo nautilus to put stuff into /www/html, great

If I want to edit files while I'm there then I have to do all this shit
http://fideloper.com/user-group-permissions-chmod-apache

Last time I did that it broke my ubuntu install to where I got errors every time I started the computer.

How can I just put my 'netbook' user to where I can have free reign over the /www/html folder?

I just did this
sudo chgrp root /var/www
sudo chmod 775 /var/www


I probably broke everything again.
>>
>>56212799

>Is Apache root or what?


Apache is a webserver. It's a program that listens for http requests and responds to them.

>I want people to see webpages in directories but not see directory contents.

It doesn't work like that. Everything in your web root directory is potentially accessible to users. It's literally the entire point of running a web server. If you don't want users to see stuff, store it above your web root and access it via PHP or whatever. (And don't have any security holes that let users get outside the web root directory.)

>I want a mysql user to be able to delete contents

...What? Delete the contents of the database? When you set up an sql database, it has a root user that can do anything inside the database. Using that, you create a user for whatever web application you're making (usually with the same name as the app) and give it whatever permissions you want.
>>
>>56213281
>775
770 on directories and 660 on files. Change owner and group to www-data.
>>
I work as a web dev all day but I still have an itch in my fingers to do something useful when I get home.

Any tips or sites with example projects you can do? Maybe something that can generate money too.
>>
What are some of the best linux hardening commands/settings/scripts you should do for a web server?
>>
>>56213371
So with
 ls -l 
it shows /www/html/ group as root.

I just put myself into www-data and it's allowing me to edit everything and my image upload script is working.

Any idea why www-data can do things in a directory owned by root or is apache www-data capable of running as root?
>>
>>56213423
1) Disable SSH password login. Keys only.
2) Don't be a retard and botch up permissions.
Done.
>>
>>56213519
It's hard to tell what exactly you changed without knowing.

Apache starts as root, grabs the :80 port and then forks itself down to the www-data user. Mind these are the defaults.
>>
>>56213409
health app
>>
>>56213409
Apps are fun.

I also like to run little community website and make tools for twitch streamers.

It all gives me a chance to play around with new technologies and of course make a little passive income.
>>
>>56212404
You basically need to have a 'parent' component which has a list of buttons (to use your example) in its state. You then need to output that list in your render method (use Array.map); appending more buttons is trivial at this point because you basically just have to push them into your state.

Depending on how much you've used react this will make sense to you (I'm guessing you are fairly familiar with it since you are looking at redux tutorials). If it doesn't make sense to you, then find another tutorial - redux will only complicate things further for a complete beginner.
>>
>>56176794
Learned Scala in my Programming Languages Concept class and wanted to use it over the summer

Why is Play so shitty compared to Django, Rails, etc. Is there a better framework in the pipeline for Scala.
>>
File: 1471722608059.png (40KB, 388x388px) Image search: [Google]
1471722608059.png
40KB, 388x388px
Rate my normie stack, /wdg/:
>DigitalOcean LEMP
>Wordpress
>JointsWP (Foundation 6 barebones theme)
//
>OSX
>Atom
>Codekit
>Sass
>Transmit
//
>Virtualbox
>Vagrant
>Scotchbox

Any next steps I can take?
>>
>>56213769
>scala
why?
>>
>>56213782
you can try killing yourself as the next step
>>
>>56213782
Objective C? Swift?
>>
>>56213769
I did some research for you. No need to thank me.
https://github.com/lauris/awesome-scala#web-frameworks
>>
>>56213825
Can I commit suicide with Laravel?
>>
>>56213785
Actually gets the combination of functional programming and objective programming right. Other languages like Python and recently Java tack it on and its just shitty
>>
>>56213917
why are you so obsessed with PHP?
How about you try something that isn't based on old CGI
>>
>>56213930
if you want functional programming then you might want to check out Elixir/Phoenix, that's what the hipsters are raving about right now
>>
>>56213953
Help me out. Go?
>>
>>56213997
Go is nice and it keeps getting better
>>
I need to implement social network authorization in JQuery for a mobile app.

It's another guy's project so I can't change the back end. There's a service that accepts the social network name and redirects to the social network login page, which then redirects to another service that validates the tokens received from the login page, makes database changes and returns a JSON array with the social network profile data.

How do I get the array and return to the initial page?
>>
Javascript question:

What's the best way to check that someone hasn't filled a form field input with whitespace?
>>
>>56214147

if (val.trim().length===0)
>>
Should I apply and then sue them for not hiring me because I'm male?

Qualification: B.Tech / M.Tech / MBA / BCA / B.Sc / B.Com / BBA / BBM / Others

We are looking for a Female candidate with 0-5 Years of Experience with following requirements:
>>
>>56214257
Jesus christ.

0 years experience female, guys.

The salary will be 12K to 20K per month depending on if the candidate is fresher or experienced. This is an immediate requirement.
>>
>>56214030
Is there a sane way to install go packages as there are not version for them?
>>
>>56214257
There's probably some agency you can report them to, not that it'll do anything.
>>
>>56214257
Wheres the application?
>>
>>56214346
Nah, I'll just get a sex change and make 20k a month by
Managing 25+ interns, correcting grammar on webpages, knowledge of HTML is a plus (lmao), work from home 20% of the time.

The CEO has to be looking for a wife or something.

>>56214389
Go manage some web dev interns and suck CEO dick for 280k a year.
http://www.sanfoundry.com/jobs/
>>
>>56214257
>>56214279

apply but hope you don't get that job, because that is a dick sucking job
>>
>>56214194
Cool beans, thanks
>>
>>56214420
I just realized the 20k a month is in sand beaner dollar. That's like 280USD a month.
>>
File: edRuph2.png (4KB, 706x269px) Image search: [Google]
edRuph2.png
4KB, 706x269px
https://jsfiddle.net/n6z69oaj/

Is it possible to keep the entire row from moving when you hover an object in this example? Just push the elements below/above, and leave the ones left/right alone.

Question 2: Is it possible to make the div expand both up and down, instead of just in one direction?
>>
Do you have to be in school to intern?

No idea how that works.

I am signed up for a school, but have to work because of bills. I'm a full-stack of full-stacks and can't land a job. No prior work experience and no degree.

Can I intern for job experience or do you have to be a student or something?
>>
>>56212683
>>56213740
I'm fairly new to React. This is an example of what I got:

http://codepen.io/anon/pen/akAyOd?editors=0010

The code looks terrible, I know. I made some progress and now when you fill an input and hit the add button your input will be shown, I just used an array and pushed a new component. But there are some problems
First is that I needed to declare a global variable which in my little understanding oppose the whole purpose of React, I tried every combination of code but it always appear an error saying that the variable hasn't been declare when is not in the global scope.
Second is that I had to repeat the JSX code when the handleSubmit function is called.

I'm sure there's a better way to do this...
>>
>>56214587
do you have a portfolio?
>>
>>56214597
Barely.

I only make projects that I intend to launch. Sometimes I abandon them before they are complete. So my portfolio consists of two websites that I've launched.
>>
>>56214594
this is all wrong, recipes should be in the initial state, you need to take a functional approach as its done in React.

read the documentation, it's all in there
>>
>>56214587
>>56214674
No idea about how to go about being an intern (would be interested in finding out though) but I've heard a lot that completed projects look better than incomplete projects, even if they're smaller-scale, for what that's worth.
>>
I've been accepted to a course in ASP.NET, is it worth learning or a waste of my time?
>>
>>56214594
I can barely read react when it isn't done using ES6 classes, but I can at least tell that your solution is waaaay off base (sorry bud). I made an example of a parent component rendering incrementable buttons (much like the redux tutorial you linked).

http://codepen.io/noobG/pen/Lkojjy?editors=1010

Again, the key is to have your child components be a part of your parent component's state. I don't know if you can read react using classes, but if you can, please take a look and try to understand the codepen I provided. If it makes no sense, you probably need to find some better tutorials to get a better grasp on the basics.
>>
Anyone know why this isn't working? It seems extremely simple.

I'm trimming each entry in an array with str.trim(). However, when I check the array after the forEach finishes, the array's entries are unchanged.

var testArr = ['   foo', '  bar   ', ' boo   '];
testArr.forEach(function (word) {
word = word.trim();
}
console.log(testArr);
// testArr will be the same as when it was first initialised


When I log the word at various points within the array it does change. However, it doesn't seem to be saved.
E.g.
testArr.forEach(function (word) {
console.log(word); // will log with whitespace
console.log(word.trim()); // will log without whitespace
word = word.trim();
console.log(word); // will log without whitespace
}


So it looks like it is working internally, just that the results of that action aren't saved.

Any ideas?
>>
>>56214762
>>56214985
Thanks a lot! at least know I have some kind of orientation on what to do next.
>>
>>56215047
word is a parameter passed by value.
Try to find out how to edit an array, using an index inside forEach
>>
>>56215068
Cool, thanks for the advice
>>
>>56215047
var words = ['trim ', 'kek ', ' php is for wordpress faggots '];

words.forEach((word, index) => {
words[index] = word.trim();
});

----

var words = ['trim ', 'kek ', ' php is for wordpress faggots '];

words = words.map((word) => {
return word.trim();
});

I would use map any day of the week. Try to familiarize yourself with the array functions in JS, they truly make life easy once you get a grasp on how to use them.
>>
>>56214906
MVC is nice, C# is great language and core is finally opensource and multiplatform.
>>
>>56215318
Yeah, I just realised a map would be much nicer. I've never really stumbled upon this before because I used to just use for loops like an imperative dorkusmalorkus
>>
Made a collaborative mosaic webapp

http://alissa.ninja/paint/
>>
File: 1466518982181.jpg (11KB, 325x325px) Image search: [Google]
1466518982181.jpg
11KB, 325x325px
>>56215950
>real name
>picture
>cat
>programming sice I was 12
>babby tier website with no checking so you can upload whatever the fuck you want
Classic wdg
Thread posts: 322
Thread images: 18


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.