/wdg/ - Web Development General

Have you read your Eloquent JavaScript, user?

Previous Thread:
>Free beginner resources to get started
Get a good understanding of HTML, CSS and JavaScript.
developer.mozilla.org/en-US/docs/Learn - a good introduction (independent of your browser choice)
freecodecamp.com
codecademy.com
Try working on and learning from your own personal projects as soon as you can.

>Further resources
developer.mozilla.org/en-US/docs/Web - excellent documentation for HTML, CSS & JS
github.com/kamranahmedse/developer-roadmap - Frontend+Backend learner-path suggestions
youtu.be/Zftx68K-1D4 - Web Development in 2018

jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS

Attached: 1439735964633.jpg (853x480, 57K)

Other urls found in this thread:

github.com/angular/material2/blob/master/CHANGELOG.md#600-beta5-2018-03-23
twitter.com/NSFWRedditImage

The Coding Train is a fun and comfy channel

r/ megalinks

What are your go to JS libraries. I started with just JQuery and Bootstrap, but now I'm moving into Angular with Angular-Material. Haven't touched React. Looks like it has html in the js which I don't like.

I'm encoding data containing forward slashes with encodeURIcomponent so that they are passed server side as %2F, but when I split them apart server-side (e.g. $newstring = explode("/", $string)) they get treated as though they're separators instead of part of the data.

Is there any way of preventing PHP from treating %2F as a / character for explode operaions, other than replacing the forward slashes client side with characters that aren't likely to occur within normal data, like ¬ or ^?

I gave jQuery a try some days ago incidentally. Couldn't enjoy it. p5 looks nice from what I've seen but I guess it depends on your own priorities and what you want to develop or learn for a job.

Need help with job search /wdg/. Stick with what I know and am fully confident in (LAMP stack) or be something bold and brash and learn something new (Node.js)? I'm familiar with PHP but don't want to be stuck with PHP jobs for all of my career.

$query = "my=apples&are=green+and+red";

foreach (explode('&', $query) as $chunk) {
$param = explode("=", $chunk);

if ($param) {
printf("Value for parameter \"%s\" is \"%s\"\n", urldecode($param[0]), urldecode($param[1]));
}
}

nah php is ok.
just use vue/react for frontend and ajax to bridge php

You my get turned down for positions if you don't know node.js because node.js is trendy and PHP is seen as stale by some, even though it gets the job done. Learning node.js is evidence that you are capable of learning new skills, and if you don't want to be stuck doing PHP, then there's not much choice.

Reminder that there is no good reason NOT to use Jquery in not frontend framework webpage.

Did a quick google of Vue. Looks like an angular knockoff. Why use that instead of angular?

Vue is a lot more simple than angular, smaller and faster too. It focuses on just views rather than routing with models and controllers and all that.

Good time to check it out now, with the 3rd edition being released recently.
Seems to be focused on a beginner/intermediate level though from looking at the chapters, right?

For frontend, usually libraries like Vue.js, axios, pino.
Everything else dependends on the situation, like Moment.js, Socket.io or different chart libraries.

It takes parts of both AngularJS(1) and React.
Compared to Angular it's much less opinionated though and also much more lightweight. (and modular)
Same goes for React, but then with Vue vs React you have to decide whether you prefer JSX vs HTML-directives for templating, among other things they do differently.

Attached: cover[1].jpg (465x603, 105K)

If there is actually good reason not to use $_GET then use parse_str. If it has same problem then your string is getting decoded automatically /too early.

Noone stopping you from including it in your stuff, but in most cases the functionality people used it for is now built into browsers, like querySelectorAll.

Maybe it's useful in certain cases, but then it has to be useful enough to justify 30kB of gzipped JS, that has to be loaded and processed.

Hope you are not the jQuery caching guy from last thread.

Learning webdev and programming in general, slowly pugging along, putting in a solid 2 to 4 hours after getting hom from work at 8pm. About a moth now.

Suddenly it all feels useless. There is so much to learn. I feel like I have done nothing at all. Why even bother? Everyone is a MEAN JavaThon# ScriptSQL wizard working for Googazon AppleBook with a side-business doing doing easy consulting or web-dev work.

Attached: feels bar.png (800x527, 377K)

If you're just realizing now that you are competing with many people who went to school for 3+ years to learn something, maybe you should scope your expectations to be larger than a month. There is no "get rich quick", one month no-worries solution. Either stop crying and get learning, or give up.

What particular node.js?
The npm? or the express + database of choice eg; mysql?
What are the other common node.js uses aside from npm?

server

Or, alternatively, most people on your discussion site of preference are bullshitting a significant majority of the time and in general trying to appear to be more than they are. I don't know why people would do that, just go on the internet and lie, or at least fake and fib to appear more hardass.

Who are you replying to? The two people you quoted are talking about entirely separate things.

Maybe this is what's happening, this is for a REST api so I need some way of telling the difference between %2F in user data and / as URL seperator when splitting the URL into arguments to the api. I think the string is probably getting decoded automatically, i'm sure I saw something in the PHP manual warning against using urldecode for this reason. The question becomes how to stop that from happening in that case.

>30kB of gzipped JS,

You're like a little baby.

So if I'm doing back end work I have to pay for a VPS AND a place to store my database?

That sounds incredibly autistic and gay, this can't be true? Surely you do both on the VPS, right?

Elm Is my go to lib

just download mongoDB

What exactly are you doing anyway that you need to manually parse query string?

VPS IS a place to store your database. Together with your website.
How is that relevant to his question?

>You my get turned down for positions if you don't know node.js because node.js is trendy and PHP is seen as stale by some
t.someone who hasn't been on the job market in the last 5 years

just download mondoDB on his VPS as a database?

You can run both on the same host up until thousands of users/millions of db rows.

>Surely you do both on the VPS, right?
yes, the VPS is just hardware.
Like your PC.
You can run as many different processes on it as the hardware can manage if you really want to. (unless you keep things apart due to architecture reasons)

What did you read, that gave you the other impression?

Mongo is an edge-case meme piece of software. Please stop pointing beginners to it. They're far better off learning a basic relational database system.

I got pointed to it as a beginner by more than one place

I finished the web developer bootcamp and at the end it deploys the database to mlabs and the rest to heroku, didn't really explain why.

Try it and find out.

Heroku works a bit different than VPS hosts like Digitalocean or Vultr from what I know.
Heroku gives you an instance (dyno), that handles a single app in a managed way.
A normal VPS host, like the ones mentioned above for example, gives you a server with full access, on which you can (manually) run anything you want. So it's more to manage but also more freedom, how you want to utilize it.

Heroku can get quite expensive afaik.
If you just want to play around with things or have some personal projects, then a 5$ VPS with full access will be the best bang for your buck.

Is there something wrong with throwing errors in catch blocks to keep the Promise chain going to the top level?

Protips on color theory?

And they pointed you wrong.

is there anything wrong about it apart from you claiming it's too difficult for beginners

IMHO /wdg/ is way more fun than /dpt/. Over there they just argue over best practices/languages which is pretty redundant while here you guys actually make shit.

Stay cool /wdg/!

Attached: litedog.jpg (500x493, 22K)

Node is actually pretty easy to learn so I'd def give it a look if I were you. It's super useful and the amount of available packages from npm are incredible and can save you so much stress on certain projects.

Which course would you recommend on Node?

There's some good ones on udemy, but I'm sure you could find some videos on youtube that work just fine.

Okay, thanks. I'll go and see.

(not the same person)
It is not too difficult. Quite the opposite. It is so simple that it undermines a beginner's understanding of databases. Furthermore, despite often being used in production environments, it is rarely the right tool for the job. It often gets picked just because someone is familiar with it.

why not learn a real programming language?

thanks for input

>Still no good resources to learn how to make webshit from first principles with scala.js for experienced scala devs

Attached: KC_IS_DOWN.png (292x271, 31K)

>KC_IS_DOWN.png

How long has it been now, a month? F

Can someone explain to me why it is down?

2 weeks i think. kc int was genuinely a great board, all those moments lost

Attached: 6zbSIdm.jpg (604x533, 75K)

hello! i need to be up to speed with php as soon as possible and be able to put something on my gitgud page. i know a bit of c/c++, java, python. where should i start? i'll learn frameworks later if the need arises.

Attached: 1521552056588.jpg (950x1748, 324K)

like tears in the rain

Attached: yli pro.jpg (604x533, 75K)

start by hitting yourself in the head with a mallet, the rest will come naturally

> kc int was genuinely a great board

Kc used to be a great board. I was frequenting it ever since 2009 and stopped 2 years ago because of attention whores, blog posters, and porn dumps. There was no more pure love or banter, just Sup Forums and /r9k/ with circlejerks. Shame though. It was my go-to site during my college days.

Start the same place you learned those languages. If you know four languages, learning a new one should be nothing new to you.

What utterly pointless yet fun time it was. I hope it comes back.

what's KC?

KavaCore, the newest javascript framework.

Attached: serious bantz.jpg (286x176, 17K)

I'm guessing it's Krautchan

you hurt my feelings, user.
i learned them in uni so my knowledge is very formal. my uni does offer web dev classes but it's a meme js framework from what i heard so i took eyy ayy class. i guess i want to know what do i learn first from pic related since time is of essence to me. source - op.

Attached: php.png (447x273, 44K)

krautchan, specifically the int board which was basically random but filled with autists having serious discussions instead of teenagers

Use a color scheme design site like Paletton for color design

I'd rather hurt your feelings than encourage you to acquire self inflicted brain damage

Here's to hoping that once it comes back to life in a year or two, only serious discussions will be had as all the improper threads will be removed like the Russians.

Learning how to set up your VPS is very important, I'd say. You will probably never have to do it on your own once you (if you?) get a job, but it does teach you a lot of pretty cool stuff.

Go to DigitalOcean and get a droplet for $5/month, or look around for those free $10 vouchers.

it's only temporary. i need some knowledge of php for internship and after that good people at hr will move me to either python or .net projects but thanks for being so thoughtful.

Attached: 1522058876370.gif (996x885, 176K)

>good people at hr

I would never miss an opportunity to bash js, php and go, shitlangs as they are. That said, learning php can make you a better programmer. I've programmed FPGAs using the abortion of a language VHDL, which is the PL equivalent of a cursed monkey paw. In this utter insanity I learned to write code that would succeed no matter how hard the synthesizer tried to corrupt my wishes. php is a little like that..

yeah, got some friends there. they're pretty cool!

Attached: 29028180_800275440159861_1010342424469307392_n.jpg (480x467, 19K)

Just learn React if you are looking for jobs. Look at this shit:
>github.com/angular/material2/blob/master/CHANGELOG.md#600-beta5-2018-03-23
>b-but muh angular is stable now!
Ridiculous.

CSS Grid is amazing guys

Attached: 1515283542500.jpg (500x373, 15K)

Damn.

You dropped learning Angular or you never used in the first place?

Thank you

Rate my site faggots

Attached: a.png (250x100, 1K)

Stable in the sense of no more development necessary?
Because that's not going to happen with any frontend framework anytime soon.
It's not like they break anything in production. When you upgrade to a new major version it's always a very conscious action.
Though Webpack 4.0 release was bordering on what's acceptable. No docs on release and for a while after and plugin & loader devs not updating their modules, even though there was enough time to prepare.

>tk
There is no scammier sounding TLD you could have picked.
Even .ru has a better reputation.
Is that URL blocked on Sup Forums? why put it in an image?

...

I don't know, I assume *chan.tk* is blocked

I've only seen a few bits of angular code (both old and recent) and I use typescript. What baffles me though is that the thing was rewritten years ago and still looks like alpha stage. I wouldn't trust it for new projects, regardless of the version. Keep in mind that angularjs was created almost a decade ago.

I haven't even checked it but you kept the vichan repo name. I experimented with vichan a lot. I assume your site is just a clean vichan installation and nothing more.

I picked .tk because it was for free

Well you are not wrong

but ionic uses Angular, it can't be that bad

There are 15 posts though (only 1 is mine)

>Have you read your Eloquent JavaScript, user?

No, should I?

I was considering reading YDKJS after I moved from the basics.

>Have you read your Eloquent JavaScript, user?
Is it free?

it's available on libgen

is this true about React?

Attached: ss.png (1076x310, 33K)

>Make a website
>Every time someone loads it they get the source code for free

Wtf I hate web development now

*bumps mic* Wrong.

Attached: download.jpg (236x214, 5K)

No, and if you had half a brain you could've found that out yourself. Consider opening a webpage with an empty React app in it, and checking if your browser makes any requests.

Building a REST api in PHP without using a framework like Laravel etc so I can learn PHP and REST more effectively. Once i've written my own implementation I can evaluate existing frameworks against it.

So, for example, to search for data item 123/456 in a given column, the AJAX call to the REST api looks like this:
>api/v1/api.php?request=endpoint-name/options/search/column-name/123%2F456
Server-side, the query string gets split into its endpoint name, extra verb or noun, then the arguments, so what I want to end up with is something like this:
>endpoint; endpoint-name
>options: search
>arg[0]: column-name
>arg[1]: 123/456
except, because the query string is decoded automatically, I get this instead:
>endpoint; endpoint-name
>options: search
>arg[0]: column-name
>arg[1]: 123
>arg[2]: 456
So far ive only been able to replace the forward slashes in the data client side with more obscure characters that won't appear in the data normally, and convert them back to forward slashes server-side, which works, but it's a bit of a lame solution.

yes

hey /wdg/, I'm making a site for a musician friends who wants to sell beats. He has them all on bandcamp and is fine with just embedding each track. Is it possible to use any kind of CSS on the bandcamp players? Anything i do to it seems to get overriden once the page gets loaded, and I would like to use some custom colors, maybe remove the logo and album titles and what not. Any way to do this? Pic related is the only options the embedding supports

Attached: Screenshot_7.png (1124x684, 44K)

How's Slim for making REST APIs in PHP?

Going through Embedded systems course in this semester. We have both VHDL and Verilog, can't say much about the first one but second isn't that bad. Is job at embedded systems worth checking out?

>He has them all on bandcamp
>sell

when i want some music on bandcamp, i just inspect the element, get the mp3 URL and download the music