[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: 324
Thread images: 25

File: 1466182524466.png (868KB, 822x552px) Image search: [Google]
1466182524466.png
868KB, 822x552px
'Fixing the links that none of the previous fags did' edition

> 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] WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice -
https://www.youtube.com/watch?v=zXqs6X0lzKI
> [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


>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/
https://scaleway.com/
>>
>>55918345
Fuck, I forgot:
>Last thread
>>55872377
>>
Reposting

Is there a better way to do this?

http://codepen.io/anon/pen/JKmbyW
>>
File: smug.gif (1MB, 209x180px) Image search: [Google]
smug.gif
1MB, 209x180px
First for Javascript is the best language ever devised and it is the only language anyone needs to create high-quality software for any platform, and if you don't like it enjoy being a language cuck for the rest of time.
>>
>>55918345
Another note to myself for the next thread:
>https://programming-motherfucker.com/
should be plain HTTP.
>>
>>55918946
Just get your shit together, OP.

Also the guy who did
> [YouTube] WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice

has updated it for 2016/17
https://www.youtube.com/watch?v=sBzRwzY7G-k
>>
Is there a reasonable explanation for the hate for php or is it just a bunch of elitists pushing their memes onto others?
>>
>>55919061
lets say im building a mini youtube just for me. where could i store all my files apart from my local hard drive?
>>
>>55919203
oops didn't mean to reply
>>
>>55919061
PHP is just about the shittiest language known to man because of it's total disregard for standard programming paradigms. That being said: the 'creative' programmer can achieve the weirdest things with PHP due to said crappiness, like constructing objects from string literals.
>>
>>55919275
>because of it's total disregard for standard programming paradigms
is that it? there's no restrictions, it just didn't follow classic syntax or w/e?
>>
PHP doesnt pay a lot, they said.
You will only work on legacy apps,they said.

Average family income is 55k here.
>>
>>55919380
It's a pre-hypertext processor, not a serious language.

This is the standard critique:

eev dot ee/blog/2012/04/09/php-a-fractal-of-bad-design
>>
>>55919380
>>55919519

> I can’t even say what’s wrong with PHP, because— okay. Imagine you have uh, a toolbox. A set of tools. Looks okay, standard stuff in there.

> You pull out a screwdriver, and you see it’s one of those weird tri-headed things. Okay, well, that’s not very useful to you, but you guess it comes in handy sometimes.

> You pull out the hammer, but to your dismay, it has the claw part on both sides. Still serviceable though, I mean, you can hit nails with the middle of the head holding it sideways.

> You pull out the pliers, but they don’t have those serrated surfaces; it’s flat and smooth. That’s less useful, but it still turns bolts well enough, so whatever.

> And on you go. Everything in the box is kind of weird and quirky, but maybe not enough to make it completely worthless. And there’s no clear problem with the set as a whole; it still has all the tools.

> Now imagine you meet millions of carpenters using this toolbox who tell you “well hey what’s the problem with these tools? They’re all I’ve ever used and they work fine!” And the carpenters show you the houses they’ve built, where every room is a pentagon and the roof is upside-down. And you knock on the front door and it just collapses inwards and they all yell at you for breaking their door.

> That’s what’s wrong with PHP.
>>
>>55919061
PHP was created by bad programmer to be simple and basic and it shows. That said there has been a lot of improvements lately that make possible to write actually pretty decent code.
>>
>>55919203
In your webserver. Or CDN. Or some file/video storage site.
>>
>>55919275
You can replace PHP with Javascript and that has a lot of fans here.
>>
>>55919422
Those jobs are pretty cool, unfortunately average PHP job is still Wordpress pajeet.
>>
>>55918345
I'm new to web development and so far have written about 2 sites, but I'm curious about something.

In most of the amateurish sites I've made so far, I've used Python, HTML, and CSS, and some Javascript.

How exactly do all of these different languages coexist and work together like they do? Flask provides a layer of abstraction to this so I don't need to know exactly how it works, but now I want to learn about this.
>>
>>55919680
What do bigger sites like Vimeo and Youtube do?
>>
>>55920193
what the fuck do you think? google has server farms storing all that bullshit with redundancy
>>
Anyone got any good reading material on how to pass data between an HTML page and a PHP program with ajax? I think thats what Im looking for. I've made an IRC client that works in the command line, and I want to make an interface page for it. Or should I be going about this a totally different way? Real new to this stuff.


Also, I tried running the irc.php file in the browser just for shits, and it obviously spat out the stuff from the construct function and the first run of the main loop and didn't update after that. Then I sent the shutdown command (just type "kill" into the channel its connected to in another IRC client) and somehow the page updated by itself without refreshing. Can anyone explain how the hell that works?
>>
>>55920252
well i was thinking there might be companies that let you store on their servers or something. jeez, ya dweeb
>>
>>55920253
haven't you asked this already here? use websockets for this not ajax
>>
File: Silverlight-tan.jpg (1MB, 1920x1080px) Image search: [Google]
Silverlight-tan.jpg
1MB, 1920x1080px
>Did 1.5 years of WPF
>Follow up by 1 year of Xamairn
>Get new job
>Learn AngularJS to use with ASP.NET back-end, hosted on Azure
So far seems fun. Seems easy. It's Angular 1.2, company doesn't feel comfortable enough switching to 2. Angular is cool, right?
>>
>>55920323
Something along the lines of this. I've got a working version of what Im trying to do with websockets, but Im still fucking around with the IRC version just for the fun of it.

Still want to learn how to have a process doing shit in the background while sending and receiving stuff from a webpage, because that seems like it will be useful later.
>>
>>55920436
if by cool you mean deprecated then sure
>>
>>55920464
By what? Pretty much, whatever you're making in Web is obsolete technology after 3 months, so I'm not fussed, just curious.
>>
>>55919275
Because shitters gonna shit.

Also because it was a html templating language that accidentally turned into a programming language by having way too much shit added to it.

But if you like it, use it. Don't listen to the shitters, 90% of the time those people are Python zealots who have fully bought into the """Pythonic""" circlejerk. Just ignore them.
>>
>>55920464
/PDG/ - Pajeets and Deprecated languages General
>>
>>55920481
>3 months
Angular 1 has been around for almost 6 years now
>>
>>55920565
Angular 1.2.1 is Sept 2015, so it's not that bad. As I said, company would prefer using it for this project until everyone got up to speed with TypeScript + ASP.NET Core for Angular 2. Not such a big deal, senpai.
>>
>>55919275
The fact that combining strings is done with a period instead of the logical plus sign, and the weird obsession with arrows, is more then made up for by the fact that splitting a string is done with the EXPLODE function.
>>
>>55920593
You're migrating to .NET Core already? isn't the platform a little too immature right now?
>>
>>55920621
It is. Which is why we're not going to use it (in conjunction with Angular 2) until the next project.
>>
>>55920436
>Angular is cool, right?
I fucking hate single page apps, I think they're janky, gimmicky bloated bullshit, and using Javascript to do things that HTML and CSS can do better is just frontend developers wanking all over themselves and their users.

I'm all for Javascript and the dynamic functionality that it adds, and AJAX loaded content is great. But Javascript has its place in the browser (and the server because node.js is gud)

Also not every backend has to be a RESTful webservice by default. Server-side templating is fine for the vast majority of cases.
>>
>>55920601
Concatenating with the plus sign doesn't make sense, it's just what you're used to. You can't just add strings.

2 + 3 = 5
3 + 2 = 5

"hello" + " world" = "hello world"
" world" + "hello" != "hello world"
>>
File: 1466353222336.jpg (385KB, 692x900px)
1466353222336.jpg
385KB, 692x900px
>>55920662
grandpa detected
>>
File: 1456580457501.jpg (60KB, 614x421px)
1456580457501.jpg
60KB, 614x421px
>>55920710
>doesn't provide an argument to defend his shitty meme gimmick frameworks
>uses 3dpd smug girl instead of superior 2d smug girl
>>
I saw some new Django course on Code school or whatever. Is it worth learning Django? Better or worse than nodejs? Where is the future?
>>
>>55921300
They both do the same shit. If you want to learn something diferent from what NodeJS does go with Haskell or C#/Java/Go.
>>
What kind of music do you guys listen to while coding?
>>
>>55921365
Usually some generic dubstep shit from random youtube playlists. Anything with lyrics/speech fucks with my concentration. When I don't need to concentrate, I usually listen to podcasts.
>>
>>55921300
DESU the only strong reason to use Django is if you just really like Python.
>>
>>55921419
I would think dubstep would be distracting and uncomfortable for long sessions with the constant wub wub wub. I feel like acoustic type music is best, but you get irritated if its too simple of rhythm. Some Deep house would be chill if I could find a playlist without lyrics.
>>
>>55921300
Python is a general-purpose scripting language that runs on your computer, or a server. You can get all kinds of shit written in Python.

Node.js is an interpreter for Javascript which is a language traditionally associated with the browser. If you want to make stuff happen in the browser, you need Javascript. But Node makes it possible to use outside of the browser on your computer (or a server)

Django is a web framework for Python.

There are various frameworks for Node.

Pick a language, learn it, see if you like it. Dedicate time towards it. It really doesn't matter which langauge it is. But personally I prefer Javascript

If you're enthusiastic or knowledgable about the thing you like, someone will probably pay you to do it.

>>55921350
>learn Haskell
This is the shittest advice for anyone who wants to do anything besides fizzbuzz on /g/
>>
>>55921365
https://youtu.be/sPlhKP0nZII?t=24m32s
>>
I'm programming some stuff with javascript and php.
Currently I'm working with files, and for some reason, once php sends a file name to javascript, it adds
%EF%BB%BF%EF%BB%BF
to the file name.
Javascript show me those hidden character with an alert(), but php don't if I echo $file, it just show me the good file name. If I use strcmp(file, "file.txt") it tells me those strings aren't the same.

Any idea why it happens and how can I solve this ?
>>
File: MOTHERFUCK.gif (4MB, 430x404px) Image search: [Google]
MOTHERFUCK.gif
4MB, 430x404px
>>55918345
Hi /g/uys, I really need your advice.

I recently finished my course of web development (vocational school) and found that an internship would be a nice idea to solidify my knowledge and learn new things from professionals.
One month later I find myself not learning anything from them but instead fixing the shit none wants to even touch, for example:
>Making old-ass websites responsive
>Translating and updating dunk newsletters
>Slicing/resizing shit in PS
>Optimizing/changing non-documented JS code (total clusterfuck)
>etc...

But the worst part is, I virtually have not had any training, mentorship or assistance from the start. Sometimes I feel like I'm being exploited.
Even setting up the dev environment wasn't explained to me not to mention the stack, tools and techniques company uses.

Right now I'm seriously considering stopping my internship and just start looking for another one or job at a junior position?

What you guys think, any relevant advices are much appreciated.
>>
>>55921677
They're URLencoded byte order marks

http://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file
>>
>>55920856
Not him but single page apps as mobile apps packaged with cordova are great.

Not everyone has time to learn Java and swift.
>>
>>55921365
Di.fm

This mix was good.
>>
>>55921813
>Not him but single page apps as mobile apps packaged with cordova are great.

Or you could just make your website not be a pile of wank on mobile.

There are few things more annoying than following a deeplink somewhere and getting a webpage telling me to fuck off to the app/play store and download an app so that I can continue using what is basically a website.

If you're not designing mobile-first websites when mobile is now the biggest web browsing platform, then you're a retard.
>>
>>55921725
>One month later I find myself not learning anything from them but instead fixing the shit none wants to even touch

Yeah you're an intern. That's what you're for. And you are learning because you're working on an existing codebase. I'm a node.js developer, you'd think there wouldn't be enough shit written in node yet and I'd be writing new shit, but no I'm maintaining a pre-existing codebase.

>But the worst part is, I virtually have not had any training, mentorship or assistance from the start
What do they do if you ask a question about something?
>>
>>55921725

>Making old-ass websites responsive
>Translating and updating dunk newsletters
>Slicing/resizing shit in PS
>Optimizing/changing non-documented JS code (total clusterfuck)

All of that is part of web development. It's not all fun and games, that's why they pay people to do it. It's a job like anything else.

> I virtually have not had any training, mentorship or assistance from the start.

Have you tried asking? Mentoring someone is actually a lot of work and responsibility and most people aren't going to jump at the chance to add that to their workload. If you ask and seem eager to learn, people will make time for you when they can. Just don't expect them to hold your hand, you aren't a baby.

>Right now I'm seriously considering stopping my internship and just start looking for another one or job at a junior position?

Leaving a job before you have another one lined up is usually a pretty fucking stupid thing to do. Especially if it's a temporary internship. Obviously if you had a job at google or something lined up, that might be a little different.
>>
>>55921883
>Yeah you're an intern. That's what you're for.
I must disagree with you on this one. During my first interview I explicitly said that my goal is to learn new things so I can decide where I want to go (front- back-end or something completely different).
What can I possibly learn by slicing images, or copy-pasting text?

>What do they do if you ask a question about something?
If I get a hold of anyone who is willing to help, he usually:
A) Spits an incomprehensible shit that I have no idea about
B) Takes over the keyboard and quickly types something, while I'm desperately trying to memorize wtf he's doing.
C) Refers me to his colleague which does points A and/or B

Right now, even if they'd offer me a job after the internship, I wouldn't accept it, and I'm saying it as someone whose being unemployed for the past 2 years and broke right now.
>>
>>55922052
Look for the company paypal password. In my experience, its probably in a text file. I've seen that in three out of four companies I've worked for.
>>
>>55921725
>>55922052
desu you sound like a whiny ungrateful child who has never had to do any real work before and expects everyone else to just hand everything to you on a silver platter.
>>
>>55921365
r/a/dio
>>
Feels like this thread is at least tangentially related to my question, so I'll ask here instead of bumping something else off the board with a new thread.

One of my hobbies is ripping live streams of audio/video from regularly occurring events in other countries. I then clean them up, split out the audio, etc, and share them with other people interested in the same events. They're pretty low-key, it's not a super popular thing so I'm not concerned about copyright violation notices or takedown orders.

But my computer isn't on (or available) 24/7 so I'd like a place to store the archived older events that doesn't require leaving a torrent active.

Was hosting them on a dreamhost shared plan, but they got butthurt about the space it was taking up once I hit 100gb, and pulled out the bullshit TOS clause about "muh file sharing blablabla" and nuked the site.

TL;DR who do you folks with similar hobbies prefer to use for hosting direct downloads of media files that doesn't cost a fortune and won't bitch about a bunch of disk space being used?

Was considering the new backblaze cloud stuff for storage with a generic host for the physical page that links to the files, but even that gets expensive when you're talking 50ish GB of outbound traffic per month.

Apologies for the walloftext.txt
>>
>>55921300
Lots of people are saying Node is a trend... I dont have enough evidence to have a personal opinion, but from what I hear Django has been around for a while (like Rails) and by all accounts is here to stay.

Django vs Rails is like Python vs Ruby... all preference. NodeJS is too minimal for my tastes. Get ready to write a lot of boilerplate code for Node... like, a LOT...

>>55918771
>cute
>>
>>55922305
What? You've seen actual companies store their passwords in a text file?
>>
>>55922681
Maybe a seedbox? You can probably find good deals in the Private Tracker general.
>>
>>55922749
Different guy, but the small business I work for literally has an "Accounts.xls" file in the shared office directory that every login related to the company is inside of.

I'm talking EVERY login, from payments to hosting to 3rd party services to all associated email accounts to clients' logins, etc. It's fucking bad. I shudder to think of the fallout that would happen if someone managed to stumble/break into the internal network.

Tried to force people into at least using a shared password manager or something many times, especially with all the high-profile hacks happening constantly, but it all falls on deaf ears.

At least my workstation is secure, there's no fucking way I'd put my real login information in that file.

>>55922773
Not a bad idea, hadn't considered that. Will take a look, thanks.
>>
File: CUhihVtUAAAnuif.jpg (32KB, 311x400px) Image search: [Google]
CUhihVtUAAAnuif.jpg
32KB, 311x400px
just starting out with Django and oh boy am i already getting a sense of future comfort
>>
>>55922865
samesies. I actually dont "love" python, but it is such an "easy" language that I can already feel myself getting more done. Lets hope I am not just imagining things... I DO have a history of LSD use.
>>
>>55922052
Stop bitching.
There are plenty of programmers who never took one college course or had an interneship you whiny bitch. Do you think the only way you can learn is from some other person like a waste of life professor who is a failure in the field they are teaching about?
>>
>>55921809
I did everything said on your link and yet it's still here...
I'm just going to sleep. If someone knows what the fuck is going on... I'll lurk this thread tomorrow.
>>
Show me an animation
I dare you
>>
>>55924508
CSS?
>>
ok, why do I lose my external stylesheets on AJAX load if my pages use UTF8-BOM encoding?

I had to convert all my crap back to ANSI. I'll try UTF8 without BOM, but why would it even do this???
>>
>>55924742
yeah... it works fine with regular UTF-8, but not UTF8-BOM

wtf?
>>
>tfw Elm will never be popular
>>
Filling out a webdev portfolio. What's something neat I can do with socket.io?
>>
How the fuck do I get out of QA
>>
>>55920481
>By what?
Angular 2 and React
>>
>>55925062
I thought QA paid relatively well.
>>
I just finished Learn Python the Hard Way. What do I do now?
>>
>>55926585
Follow the flask tutorial

http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

t. resident Flask shill
>>
>>55924742
BOM adds special characters to file that can fuck some things up so always avoid it. UTF8 itself is good.
>>
>>55926833
Not gonna lie, after skimming through a few of those pages Python looks very appealing. I started gathering the basics to make a web app using PHP, but I guess I'll use Python instead.

I started messing around with it a few months back but got frustrated and dropped it after I couldn't get it to connect to MongoDB on my machine. Fuck Mongo btw.
>>
               <form action="upload_video.php" method="post" enctype="multipart/form-data">
<p>Video:</p>
<input type="file" name="filename" id="filename">
<input type="submit" name="upload" value="Submit">
</form>


<?php
if (isset($_POST["upload"])) {
$filetest = $_POST["filename"];
if (end(explode(".", $filetest)) == "mp4") {
echo "Its an mp4";
}
else {
echo "Nothing, Bob";
}
}
?>


In the php I'm simply trying to see if the uploaded file's extension is mp4 or not. When I deliberately upload a jpg or something not mp4, the else prints just fine, but when I try to upload a file that actually ends in mp4 there is nothing printed so i assume the code in lines 3 and 4 is where the error would be. Anyone have a clue cause I'm lost.

Also I got the html from w3schools and i'm not entirely sure what input type file and input type submit are doing exactly. like which one does the filename get saved on?
>>
>>55927165
Try to use file magic instead, anyone could simply upload any other kind of file renaming it as .mp4
>>
>>55927238
not sure what that is.
>>
>>55927165
Just check some file upload tutorial, your current code is too wrong.
>>
holy shit angular is the worst
>>
>>55927480
>He fell for the Angular meme

You should've known by now that Google are a bunch of retards who can't do anything right.
>>
There is no way I'm learning Angular 2 after working with 1.

Also, React seems ok, even though even at a tutorial level it looked very messy to me. Kinda worried about that t b h.

Also,
>tfw have more exp with JS and Node is popular, but Python is so comfy to me and want to use that instead

And I'll mention that now that I worked with SPAs in my internship, I fucking hate that shit. Don't know if they were just overly bloated and badly coded, but their web apps literally took longer to load a new page than a normal refresh would do. They were made with Angular1 btw. Incredibly slow shit.
>>
Explain to me why I shouldn't rely on node.
>>
>>55927656
I can't.
>>
>>55927438
I only put in part of the code. It seems to be working for other extensions but not video files. It works for jpg.
>>
>>55920083
bump for this
>>
>>55927503
i wont use it for personal projects
im supposed to use it at my job
>>
reminder that if your website doesn't support full unicode you're a shit developer
>>
>>55927026
>Python looks very appealing
indeed. Django and Postgres is comfy as fuck. i hope to give Flask a try someday.
>>
>>55924223
Do your own research now you know what to search for faggot
>>
>>55919726
this
>>
Does anyone here use webpack what do you think of it by comparison to just writing your own tasks via grunt or gulp?
>>
>>55920662
>using Javascript to do things that HTML and CSS can do better
$.ajax({
method: "GET",
url: "output.xml",
dataType: "xml",
success: function(data) {
var lastRegion = "0";
var lastTown = "nowhere";
var lastLocation = "0";
var lastLot = "0";
$( data ).find( "ROW" ).each( function(){
var thisRow = "<tr>";
var thisRegion = $( this ).find( "REGION" ).text();
if (thisRegion != lastRegion){
thisRow += "<td nowrap>Region: " + thisRegion + "</td>";
lastRegion = thisRegion;
} else {
thisRow += "<td nowrap>&nbsp;</td>";
}
var thisTown = $( this ).find( "LOT_TOWN" ).text();
>>
So is PHP still the go-to server backend?

A client has asked me to create a website that is kind of like kickstarter but I'm contemplating trying out another server backend other than PHP.
>>
>>55928710
PHP is great for building Web services.
javascript is great for building the front-end.
Check out Kendo UI
>>
>>55928710
Tell your client to hire a professional and that you're clearly not cut for the job.
>>
>>55928799
Any language is great for building any web service, stop thinking of it that way and more of "server programming", you can set up any language to do http requests, have even used lua and rust for rest apis
>>
>>55928856
What's wrong with asking? Done lots of PHP-based websites and a few Node.js projects. Just want to stay relevant.
>>
>>55928891
Use the best tool for the job. Each language + framework has its strengths and weaknesses, you should consider those and how they impact your ability to be productive when creating a service.
>>
>>55919061
i just use php to sanitize commands and run everything through bash
>>
>>55922707

Node is rich with up to date libraries. Go checkout npm.
>>
>>55929524
yeah, great libraries such as left-pad! npm truly is a great place for great programming practices.
>>
>>55920083
html is for drawing stuff in the browser,
css is to format this drawing, basically put colors to it,
javascript is code that is executed by the browser,
and in this example, python would be the server-side language, so:

python gets the users http requests, decides what to do with them, executes whatever it should do, gets some values, creates an html file and includes in it the gotten values, and then sends back the appropriate html content, which is made nice by the appropriate css content

for example:

python gets a request to "search" for "sth"
so python knows it should "search" for "sth"
python looks for sth
python appends sth to a pre-formatted html file in some way like
"<b>This is your result! : " + sth_rsult + "</b>"
python then sends that html file to the user
the browser gets it and interprets it, sees that it should bold the line, and displays it


also remember to always sanitize user inputs
>>
I had my first web dev class a year and a half ago and I stil haven't made any real project.

Literally the only thing I want to do and see a big potential in is a website where people can collaborate on a music in real time with online daw. I'd at least add a functional piano and somehow build a system where random people can get in a session rooms like on omegle, and also have that piano somehow create either an mp3 file from notes being played or piano roll which can be passed back and forth.

There are some piano libraries and I have no idea what technologies to even use or where to starts but that's my only dream I'd like to build but probably won't because I don't know how.

(Btw, it's not like that one app from proppelerhrad, I just ommited key details).
>>
>>55922681
do like those movie streaming sites, your website should just be a bunch of embedded links, and use public video hosting services to host your shit, that way you may have some of your files go down, but never all of them at the same time (unless the video hosting service goes down, but you could use various different ones for extra precautions)

for extra precautions up every vid with a different account, you surely can make a script to automatize account creation, look for the ones with no captcha or ocr-readable captcha, so from time to time you run the script and save a txt file with X account names and passwords to use whenever you have to up a new vid
>>
>>55929684
javascript to play the music (look for some sound synthesis library), to draw midi (via a sequencer-like system, look for a midi library), and to save to mp3 (client based)

you have an object "Channel" which has two sub-objects, a "Sequencer", and an "Instrument", the instrument holds information for the sound synthesis, the sequencer holds midi information (aka, velocity, note, and position)

If you want more instruments then you just do a "DAW" object to hold various "Channel" objects inside it

you make the clients send a "changes?" to the server every X seconds and get either changes or a "nah"
you pass around the info in json

if you do what you want you will be passing way too much info when you can just send settings for the javascript objects as text, which will be a lot faster and bug free
>>
I don't understand when people say React is a front end framework for building user interfaces. Aren't you already doing that with plain HTML and CSS?
>>
>>55930002
from https://facebook.github.io/react/
>React makes it painless to create interactive UIs

keyword "painless"
>>
>>55918345
Whats the best possible way to make PDF files indexable by search engines?
I've got to make 20 patents (10-40 pages each) "Search Engine Friendly"

whats the best possible way to do this?
>>
>>55919422
WEW LAD

I've been doing PHP for startups for the last 5 years

best i've been paid so far is 60K

where the hell do you live?

>>55919744
Aint that the fuckin truth

Its comfy when you get a chance to actually build it from the ground up
>>
>>55919061
my first actual application was a chatbot that used raw sockets to talk over a proprietary messaging network that we had to reverse engineer so the bots would actually talk back

its a great feeling when you build something so complex

and its fucking portable with zero effort

and that was like php 4.9

had to switch to C++ later because they depreciated Salsa20 support
>>
File: raspilamp.jpg (970KB, 2448x2448px)
raspilamp.jpg
970KB, 2448x2448px
best way to upload pictures, i'm using php/js

or should this be enough
http://www.w3schools.com/php/php_file_upload.asp

thx
>>
>>55931441
Depends heavily on what you want to do and what features you need. But an HTML form is good enough for most cases.
>>
>>55928799
>Kendo UI
>paying for shit you can get for free or build yourself

Fuck off m8.
>>
>>55929541
I've seen so many people shit on npm that I can't tell if this post is sarcastic.
>>
>>55931724
it's a small project really, just have to get it to work. I have a question tho.

I'm using the form from the link
<input type=\"file\" name=\"fileToUpload\" id=\"fileToUpload\">
<input type=\"submit\" value=\"Upload\" name=\"submit\">


where and how can I pass an integer, the id from which table cell the form has been used to the php script ? I need to name then the file id.jpg.
>>
>>55932274
Am I understanding correctly: you need the form to pass an ID by which the PHP script can identify where to write the results?
>>
so I want to use google maps API to make a changing background satellite image for my website, to do this I need to use my API key. It would be bad to include my key in the client side js file, so I'm assuming I have to use it from my server. How does this work? Does the server use the key, receive the data from the map, then forward that on to the client? Does the server use the key, which OKs the client to receive the map data directly from google?
>>
Every time I come here I see code snippets of file upload forms. What's up with that?
>>
>>55932510
>It would be bad to include my key in the client side js file

Not necessarily. If you're worrie about people using your API key then restrict the use of the API to your domain in the Google console.
>>
>>55932397
by the ID the script determines the name of the file: 1.jpg, 2.jpg, 6969.jpg, whatever is being passed
>>
>>55932577
decent workaround, thanks
>>
>>55932585
Use the action attribute of the form element. Pass your ID as a querystring. https://developer.mozilla.org/en/docs/Web/HTML/Element/form
>>
>>55932638
but the form action is already =update.php ?
>>
>>55932712
Then make it update.php?id=123
>>
>>55932274
Hidden input.
>>
>>55921365
trance and classical when people are around

otherwise I listen to touhou
>>
Young webdev here. Looking to my elders for advice on my situation.

>Live in shady offcampus area for college
>Current laptop about to die
>Thinking of buying a new desktop/laptop
>$2000 budget
>1 year from graduation

My fear is that if I buy an expensive desktop that some scumbag could break in and take my monitors or something. If I have a laptop I will be able to have it on me and I will have peace of mind, but I would lose the potential productivity of two monitors.

Thoughts? Suggestions?
>>
>>55933182
come up with a cyberpunk solution sempai! hide it in a run-down looking case and distress it to make it look worthless. hidden in plan sight.
>>
>>55932743
>>55932754
ty both

>>55933182
i can think of a thinkpad, normies would think it's a piece of shit by looking at one
>>
>>55933182
Buy a cheap Lenovo/Asus AMD APU laptop with a 15-17 inch screen. Those are as much bang per buck as you can ever get. Saving money is always a good idea. You can by a proper desktop after you move out.
>>
>>55918345
vuejs or reactjs for a single page application?

and why...
>>
>>55921514
>if I could find a playlist without lyrics.
if your find one, post it here. I've also been looking for one
>>
>>55933182
>two monitors
but a not-so-expensive laptop and a monitor later one when you aren't on a shady place
>>
>>55933322
vuejs
because fuck JewBook
>>
File: 1.jpg (159KB, 600x400px)
1.jpg
159KB, 600x400px
I'm trying to open an image file in a popup, if the image is not there the 404 is shown, if the image is there, it's there + function for count++ is exectued.
I have surrounded them in error: function()... and success: function(). But even if 404 is shown, count is being incremented. This means that every time it's a success ?

sorry if it's a dumb question, but I already have brain fog
>>
>>55933618
post some code u twat
>>
>>55933638
    function openWin(id)
{
$.ajax({
url:'/webdev/project/img/' + id +'.jpg',
type:'HEAD',

error: function()
{
//Date() to request 'different' resource every time, thus without cache
window.open('\img/'+ id + '.jpg?dt='+ Date().toString(),'','width=300,height=200,scrollbars=no,resizable=no, clearcache=yes')

},
success: function()
{
window.open('\img/'+ id +'.jpg?dt='+ Date().toString(),'','width=300,height=200,scrollbars=no,resizable=no,');

$.ajax({
url: "update.php",
data: {"id" : id},
type: "POST",

success: function(data){
console.log("reply: " + data)
location.reload(true);
}

});
}
});
>>
>>55933669
and where do you increment?
>>
>>55933768
url: "update.php",
data: {"id" : id},
type: "POST",

it's in the DB


funny, everything started working AS expected now, no ++ when 404, i just cleaned my code, can't reproduce the behavior
>>
>>55933618
>I'm trying to open an image file in a popup

don't do this.
this is one of the worst user experiences you can create.
>>
>>55933783
probably you did something wrong
>>
>>55933784
fuck UX, it's for the uni,

but I'm open to more elegant solutions.
>>
>>55919061
PHP was created in 1995 at the same time as Ruby and Javascript. PHP started out as Perl scripts and was converted into a programming language. If the people who created PHP (Lerdorf and the 2 isrealis) knew about Javascript or PHP they would have used those languages instead, but PHP got adopted simply because they could not find anything better at the time. In the mid 90s the two most popular scripting languages were Perl and Tcl, both are shit languages for doing web programming. PHP is actually not a bad language, it has only two syntactic mistakes, it uses the $ sign in front of all variables when that is not really necessary and it uses the period sign for string concat which precludes its use for calling methods.
>>
>>55933996
>2 isrealis
now it makes sense, it was (((php))) all along
>>
Is that possible to find freelance work that is isn't completely retarded like "I'll give you $500 to make me a complex website"? How do I approach local web agency to propose my services?
>>
Does anybody have an idea for a project that can help me become better at JavaScript? I can't figure out any project ideas as a help to gain experience with other libraries(angular, nodejs, electron, and others).
>>
>>55934742
Go check out /r/freelance. lots of good freelancing resources there, and a good community.

>>55934838
Where are you at skill-wise? What kinds of things are you interested in?
>>
>>55934838
A "exquisite corpse" website where users gets to write a story one word at a time, with dynamic update using Ajax, sometimes multiples words are possible on one strategic position (start of a sentence for example) so users gets to play a mini game to know who wins the spot.
>>
>>55934838
Have a look at Free Code Camps projects.
>>
If I literally have 0 interests in creating any projects, is web dev (or software dev in general) really for me?

Idk, I realized after a few years I'm not a problem solving type of guy. I don't even see what is there to solve (in technology, especially web), or what would people want to use. And anons here always tell that you should build what you would use and need. I don't need anything. Even the most of things I use are waste of time.

I don't know if anyone here feels the same or I'm an outsider.
>>
>>55934900
I started webdev a few months ago but was always choked up on ideas. I wouldn't say beginner but definitely not proficient. Things that interest me right now are using the various libraries such as electron(JavaScript on desktop)
I already know Java (haven't touched for a year since I can't find any uses for Java.) and Python (I think the only part I don't understand are the wrappers and inheritance. I want to check out Django though)

>>55934904
Sounds like a great project thank you.

>>55934924
Thanks anon this website looks useful

Thanks for the help anons!
>>
>>55935240
>If I literally have 0 interests in creating any projects, is web dev (or software dev in general) really for me?

Web dev an programming in general is pretty much entirely about solving problems. You don't need to create some groundbreaking new app as a portfolio project, but if the idea of doing that doesn't interest you at all, it's probably not for you.
>>
>>55935240

Who red pilled the pajeet?
>>
>>55935292
web dev problems are fucking tirival and you don't need half a brain to solve em

>>55935240
same here, everything relevant seems to have been done already. I don't feel like building another shitty social network or some stupid webapp that has been done so many times already
>>
>>55935609
> web dev problems are fucking tirival and you don't need half a brain to solve em

Although JS and stuff is pretty simple compared to C and shit, there are some tricky fucking problems with web development.
>>
>>55935806
i can see your point considering all the pajeets who come on ehre and explain that jquery is too hard and dynamic typing is too hard not to screw up

but I agree with the other guy its not really problem solving unless the problem is utter incompotence
>>
>>55936039
>jquery is too hard

What the fuck? Has anyone ever said this? LOL jQuery is right down there with CSS in terms of complexity.
>>
>>55936039
>>55936779


Front-end design shit is babby stuff.

But dealing with Node async stuff, along with build tools, deployments, etc. are tricky for anyone.
>>
>>55920253
<?php echo "<table title = 'its a table' id = 'theTable'>"

<script type = 'text/javascript>";
$(document).ready(function(){
$.ajax({
method: "GET",
url: "output.xml",
dataType: "xml",
success: function(data) {
do shit here
>>
I'm struggling, /wdg/,

On one side: I'd love to make wonderful websites, without all of that bullcrap we see today... Beauty and utility, that's what design is all about, I had the opportunity to work on good projects, with companies that actually adds value to society.

On the other hand, I can make MUCH more $$$ with less headache selling shitty single-page Wordpress to moderately big companies just by selling bullshit dreams like "let's rethink your communication strategy from scratch!" and buzzwords like "aggressive SEO", "high conversion rate" and "targeting users". I saw, with my own eyes, these dream sellers making 10k-30k for something I usually sells 2k top.

I get it: very few people in this industry gives a shit about optimizing the loading of their shit, pixel perfect work, the fact that the website is w3c compliant and is isn't a complete piece of garbage when it comes to usability. It's not about what you sell, it's how you sell it, how do you cope with that?

Should I just start selling Wordpress themes?
>>
>>55929626
Thank you very much that is neat.
>>
>>55936897
Just because the tools are simple does not mean the job is simple nor that anyone can design and code a good frontend, though.
>>
>>55937623
Shit man, I've never had a full time job in this industry yet so I don't know how you feel.

Focus on your priorities. Every now and then I meet or read about people who forfeit huge salaries in favor of happiness, you could too. If you're like me with a ton of student loans to worry about then go for the jobs that pay better even if you're not totally happy.

Bonus option: make a shit ton of money for a few years and build a great client base then make your own startup (although most startups fail anyway)
>>
>>55938204
Word up. Gardening looks simple but it doesn't mean I know how to grow a Ficus.
>>
>>55930843
DFW texas.

All the jobs with none of the devs.
>>
>>55918345
Okay so here's the deal: I know how to make websites now with the Flask framework, but all my sites look like basic shit because i only know basic HTML and CSS. How do I make sites using HTML and CSS that don't look like shit?

Or basically,

How do I make sites that look pretty? The back end shit is good to go, but I need to work on the design now.

Any experienced web designers here who can help me?
>>
>>55940368

Check sites like mediaqueri.es or dribbble.com for inspiration. Find elements you like then put them together to make a design that suits you.
>>
Just released my new website, please give me some feedback.
http://yousync.io/
>>
Backend dev learning node.js here.

I want a no-frills library for spitting out basic and functional html from the server, without all the millions of frameworks and whatnot I have been hammered with news about for the last 12 months.

Imagine a SQL/C/bash/Java programmer who knows basic javascript and css concepts and just wants something that will know how to spit out all the correct frontend code for something like:

Left pane, list of items. Click on item, add to right pane.
Right pane, grid of items. Click on item, do this client side javascript.

Or am I better off just making a static template and not caring about browser variation until something breaks ?

Modern websites are stuffed with bloat, I'd like to avoid it, but can I ?
>>
File: Capture.png (19KB, 1057x312px)
Capture.png
19KB, 1057x312px
>>55941523
Slower you slut.
>>
Any C#/ASP.NET developers here?
>>
>>55941766

This is client.js
---------------------------

var explorer;

// item format is { thumbnail, fullimageUrl }
explorer.add = (item){

//
// I know there's a bunch of hip ways to do all this, I want the no fucking around method.
//

var img = new ImgDomThingWhatever;
img.src = item.thumbnail; // Maybe this is UUENCODED to save connections ? Is that dumb ?
img.item = item;

img.onclick = (this){
// From memory, "this" pertains to runtime clicked image, not explorer ?
// Also relying on viewer being in global scope. Is this cancer ?
viewer.add(this.item);
};

explorer.appendChild(img);

};

var server;

server.getItems = (){
var connection = LocalhostPort80ThingWhatever;
return connection.giveme("/items");
}

var viewer; // more or less like explorer, but uses fullimageUrl, which will result in a fetch from the server of the actual image.

function initialize() {
var items = server.getItems();
for (i in items) {
explorer.add(item);
}
}
>>
File: client,js.png (95KB, 1145x802px)
client,js.png
95KB, 1145x802px
>>55942210
Picture of same code, hipster edition
>>
I use Django at work. I can confirm it's super comfy. JS frameworks using typescript is also pretty comfy though
>>
>>55942068
propogation can take up to 48 hours, but it works for me
>>
>>55942279
Django=Framework. Which I don't doubt is comfy. But I picked node so that I can write javascript everywhere.

Typescript=Microsoft. Sorry but not going back to MS technology if I can ever help it again.
>>
any .NET CORE devs here?
>>
>>55918345
lads pls help, I need some recommendations.
>>55942425
>>
>>55942083
Yes
>>
>>55943236
Check out the ones in OP.
>>
>>55943266
I forgot to mention, beside the ones in the OP.
>>
>>55943421

Let us know when you find one.
>>
>>55943717
I round vultr... doesn't look bad.
>>
40/M/Melbourne back again.

I'm programming, drinking, and cooking dinner, sort of all at the same time.
>>
>>55942556
nigga why reply to me though?
>>
bootstrap y/n?
>>
>>55944513

no, companies hate when you use bootstrap
>>
>>55921300

I use django
I really like it
all the boilerplate stuff like sanitizing input from forms, scrubbing for SQL injections is in there
10/10 documentation as well
>>
>>55944578
plus in-built protection for almost everything like XSS and click-jacking
>>
>>55944578
>>55944730
bloated slow as fuck of a framework, yeah its great lmao
>>
>>55944781
>slow
lmfao
>>
File: ts test.png (49KB, 1058x708px)
ts test.png
49KB, 1058x708px
I'm a pleb with TypeScript. How would I use the same namespace across multiple .ts files yet still have the js output declare the namespace object once instead of constantly adding to it?

If I had one .ts file for each class and then use a namespace for those, is it really intended behavior that the output will have constant existence checking like in pic?

Should I be going about this in a different way? Right now what I usually do for sites is just have one global object to prevent collisions and then put everything in that.
>>
>>55944999
fuck ts, use react with es7 instead bro
>>
>>55945197
I can't keep up with all of this shit and I don't want to either, I just want to use TS to make it a bit easier managing large projects
>>
>>55945197
>2016
>cucking yourself by not using TS which can conform to whichever standard you choose
>>
What's the best end/stream/whatever-the-right-phrase-is that allows me to freelance and work from home (preferably)?
>>
>>55945302
if you had to ask then you're probably never going to work from home
>>
>>55945310
Let's pretend I'm not a complete shit that's asking such a retarded question on 4chan; if you were to humor me, what would you say?
>>
Does react code ""compile"" on client or server side?
>>
>>55944513
Bootstrap is a good way to quickly get a site looking "good enough" with minimal effort. There are some good themes for it, but the default one is super generic and you shouldn't use it for commercial sites that people will actually see. It's perfectly fine for a dashboard or something.
>>
>>55945786
Are you talking about compiling JSX to vanilla JS? That happens on build, not at runtime. I.e. you do it before you ftp the code to a server. You can do it with the babel <script> version, but I think that's now depreciated so it may not work as new stuff gets added to react.
>>
>>55945302
>>55945786

Daytrading
Blogging
Dropshipping
Welfare queen
>>
>>55946013
meant to reply to
>>55945302
>>55945424
>>
hello bros, how to start create some awesome at flask framework? (python knowledges is not bad)

thanks
>>
>>55947116
The flask website has a getting started guide that's probably a good place to start.
>>
Djangofags which one should I be using:

def get_foo(id):
bar = Foo.objects.get(pk=id)

# OR #

bar = Foo.objects.filter(pk=id)
bar = bar[0] if bar.exists() else None

return bar


Assuming Foo is an important object. Should I thrown an exception or handle it safely?
>>
File: thumb_COLOURBOX2669702.jpg (20KB, 212x320px) Image search: [Google]
thumb_COLOURBOX2669702.jpg
20KB, 212x320px
Is it possible to do web development with a C/C++ backend system?

I've never heard of it before, but there is no reason why C/C++ web frameworks wouldn't stand up to Java, C#, Ruby or Python
They would probably have absolutely amazing performance as well

Has anybody tried this before?
>>
>>55947694
C++ and C are shit languages for webdev. In webdev you want shit done not spend your whole day trying to process a request.
>>
>>55947712
>what are web frameworks?
not only are you retarded, but you can't read either
>>
>>55947675
The first because you have no docstring, and the name suggests you'll be calling the get, and therefore be mimicing its functionality. You will handle the exception at the appropriate level, ie a point where you explain what will happen if an exception is thrown
>>
>>55947694

It's true that C is fast, but in web programming, you're usually bottlenecked by the network, not CPU so you wouldn't see a massive improvement. Between that and the fact that C can be a pain in the ass sometimes, and is just not popular with web programmers in general means that it isn't very common these days. There are C/C++ frameworks around though.

You could argue that anyone using Django/Flask with CPython is using a C web framework, just not in any way that matters. Also Facebok's HHVM compiles Hack to C++ I believe, if that counts.
>>
>>55931441
Why would you need an SBC with a wifi antenna to turn on a lamp?
>>
>>55948067
>you're usually bottlenecked by the network, not CPU so you wouldn't see a massive improvemen
>handling hundreds of thousands of concurrent requests
>not CPU intensive
hmmm
>>
>>55949024
>handling hundreds of thousands of concurrent requests
>hundreds of thousands

Well somebody's optimistic.
>>
>>55949024
java as fast as c++ and it's way faster to develop desu
>>
>>55949097
>java as fast as c++
lol

t. java developer
>>
>>55949117
c++ isn't so much faster that it would be worth it
>>
>>55949148
http://cppcms.com/wikipp/en/page/benchmarks_all
>>
>>55949225
>6 year old benchmarks
>php is faster than java
>mono/c# is faster than java
wtf am i looking at?
>>
>>55949256
>>6 year old benchmarks
>implying anything has changed

>wtf am i looking at?
facts
>>
>>55949289
well let's have unopinionated and more relevant facts, shall we?

https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=fortune&l=1fgi
>>
>>55949340
fine

you have won the battle, but not the war

*sheathes katana*

*teleports away*
>>
Checked out that Wikipedia link and since I know some Python,
what's the best or most suitable one for a beginner?
>>
>>55949340
>Gemini
>closed source, properietary, completely off-limits framework
What the fuck is this supposed to prove?
>>
File: giphy.gif (494KB, 200x200px) Image search: [Google]
giphy.gif
494KB, 200x200px
>>55919275
>weirdest things
>like constructing objects from string literals
This guy here have never heard of serialization
>>
>>55949556
redpill me on serialisation, anon.
>>
>>55949601
how fucking new are you?
>>
>>55949474
Flask is a super simple microframework. Django is the most popular by far. I suggest you start with the former, then the latter. None of the others are very widely used, but may be worth checking out afterwards.
>>
>>55949474
the only two that are ever used are Django and Flask


Django is a lot more heavier and larger, but you would have the best chance of getting a job. Comparable frameworks from other languages: Rails, Laravel, Sails

Flask is lightweight and generally used in small applications. Comparable frameworks from other languages: Sinatra, Express
>>
File: KrisPime.jpg (53KB, 677x960px)
KrisPime.jpg
53KB, 677x960px
>>55949627
>>55949674
What is the "lightweight" argument?
The code is much shorter?

I rather take a code if it's slightly more complicated, but with the plus that I find a million code examples on StackOverflow
>>
>>55950092
LIGHTWEIGHT MEANS THAT THE FUCKING FRAMEWORK DOESN'T FORCE YOU TO USE THEIR FUCKING BULLSHIT AND THEREFORE YOU ARE FREE TO USE WHAT YOU WANT

DJANGO FORCES YOU TO USE THEIR FUCKING ORM AND SHIT

FLASK YOU DO WHATEVER THE FUCK YOU WANT HOWEVER THE FUCK YOU DESIRE
>>
>>55949474
DJANGO. It's fucking great.
>>
Are there any guides for website design past shit like " run your own hello world page with CSS and a javascript button to redirect you to another static page in only 30 days!".

Most of the links and guides focus on just writing code and don't get into using frameworks or even why/when you'd need to use a framework.

I can write code just fine. I still only have a vague idea on where to start with web design though.
>>
File: KrisPim.jpg (22KB, 300x300px) Image search: [Google]
KrisPim.jpg
22KB, 300x300px
>>55950170
I don't know what ORM is but thx.

I've installed Django for now and will read the tutorial later...
>>
>>55950298
>I don't know what ORM is
only in /wdg/
>>
>>55950092
Larger frameworks (like Django or Rails) tend to have a very specific way of doing things and tend to do a lot of 'magic' behind the scenes. For a larger, more robust application, sometimes that's what you want, but for learning, you generally want to be free to implement what you want however you want.

Flask is 'just' the framework with no bells and whistles. It lets you create routes and return html templates. Everything else, like database integration and authentication, is left up to you to handle however you want, if at all.

>>55950218
>https://www.youtube.com/watch?v=sBzRwzY7G-k
>>
>>55950218
Basically you think of something to make and when you're googling how to do something effectively you will come across a framework that solves your problem easily.

That's how you wander into frameworks.
>>
>>55950323
I'm a phyiscist and just lurking, gimme a break
>>
Best place to learn SASS?

I notice it's on CodeAcademy, but we all know how useful that website is.
>>
>>55950452
it's just CSS with nesting, variables, functions and loops, there's not much to learn.
check out the sass page.
>>
I don't get Docker.

I thought it was a way to make a template so you can insta-deploy it on new servers.

Reading the website it's talking about running it as an app locally. When would I ever need someone to run my website locally with their own local linux server?
>>
I'm building a web app for my application to LaunchCode. I'm using PHP and SQL, but I suck dick at SQL

Can you guys recommend some good SQL video tutorials?

it's 2PM and I'm fucking drunk and ready to learn
>>
>>55950452

SASS is something you can basically learn on the job, it's piss easy.

Most annoying thing is that all the CSS frameworks blend in with each other and you constantly confuse syntax.
>>
>>55951046
>php
>>
>>55951046
If you arent in launchcodes area of service then don't bother.

I'm in mofuggin Dallas and havent been given my interview even though I was accepted 6 months ago.
>>
>>55951046

Basic SQL is a lot simpler than you'd think. For 95% of things, all you need to know is:

SELECT
WHERE
INSERT
DELETE
JOIN/LEFT JOIN

for 2.5% of the remaining:
subqueries and temp tables
>>
>>55951082
i'm just here for the money fampai, and it's what LaunchCode taught me

I know some JavaScript as well but I'm pretty good at PHP

>>55951084

I'm in St. Louis, I actually finished their in-person CS50X course aside from this project. once i finish the project they'll give me my certificate of dankness

They've been blowing up my email constantly about job opportunities, time to get on that train
>>
>>55951104

Thanks senpai I appreciate the reassurance. I'm just buzzed and really want to watch some SQL videos
>>
>>55950647
Docker is complicated but very useful. Think of docker containers as slimmed-down VMs that run a single process (typically) and can be quickly and easily instantiated from a premade image and can easily talk to each other over a virtual network.

>Reading the website it's talking about running it as an app locally.
Locally from the perspective of whatever machine you're running it on. If you're talking about the tutorials or something, why wouldn't you want run it locally on your own computer?

When would I ever need someone to run my website locally with their own local linux server?

If that doesn't sound like something you want to do...don't do it then? Having multiple devs running the same environment is one major use-case for Docker. There are also tons of self-hosted web applications that Docker is great for distributing. OwnCloud is one example.

>>55951046
>>55951127
Codecademy (link in OP) has a pretty good interactive intro to SQL. as
>>55951104
said, it's pretty simple to use most of the time. You can go way into it and become a database wizard, but that's not necessary. In 4 hours you can learn pretty much everything you'll ever need to do with it.
>>
>>55951177

my problem isn't interacting with it from shell, it's making the PHP commands to interact with it to get my web app up and running properly

I'll redo that Codecademy course though, I do remember it being very informative, thanks anon
>>
>>55950218

Don't start off with frameworks, you're learning to run before learning to walk.

If you're learning, don't think of learning to make a website, learn to make features. You always learn better if you set yourself a challenging task. Always set smaller goals that you can acheive, a good teaching example would be to do the following:

Learn how to have a user register/log in (teaches form submission, simple sql inserts/selects, SQL/JS injection best practices, sessions).

Make a simple CMS, pull CMS content into a template based on a page id in the URL.

Change how the URLs work so that instead of www.website.com/articles.php?pageid=34 , it's www.website.com/articles/34/title-of-page (apache conf files)
>>
>>55951237
Oh, in that case you'll want to learn all about PDO.
http://php.net/manual/en/book.pdo.php
>>
>>55951251
I already know the basics.

I just graduated as an electrical engineer, but I got a lot of experience with C, I've played with databases, I've made REST calls, etc.

I can "read" code, but I just can't grasp how you faggots string this stuff together and the most frustrating thing for me is all these fucking frameworks you guys use and then when I google their docs it's fucking 90% meme language that just leaves me more confused and angry like
> BoopJS is a framework which elevates your dynamic modular components by providing straightforward XQTGR manipulation that is extensible and creates an experience that expresses your model detail objects quickly and effectively :)
>>
>>55951110
Lucky. Tell them to come to Dallas.

I passed their tests and havent heard anything since.
>>
Why didn't I listen to you guys before about TypeScript?

God damn it's amazing for medium/large projects
>>
>>55951907
Because it's a meme.
>>
>>55951876

hit them up, honestly. they're very good about replying to emails. If you're interested in moving they will help you do it.

It doesn't have to be forever, either. Come up to STL for a year or two and then find yourself a great job back in Dallas. My understanding is Dallas has a HUGE tech scene. Honestly if I can make this shit work I'd love to move to Dallas. Or Chicago...

LaunchCode also has a TON of openings in Miami if you want to stick to your type of climate and some hot wet bitches
>>
>>55951856
You will come into frameworks naturally when you are trying to solve a problem and you find a framework that solves that problem.

Then you look into the framework and see everything it has to offer.
>>
Any decent video tutorials on MERN stack? The only one I've found is in Russian.
>>
>>55952123
stackfag pls go

You want to learn Node? Go look at some Node tutorials. React? Go check out some react tutorials. Mongo? Kindly self-terminate and/or switch to a real db.

Stacks aren't a thing, stop trying to make them a thing. You can use anything with anything else.
>>
>>55952719
t. I've been learning web development for 2 weeks.
>>
>>55952734
Then you probably aren't ready that stuff. Get a solid understanding of vanilla JS and HTML/CSS.
>>
>>55952803
>He doesn't understand the t. meme
>>
>Stacks aren't a thing

Go tell that to the thousands of jobs posted every month that ask for knowledge working on a certain stack. Of course you can mix and match, retard, but companies often use stacks to centralize workflow so that everyone is on the same page.
>>
>>55952862
Stacks are a meme, friendo. A competent dev can learn a new tech in a couple of weeks at most.

I don't give a shit if someone knows Rails in particular, I want to know that they have a good understanding of REST and HTTP, and can decently program in general. If they have that, they can jump in to an existing Rails project and get their bearings quickly.

On the other hand, some that only "knows" MEME stack won't be flexible at all because they only know how to do things one way.
>>
>>55953285
I never said they weren't a meme, but they are a thing employers look for on top of a solid knowledge in web protocols or how the internet works in general. You said they weren't a thing, but a quick search on any employment site can prove you wrong, now kindly fuck off, OK?
>>
>>55953351
> being this autistic

Who gives a shit what some HR fuck submitted to Indeed, you're missing the point, which is that stacks are nothing but buzzwords with no substance.
>>
File: php.jpg (532KB, 3264x1380px) Image search: [Google]
php.jpg
532KB, 3264x1380px
So I started writing a massive web app as the product for the company that I'm starting. I have about 15,000 lines of php written with Symfony 2 framework. I've got the whole server-side part of my application working.

I have only minimal front end skills. i.e. my application work well but it looks like it's from '01.

I need to up my css and JS skills over the next couple weeks. Anyone have top-tier resources/tutorials?

TY.
>>
>>55954358
should've just written rest endpoints and tied it together with react desu senpai
>>
React.js question:

I'm generating a dynamic list of elements based off of some JSON data pulled from an API.

What's a good way of giving each element a unique key attribute value?
>>
>>55954358
You should definitely hire a designer.

Hey, I'm a designer. Let's chat.
>>
File: recruiters.png (234KB, 845x739px) Image search: [Google]
recruiters.png
234KB, 845x739px
>>55953351
>actually reading job descriptions
What this anon said >>55953810

Job descriptions are written by recruiters, which will only exist as a job for as long as it takes someone to come up with a keyword matching bot that can also make a phone call. These people are just warm bodies and as far as they understand, computers are just magic boxes that make Facebook and Netflix appear.

No living human can meet all the requirements set out in a modern job description, they are fantasy wishlists. The ideal candidate will never apply, they have to pick from amongst those who do apply. That's why you apply for every job you want. See an ad for "Ultra Senior Javascript Developer. MUST have 21 years experience with Javascript. MUST have been in the room with Brendan Eich when he designed the language. MUST have sat on ECMAscript committee at some point. MUST have Angular.js and jQuery experience" - you just fucking apply anyway, because fuck them for writing something so retarded. Make them screen out your resume.

Also just slam every single buzzword, language, framework, library and meme on your resume as you can think of. If you've messed around with it for an afternoon in your bedroom, put it under the "skills" section, with "have experience with meme framework #8701".

Impress the HR drones with buzzwords, get an interview with someone who actually knows what they're talking about. If you can demonstrate knowledge then you might get the job. Just don't bullshit your way into a job you can't do, impostor syndrome is bad enough amongst the betas who populate this industry, you don't want to actually be incompetent and lose your job.
>>
>>55954486

Take a look at this

https://facebook.github.io/react/docs/multiple-components.html#dynamic-children
>>
>>55918726
Use a framework like VueJS
>>
Tricky react.js issue:

I have an app structure as follows:
<Main>
<Data />
<Main>

Main also renders a Header component within it, while also using {this.props.children} to render nested components (in this case, <Data />).

A string can be entered into the search bar of the Header component, and once a related submit button is pressed, a method on the Main component is called. That method pushes to the route that renders <Data />, encoding the string as a route parameter.

<Data /> uses that string as an argument to a function which makes an AJAX request to an API. It then renders the response JSON data on page.

The problem occurs when I enter a new location into the Header component's search bar. When I press submit, it calls that same method on <Main />, which calls the componentWillReceiveProps method on <Data />. However, I've inspected the value of that passed string in each component via console.log. Only <Main /> logs the new string. <Data />'s willReceive method and its associated AJAX function both log the old string value.

This only corrects if I press submit once more with the same value, at which point every component/function will log the same new string value.

Any ideas what's going on here? This is confusing as shit
>>
>http://localhost42069
>>
>>55955907
>Main also renders a Header component within it, while also using {this.props.children} to render nested components (in this case, <Data />).

I.e.:
<Main>
<Header />
{this.props.children}
</Main>
>>
>>55955907
I'm not certain, but it may be occurring because you're passing the new state via Main's router.push as a query parameter, and not explicitly as a prop to the data component
>>
Best job listing sites?
>>
>>55955907
I solved the issue. Didn't realise componentWillReceiveProps takes an argument that gives you the new props
>>
Quick JS question: is ES6 stuff considered safe to use, or is browser support for it still shitty?
>>
>>55956672
look into using a transpiler like babel. write ES6 => shit out common js.
>>
>mfw accidentally doing web dev at big software firm internship

at least its over

can we all take a minute to shit on nodejs
>>
ES7 isnt javascript?

The fuck?
>>
>>55954570
This post should be in the OP.

Very spot on.
>>
>>55957020
? It is
>>
>>55951945
I will do that. STL have areas that arent ghetto shitholes?

Last time I went there the gas stations even had the candy behind bullet proof glass.
>>
Does anyone have that list of projects? Like build a clock, calculator etc.?
>>
>>55954570
>Job descriptions are written by recruiters

Not all of them are, and it's easy to spot those that are written by recruiters.
>>
>>55957355
I say it's written by a recruiter if it demands a CS degree.
>>
>>55957396
Either way, a lot of them are sloppily written. I won't even responding to those listings.
>>
>>55957311
Twitter clone
>>
File: 1466976704668.jpg (5KB, 205x246px) Image search: [Google]
1466976704668.jpg
5KB, 205x246px
>4 jobs in 10 months
what's the webdev way to an hero?
>>
How do I get an API from a site that doesn't have one? I need a client-id so I can get server-side information that is inaccessible without one.
>>
>>55957554
?
>>
>>55957711
Make a twitter clone. It's a suggestion.

>>55957683
Spree shooting
>>
>>55957720

Ah, but I'm looking for a specific list of increasingly difficult tasks

>>55957683
Is the market that bad or are you?
>>
>>55957720
>Make a twitter clone
This is a good project.

Also the world is ready for a new Twitter.
>>
File: 1469630888839.jpg (62KB, 999x749px) Image search: [Google]
1469630888839.jpg
62KB, 999x749px
>>55957683
hang it there anon, everything will be fine
>>
>>55944999
>>55945233
>using typescript

Why not just use eslint and extend `eslint:recommended`? That would solve like 50% of what TS tries to solve. TS also adds this type system bullshit over your head which you have to train new developers to use.
>>
>>55957886
>type system bullshit
>you have to train new developers to use
If it takes longer to than a minute to explain how to use it, they should be fired
>>
>>55954407
about half is rest endpoints. tied together with my less-than-junior JS skills. will look at React. I hear it is good
>>
>someone recommends peopleperhour
>wtb 6 page website for 112 dollars

Are you fucking serious. God damn Indians.
>>
which type of storage (or even which cheap storage services) should I look up for an imageboard?
>>
how am I supposed to connect to this
localhost:3000

doesn't work
>>
>>55958647
aaaand somehow,
this fuckin' worked.
>>
Working on this:

https://github.com/sergiotapia/magnetissimo
>>
>>55947561
maybe something else?
>>
I'm really enjoying React.

>muh components
>>
>>55958674
It's ipv6
>>
>>55959154

i just dont get these frameworks actaully. I just learned how to do an onClick function call with React. Why not just use vanilla javascript to do stuff?
>>
>>55959540
reinventing the wheel, etc.
why use a webserver and not write one yourself?
why use a operating system and not write one yourself?
>>
>>55959555

so these frameworks are all a meme then?
>>
>>55959571
(I never used react, but other frameworks, but I assume react works about the same)

they make it easier to create dynamic components.
So instead of having to manipulate the dom yourself for a list of elements for example, you just add an object to an array and the framework takes care of adding your elements, events, etc.

So write a small list component which you can then reuse by manipulating some parameters.

Imagine asp.net webform controls but client side.
>>
>>55959571
A framework is not necessary. It is "just" one of the tools that is available to help you develop better and faster.

Better, because a framework provides you with the certainty that you are developing an application that is in full compliance with business rules, that is structured, and is both maintainable and upgradeable.

Faster, because it allows developers to save time by re-using generic modules in order to focus on other areas. Without, however, ever being tied to the framework itself.
>>
>>55959540
>>55959555
>>55959571
>>55959626
>>55959729

I fucking hate frameworks, but good frameworks really do make life better. They can protect you from:

* cross platform insanity
* dumbassery from the pajeet sitting next to you
* having to actually understand the underlying platform - which CHANGES CONSTANTLY.

That said, eventually the platform will start to incorporate a built-in social networking site, and then you're fucked, and need to go learn something else.
>>
>>55959880
That said, if you are learning, forget frameworks, and learn the underlying platform.

Then you will truly appreciate the merits of each one, which are all different.
Thread posts: 324
Thread images: 25


[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.