[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: 27

File: 4.png (868KB, 822x552px) Image search: [Google]
4.png
868KB, 822x552px
Previous Thread >>59247917

>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/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md (embed)

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
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/ (embed)

>How to get started
http://pastebin.com/pDT82mQS (embed)
http://pastebin.com/AL6j7GEE (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
>>
My work uses Google Docs for timesheets.

Like you have to copy and paste a formula for each cell and change 4 numbers every single time.

Why they haven't made a webpage to do this? Who knows.
>>
http server written in haskell
>>
>>59292292
Ragic
>>59292300
Sounds fun
>>
who here (((raw javascript)))?
>>
redpill me brutally on wasm
>>
Should I use drupal, joomla, or django for a CMS for a website I'm making that is just going to have articles I write and a comment section.
I only know HTML/CSS/vanilla javscript and I figure it would be better and quicker to just grind the rest of the way by making something.
>>
I'm learning webdev while working part time. Ideally how many hours should I be trying to do a day? I'm currently doing four hours of freecodecamp.

Any other resources that I should be spending time on?
>>
Do you think that people should be required to leave their name/email address in commented out code that they've written so that people who have to maintain or work on it later can ask them questions about it? I think this would be a cool practice.
>>
I'm learning how to write HTML 5 and CSS.

My girlfriend is a graphics designer and does a bunch of EDM's which are making emails look pretty.

I looked at the code for it and it was fucking ridiculous. They need to fix it.
>>
So I spent the last half year with React/Redux/webpack/ES6 and stuff and got the project lead on a large scale SPA with that technology stack
Super excited
>>
>>59293746
that's what version control is for
>>
>>59293746
Yes, like when a client wants you to add a button and you have no idea what font to use or how they made the button.

Yes, people still use image buttons.
>>
File: 123809128392.png (52KB, 724x238px) Image search: [Google]
123809128392.png
52KB, 724x238px
I wonder if I should switch JS patterns to void this binding mess.
>>
>>59293746

learn how to read code
>>
I'm trying to make a card game using a flask backend and a pretty bare frontend.
I plan on having multiple users playing the game together and running the actual game on the backend. My question is what sort of framework/library should I be using to communicate between the server and clients. So the server picks a card to deal to the client and then it'll display client side as well as for other clients.

Should I be using jquery and socketio? Pretty new to web dev.
>>
>>59292788
Obviously Wordpress.
>>
while(true) {
>wake up
>go to coding job
>get off coding job
>have 3 hours to work on projects
>go to bed
}
>>
Apache or Nginx
>>
>>59292788
All 3 of 'em are pretty solid.
I'd pick Django but that's just preference.
>>
>>59296121
nginx if you have lots of traffic
Apache if you don't care about configuration
>>
File: 1378230466380.jpg (36KB, 409x409px) Image search: [Google]
1378230466380.jpg
36KB, 409x409px
>>59292260

Hey guys, what do you use to build blogs? I was thinking about Jeckyll
>>
>>59296205
WordPress if you want to be hired by a company that does just that
>>
>>59296224

I don't. I'm more interested in working in finance.
>>
>>59295049
I'd rather not use wordpress since it does most of the work by itself and I'm still new so I'd rather learn to do that stuff so I can get an actual job.
>>59296162
Thanks, wasn't sure if there was much of a difference between them
>>
>>59296107
>not using for(;;)
>>
>>59296197
thx for the advice.
>>
what IS webassembly? can I code a webpage in C++ somehow, and just convert it to a webassembly with the click of a button?

Meaning you dont have to learn javascript.. html, and 50 other things?


I just kind of googled it and it seems kind of like I still need to know some html unfortunately.

Is the web assembly just for like coding apps into the web page, but I still need html to design and format it nicely?
>>
>>59296434
Does this shit work? I like that. A lot. Thanks, man.
>>
>>59296434
>>59297266
>>59296107

I can see this is the roleplay as a dev thread.
I shall take my leave
>>
>>59297366
b-but I am a dev.
>>
File: kys.png (312KB, 506x662px) Image search: [Google]
kys.png
312KB, 506x662px
>>59297037
pic related

>>59295038
Decided to go with jquery + flask-socketio.
>>
>be php dev
>always want to do work with the front end devs

This is suffering. How can I convince the boss that I can, and should, do both? They use Titanium, I use Cordova. Close enough, right?

I constantly get their error messages while bug fixing backend and Javascript bugs are so much easier to fix.
>>
>>59297486
Do what any reasonable person does and learn whatever front end frameworks they are doing and then tell your boss you can work alongside both back end and the front end guys.

Make sure though when you have additional responsibilities and skills that you actually get paid for it.
>>
>>59297486
>>59297594
His boss would probably say fuck yourself, I'm paying you to do back end coding, desu.

OP, I'm a front end dev and we have people in my department that think they are designer/devs. They can't be devoted enough to design (nor are they actually good at it) to actually work effectively with the designers and PM's and this also causes their dev work to lack. It hurts design, front end, and back end teams.

That being said, there is nothing wrong with learning what you can and helping out where you can. Just don't try to be the full stack guy in a situation where it doesn't make sense, and don't impose yourself on other people's territory where they have been working for years already. It just causes problems in my experience.
>>
>>59297486
I don't use either, but aren't Titanium and Cordova like native generators vs webviews? Not really similar it seems
>>
should I just quit programming, it takes me longer than a couple days just to write a numbers guessing game?
>>
>>59298393
Never quit!
Remember to get good at something you have suck at first. Then next time suck slightly less.
>>
>>59298393
You shouldnt quit, but you need to do is learn more before getting ahead of yourself.

A numbers guessing game would be very easy to do for someone that has studied at least the very fundamentals of their language.
>>
Anyone know a good place to get free data-(sets).

I need stuff like FREE IMAGES, basic descriptions of countries, their leaders etc. Generally short and succinct.

Where and how do I get this?
>>
>>59293746
Yeah nothing like getting a fuck ton of pajeets filling up your inbox when they fuck up trying to copy/paste your code to whatever project has been outsourced to them.
>>
About 2 months ago I posted that I was going to practice 8 hours a day so I could get a job ASAP. Well after 43 days of at least 8 hours a day I got a job as a full stack dev.
>>
General question here.

I'm coming from a non-Web Dev programming background (EEE degree, mostly C/C++ experience with a single SQL tutorial under my belt) and may be getting into a MEAN Web Dev project (with pretty minimal experience) via a friend of a friend.

Basically what are the main differences/constraints I have to be aware of moving from C/C++ to Web Dev/MEAN?
>>
>>59299857

Congratulations, anon. May I ask what resources you used to learn, what your portfolio is looking like?
>>
Beginner here

I have started my first personal project, a flashcards web app. At this stage, I don't have the skills to build the whole thing (no back end knowledge yet, very limited JS/JQ) but my intention is to work on it as I learn and apply the skills I learn as I go along. I know what I want the app to do, its just a question of planning how to do it when I don't have the coding chops yet.

So my question is about planning an app. Should I write out a detailed plan of exactly I want the app to do at this stage, even if I don't have the ability to build it? Just advice for how to go about structuring a project in general really
>>
>>59300224
With anything to do with programming, a good plan to implement a relatively complex program is quite essential but in your circumstance, a small outline on what you are trying to do and brainstorming how you intend to implement it should be adequate. Web development is quite WSYWIG which makes it easy to develop for, and fixing problems aren't so trivial.

In the industry, people typically use UML diagrams (class, sequence, state, activity, etc) to outline what their programs tend to do, how the inner workings of the program communicate, etc.
>>
just wanna say, typescript is awesome
>>
>>59301242
it is, yeah
what are you making?
>>
Feed me some cool JS exercise resource faam. I don't want no spoonfeeding
>>
Is Weex still meme tier now that Apache got their dirty hands on it?
>>
There's a project on GitHub with 233k lines of CoffeeScript code
I bet they must be loving that decision now
>>
>>59301301
A frontend for a couple of our rest servers. Those are written in scala, so switching to typescript is very easy. Also, doing things in a more typesafe manner on the frontend side feels great.
>>
>>59301242
it has not worked out on our project. We've only used it for polyfills
>>
>>59299857
I think I remember you, but a lot of people ask "how long to learn this" and everyone says a few months at 8 hours a day.

Good job though.
>>
I know C# and a bit of C++, and I plan on learning web development. Will these languages be of any use to me in the web dev world?
>>
>>59302022
C# will be, check out .NET core
>>
>>59301321
https://learncodethehardway.org/javascript/
>>
>>59302022
yes you can do back end with C# and .NET . Also you will have no problems with JavaScript, the languages are pretty similar JS is easier actually.
>>
Any reccomended books/online guides for Node.js?

I got a new job and need to read up on Node.js (I have never done web before) and OAuth2.
>>
>>59302022
>>59302266
>>59302615
so what's a good book for .NET and web dev? hal plox
>>
>>59302640
dunno, i used to use the microsoft documentation. but specifically to web i have no clue.
>>
>>59302618
If you know JavaScript there isn't much to know about node
a) Make sure you know how CommonJS modules work (you know, all those pesky require(...) and module.exports = {...} expressions)
b) Take a look at some often-used module (eg fs) to see how the core library handles asynchronous operations (it still uses callbacks)
c) Learn how npm and module dependencies work (it's not particularly hard)
>>
>>59302713
Never done Javascript before. Done async exactly once and cried from it, but that was several years ago so hopefully I'm a better programmer.

So if I need to learn Node, I should just start with normal JS?
>>
>Every field is either a text or integer

WHO THE FUCK DESIGNED THIS?
>>
>>59302640
C# 6.0 in a Nutshell: The Definitive Reference

Glorious reviews of this book everywhere, got a copy myself and I can't praise it enough.

Sample a pdf copy online before purchasing a physical copy ofc.
>>
>>59302793
wat
>>
>>59302945
>C# 6.0 in a Nutshell

Thanks! do you know if there's a major difference between this edition and the pocket reference edition? Because one sells at $50 and the other one at $10, both second-hand.
>>
>>59297469
hue... look at the author :
Bob something with his therapist. Assembly guys are indeed crazy.
>>
>>59303034
In this database.
>>
They literally have a text for zipcode and text datatype for a boolean.
>>
>>59303257
You know.. my coworkers have been in this business for 15 - 20 years, each of them. Combined they probably have 100 years experience.. It wouldn't surprise me in the least if I saw what you're seeing. Some people just don't care to git gud
>>
>>59302640

don't go down the M$ route please. For the good of humanity
>>
>>59302793
>>59303257

what are you talking about...html? sql? what the fuck are you talking about
>>
>>59303257
>text for zipcode
what's wrong with that
>>
File: ss+(2017-03-08+at+05.47.48).png (6KB, 652x89px) Image search: [Google]
ss+(2017-03-08+at+05.47.48).png
6KB, 652x89px
Anyone know what "metrics" mean in this context?
>>
>>59303927

probably programming graphs, charts, etc based on metrics of something. There are lots of cool libs for that kind of stuff
>>
>>59303927
I guess pull data from the api and use it to draw some charts
>>
>>59304020
>>59303988
alright thanks, my dick got harder than it already is then
>>
>>59303633
IIRC zip codes in the US are exclusively numeric
The rest of the civilized world uses postal codes instead, and they can be alphanumeric
>>
>>59304037
>IIRC zip codes in the US are exclusively numeric
so what? if you aren't doing mathematical operations on zipcodes why would you want them to be numbers?
>>
You guys ready for angular 4?
>>
>>59304185
Yes, I've always dreamed of writing a Hello World app that needs 125,000 node dependencies just to be compiled and generates a 8mb JS bundle
>>
>>59304261
lmao does it really?
>>
>>59292260
Im trying to start making a small web app with Django/MongoDB. Is this a bad idea? I never understood why a database needed its own turning complete language.
>>
>>59304306
Do it. The only way to understand why Mongo can be good/bad is using it. (Or at least that was it for me)
>>
>>59304306
>turning
you already lost
>>
>>59304185

please tell me this a joke. 2.0 just came out............i dont even care for googling about this. I'm so frameworked out. I just wanna do real programming.
>>
>>59304446
It's just a new versioning for angular 2, calm down lmao. Nothing's seriously altered
>>
>>59304446
They're switching to semantic versioning and their API is about as stable as a drunk hobo on shaky ground, so expect Angular 24 by the end of 2017
>>
Anyone have any experience in making iOS apps in Swift? Just got a job for that because this company needs Swift developers, without any prior experience with Swift/Xcode. I know php/ecmascript/memeframeworks and a bit of laravel.

Starting to get the hang of Xcode and I've used and studied Swift for a measly week prior to being hired, still feel like I'm totally worthless at doing this. So any advice would be greatly appreciated. :(
>>
>>59300186
I went through the HMTL/CSS and Javascript courses on codecademy, then I just started working on a portfolio and using w3school and google a lot. After I got the front end on my first website done I learned Python to use the backend. Then I just made another website and started applying for jobs.
>>
File: creative_graphics.jpg (35KB, 369x500px) Image search: [Google]
creative_graphics.jpg
35KB, 369x500px
>>59299857
>>59300186
embodying the /wdg/ dream, good job !
did you host your sites and show them during interviews ?
>>
>>59296394
If you want to learn then don't use CMS, duh. It's not hard to create something like this.
>>
>>59305556
what technologies do you actually use in the job and do you work on front or backend or both
>>
how do I do this in react? everytime a post is added or updated, I want the white page background to flash this.state.bgcolor and fade back to white after like .5 seconds. I think you can do this with css animations but I'm not sure

this code currently just sets the background-color to whatever this.state.bgcolor is set to
<div className='commentWrap' style={ {backgroundColor: `rgba(${this.state.bgcolor[0]}, ${this.state.bgcolor[1]}, ${this.state.bgcolor[2]}, .3)` } }>


this is pretty much what I need to
body {
background-color: white;
animation-name: change;
animation-duration: .5s;
}

@keyframes change {
0% {background-color:`rgba(${this.state.bgcolor[0]}, ${this.state.bgcolor[1]}, ${this.state.bgcolor[2]}, .3)`
100% {background-color:white;}
}


anyone got any tips for me?
>>
File: E06S23CSD.jpg (1MB, 1200x1600px) Image search: [Google]
E06S23CSD.jpg
1MB, 1200x1600px
>>59292260
I'm about to finish the freecodecamp front end certificate, is it worth putting on my resume/linkedin? Or should I just take the projects I've done, polish them, and put them up on github?

I just really want to get hired as soon as possible. I'm tired of being a miserable wagecuck/poorfag.
>>
>>59305846
honestly if you wanna get hired fuck certificates right off no company gaf bout that shit just start building some decent moderately complex shit to show to employers and you can talk in depth about during interview you'll get hired if you can do this even if you're r9k-tier
>>
>>59305877
I've gotten pretty good with the basic HTML/CSS/(vanilla)Javascript stuff, plus jQuery and Bootstrap. Also I plan on jumping into Node.js soon.

I've been studying in my free time while getting my Associates in Comp Sci. My goal is to finish my personal page and fill my portfolio with projects by the time I finish my degree in may. That way I can spend the summer looking for jobs. But I'm extremely nervous I'm not good enough and won't land one.
>>
File: LD_Turtle.jpg (196KB, 720x480px) Image search: [Google]
LD_Turtle.jpg
196KB, 720x480px
Just had my first real job interview for a PHP dev position

showed off a personal project on my computer but some of the functionality fucked up because I wasn't online, looked like a real asshole

Everything else went alright though and they sent me a coding challenge, so maybe I get another interview

Next time no demonstration unless they give me wifi first, fuck my asshole
>>
>>59305734
maybe...

body {
background: white;
}

body.animate {
transition: background .5s;
background: white !important;
}


set body background colour
add animate class
remove .5s later

haven't tested
>>
>>59305912
>I'm extremely nervous I'm not good enough
then improve.
stop crying about feeling inadequate on this shit imageboard and get learning/building
>>
>>59305920
i had a great time reading your blog anon
>>
>>59305912
I've seen some ridiculously incompetent web devs somehow land jobs.

Learn Sass, some build tools (Gulp or Webpack) and some popular framework, either React, Angular or Vue and you'll get a job pretty easily.
>>
>>59305912

Don't know about where you are but in the UK companies are frequently desperate for front end developers.

Be honest about your abilities but don't talk yourself down. A lot of people starting up talk themselves out of jobs due to lack of confidence.

Learning SASS or any compiled CSS is a big boost (don't worry it's piss easy, it's just writing the same CSS in a slightly different way).

If you can do a fully responsive bootsrap site with some basic JQuery prettiness and AJAX form submission, you'll get a job no problem.

A handy entry level front end job is email marketing. Doing HTML emails is easy and helps pad your CV. Dem table based layouts...
>>
>>59305920

If they hold it against you for not having wifi, they're pretty shitty.

I thought I tanked an interview once and still got offered the job

>office was up several flights of stairs
>"ok anon, don't show them you're unfit, keep your breathing normal"
>get into the interview room, do the introductions
>Suddenly in the middle of a sentence brain goes "you need fucking oxygen now" and I have to stop and take deep breaths like I'm hyperventilating from the pressure.

Got offered the job, wasn't enough money, got a job elsewhere.

Other interview

>"hi, talk about what you've done for a bit"
>I talk about my previous projects for 2-3 minuites
>"Well, that's great, we'll get in contact, bye"

5 minute interview so I know it had somehow gone horrible wrong. Called up the agency that reffered me, apparently the people doing the interview were completely pissed off, thought I had no clue about anything and showed a complete lack of knowledge.

Still can't figure out what I did that triggered them so hard. Maybe I mispronounced some framework or just made some minor mistake that they got autistic on rather than asked for clariffication. Either way, they pissed me off being so fucking shitty about it.
>>
>>59305920

dude you should have a development set up....set. up.
>>
>>59299098
Try looking at kaggle. If not scraping wikipedia sounds like your best bet because you could grab the first few lines about the country and then also that table off to the side that has info about GPD/President/etc.

>>59299872
Probably the difference of it. I wasn't EEE but when I started learning webdev I was used to doing a project in just c/c++/java. You'd import what libraries you need, make a class, include it later when you need it.
But what tripped me up was how many different moving parts there are. Frontend and backend and how they're different but also communicate. Not sure if that helped or not but that's the biggest difference to me.
>>
I'm doing my first React project and I have a component that displays a challenge in text, and you press a button when the challenge is completed. I also have a child component that is a timer that counts down from 10.
Is there a way for my challenge component to access the state "secondsRemaining" og the timer component? So that i can render som text when the time is up?
>>
>>59306437
I'm not familiar with React but it sounds like the variable you use to keep track of the time is too far down the component chain, bring it up the hierarchy and then pass it to the timer component as as an attribute or whatever it is that React uses
>>
>>59306437
parent component can pass a callback function to the child, child can call the function when it wants
>>
>>59306387
It's my first day
>>
>>59306486
Now you know that you should always account for Murphy's law
>>
>>59305556
Nice anon. I'm happy for you man. Good job.
>>
webassembly will kill javascript
my dubs confirm
pajeets and hipsters BTFO
>>
>>59306551
>>>/out/
>>
>>59306551
back to rebbid, alt right dweeb.
>>
>>59306615
>>59306630
you better stop wasting your time learning a language that will die soon , start learning C++ and C# right now if you want ot get a job
>>
is killing a web page in php by giving it a 404 error code ok or no? i cant remember but there was a reason why die() wasnt exactly what i wanted
>>
>>59306646
I bet you were also one of those people who kept insisting Haskell would be the next big thing
>>
I have a flexbox with a div, an SVG element, and another div in it in that order.

When rendering in chrome, all three children elements take up the height of the parent. When rendering in ie11, however, the SVG element is extremely short while, as expected, still spanning the width it should as a child in a flexbox. I can't for the life of me figure out why its height is fucked.

Anyone have experience with this stuff?
>>
>>59306683
Much like everything else, flexboxes are still bugged on IE11 despite being introduced 7-8 years ago
>>
>>59306437
You have to pass the state up the first common ancestor parent of both components.

pic related, rewriting ehr in react & material ui for client, drinking heavily throughout.
>>
File: reactpatientapp.png (65KB, 1662x903px) Image search: [Google]
reactpatientapp.png
65KB, 1662x903px
>>59307321
fuck long day forgot pic
>>
>>59305920
I always tether wifi from my phone
>>
Is passport with JWT safer than the local strategy?
>>
File: mfwlewdischeapandshit.jpg (18KB, 480x480px) Image search: [Google]
mfwlewdischeapandshit.jpg
18KB, 480x480px
>>59292260
HIRE ME!
>>
Is it me or is the Angular 2 tutorial on the official site really terrible?
>>
>>59307906
The Tour of Heroes is a bit advanced for a starter tutorial but it all starts making sense once you move on to the guide where everything is explained more in-depth. So the shit tutorial you just followed starts clicking.
>>
File: 1485889119752.gif (8KB, 645x773px) Image search: [Google]
1485889119752.gif
8KB, 645x773px
>he's not an asynchronous developer
>>
>>59292788
>>59296205
Jekyll
>>
>>59308042
The tutorial being advanced is not the issue, it's that it jumps from step 0 to step 10 without explaining the 9 steps inbetween
I understand they want to concentrate on the business code first to show how Angular works, but why the fuck am I installing stuff like SystemJS, RxJS and Zone.js and how does it all tie together? Okay, you don't want to scare away the newcomers, but at least put a note that says "X does Y and that's why we use it, read Z to know more"
Maybe I should try finding a bottom-up tutorial, this top-down stuff is just irking me
>>
>>59309278
Don't remember ever using Zone or System js in the tutorial, probably since I used the angular cli instead of the quickstar github file. rxjs is just so you can use observables.
>>
Has anyone used the angular-cli?
Is it a decent tool?
>>
>>59309557
Yes
>>
How do I test my back end without actually having a website or a server? Right now I just how all my files in a folder on my computer.
I see some people testing their with a command console.
>>
>>59309735
In your code you should have something that routes your server to a port. Just route it to an unused port, start up your program, in your browser go to //localhost:"specified port"
>>
I keep trying to get this tutorial to work but it's not.

Can someone go through it and tell me if it works for you?
https://devcenter.heroku.com/articles/mean-apps-restful-api
>>
>>59309769
thank you
>>
>>59306398
The layers of it are a big jump, what do people usually use to plot and draw relationships/interactions between all the layers? Just bastardised UML or is there something more structured and coherent?
>>
>>59304261
Angular 2's Tree Shaking is a thing.
>>59305525
Keep investigating, that's the only way
>>
>>59310559
That's the problem about web dev. There is no set way to do it. There's a million different frameworks to do one thing and everyone does it a little differently.
I think you can use some bastardized UML. Which I've used to set up a database and the relationships between tables.
This video kinda helps to explain it all:
https://youtu.be/sBzRwzY7G-k

Basically you have your backend which handles the actual GET/POST requests and grabs a page to show the user as well as handles the actual logic of your site. Such as querying the DB and adding users thta signup to the DB.
Front end is making the page nice, laying it out, and getting user input to send to the server.
>>
Why do people talk about bringing computers to interviews?

Is there really an expectation I'm some kind of faggot who uses a laptop?
>>
>>59311253
To show your portfolio
>>
>>59311253

i dont se why you would have to if you emailed them or linked them already
>>
>>59311253
i guess you can live demo on your cia approved phone
>>
>>59311253
I've never met a web dev who didn't own a laptop. I'm not even exaggerating just to disagree with you.
>>
>>59303633
No zipcode is 65,000 digits long.
>>
> make three basic ass marketing Jekyll themes
> build in includes for each content area
> tell client to choose a theme
> tell client to buy domain and create github account
> publish to github pages and encourage them to manage their content by editing md in prose
> charge them double what you would and tell them to enjoy their $10 a year website
> ???
> profit

Would this work? Is it too janky? Too cheapo for most businesses?
>>
>>59312503
why bother editing content in md when you can do it on a cms
>>
>>59311253
I've never done this. I considered it though. It was necessary. Actually I had even forgot to bring my resume and still got the job.
>>
>>59303379
This shit was originally made by our CTO.

They wonder why it's so SLOW too. All of the clients complain about how slow it is and we have over 100 tables per client site with TEXT and INTEGER datatypes.

I asked if I should VARCHAR(20) for the a field I was entering and they told me just to use TEXT.
>>
>>59312520
I mean a Jekyll site would be faster not that it would matter much on a marketing site but mainly cause then you don't have to actually host it and can throw it on github pages or aws storage or whatever for nothing or basically nothing. Perhaps that would appeal to certain clients? You have one login to know with github and you only pay for the domain. Most clients don't want to content manage shit any way they want to change one line of text every so often if the store is closed on Tuesday or whatever. On top of it if they fuck up source control is baked in so it's easy to fix
>>
>>59312599
still you can get a oneclick wordpress install on lots of hosting providers for a few bucks a month
automatic version control sounds nice tho
>>
File: ragestache_11937_1324954804.jpg (50KB, 618x468px) Image search: [Google]
ragestache_11937_1324954804.jpg
50KB, 618x468px
Are there any specific places a web developer can go to have their resume critiqued?

I just went to a general one and the people there knew nothing about web development or programming resumes.
>>
>>59313235
show it to us, we'll critique it
>>
>>59313419
Alright, I'll post it in a bit.
>>
A better way than something like this,


var theid=$(this).parents()[1].children[0].innerHTML;


?

(It's in a <table>)
>>
>>59313235
Quick piece of advice for a mistake that I constantly see newer/student developers make:

If you're applying to a smaller company, get rid of the skills-list-soup that normie-tier "career advice" places tell you to make.

Don't list languages that aren't in use at the place you're applying to. Don't be vague about the type of experience you have with a language. Be specific with what you say you know, and avoid saying generic things like "Experienced with X" or "Understands Y". So if you have experience with javascript, say what you did with it like, "3 years working experience with Javascript - <Framework X>, <Framework Y>, <Framework Z>". If you had a class in C#, don't say you "understand" it, say that you took a class and have rudimentary knowledge of it.

Skills-soup resumes are probably fine for really big companies or government work.
>>
Question. May be retarded, but am somewhat noob.

How exactly does one tie in the backend with the front end? Like, say I'm using Java for my backend, how do I tie it in with my webapp?
>>
File: 1389812920746.png (8KB, 570x533px) Image search: [Google]
1389812920746.png
8KB, 570x533px
>>59313235
What makes you think the web dev employer knows anything?
>>
>>59314003
Use a better backend language.
>>
>>59314128
How would I do it with say, Node js?
>>
>>59314134
Watch youtube
https://www.youtube.com/watch?v=xDCKcNBFsuI
I mean I can go on on about Hyper Text Transfer Protocol and how the client communicates with the server and how you can write an entire web server application that handles HTTP request protocols and how to output a proper HTTP response protocol but why bother just use a prewritten webserver code.
>>
>>59314003
ajax?
>>
>>59314237
>>59314190
Ok. What I'm picking up from this is that a "backend" is basically a RESTful api that you create, which accesses your database for whatever data you're requesting from it. And it links into the "Front-end" via API calls in the code. Is my understanding correct?
>>
>>59313916
I guess I messed up then.

>>59314106
I was thinking more of anyone who has a web developer role already would have some information on what to look for.


Anyway, here (ignore image quality). What can I do to improve it?
http://i.imgur.com/9YuUyEO.jpg
>>
>>59311379
why not just show your code on github/bitbucket whatever? On junior level It'll do just fine.
>>
>>59314503
Incidentally, I have had no successful callbacks so far (although it's been 1 week so far maybe it's a bit too early). From what it seems, it is because I lack "professional" experience. None of the roles I had involved getting paid to do it, yet they were all I could find. I'm not sure where I should go from here but I do need a paying job soon...
>>
>>59292260
>Daily reminder that web development is not programming. :^)
>>
>>59315109
faggot detected
>>
>>59313796
Can you change html?
>>
>>59314003
Frontend simply means that part the user sees. It can be HTML outputted by your Java app or SPA that gets data from your backend using AJAX.
>>
>>59314324
That's one way of writing a frontend. REST-only backends have gained a lot of popularity ever since interest in JavaScript exploded.
Another way is letting the backend generate the pages that the user will receive with stuff like JSP, JSTL, etc.
>>
>>59315451
s/frontend/backend/
>>
File: Lea-verou.jpg (83KB, 800x800px) Image search: [Google]
Lea-verou.jpg
83KB, 800x800px
https://www.youtube.com/watch?v=XcHbIEw44wg

https://en.wikipedia.org/wiki/Lea_Verou
>>
>>59292292
My work uses Excel for timesheets. Just like you, we have to copy and paste a formula to tally up the hours for the week, and the running total of hours for the pay period.
>>
>>59312598
You win some, you lose some. I deal with similar stuff on the daily. I haven't found a place where doing the best work you know how to is appreciated. It's really all I want to do. Did you explain why the varchar would be superior to them?
>>
>>59315975
is this shitposting or the wrong thread, or just insanity?
>>
>>59313796
>theid

Don't do this. Be descriptive. Naming something like 'theid' will fuck you hard in the long run. I have a bigass PHP page full of that shit and edits take a long time.
>>
Any good books/websites to lean Javascript on?
>>
>>59316463
http://programming-motherfucker.com/become.html#JavaScript
>>
>>59316412
Pay respect to the Queen of front-end-dev, Karliekunt
>>
I want to make a webapp with a compiled language, like c++ go or rust. Maybe even c# or java. What language and framework do you recommend?
>>
So there is this javascript game I want to exploit for learning. Let's imagine there is a top list10 and when you finish the game, your result is added there.
http://breakout.enclavegames.com/lesson10.html

So how do I edit the code (for an example, change the blockwidth to 200 and run it with edited variables? The inspect source view does not allow me to change the variables.
>>
>>59316490
vue.js
>>
File: peli.png (70KB, 1323x575px) Image search: [Google]
peli.png
70KB, 1323x575px
>>59316510
SS for lazies
>>
>>59292260
hello would like to get to web dev in side so I would not have to hire folks to make small sites.
I used to know html/css, so I'm confident I can relearn it in a day.
I know programming and a bit of javascript.
Which "framework" should i learn?(just to make beautiful sites)
>>
>>59314003
frontend to php, php exec command line to your java program, return threw pipe
>>
>>59314562
Could do freelance on Upwork if you're good.

Or build something complex and fake it.
>>
>>59316510
you need to modify the code variables, not the dom elements
for instance, type angular.version in your browser console, if it anything meaningful is printed, then the site is using angular and you need to "debug" it in order to find the controller scope and variables that are doing all the work
gl
>>
how to get a job with no degree
>>
>>59314003
you either want to serve content through server generated templates ( jsp, thymealeaf, stringtemplate ) or through static content with javascript
On the client side you'll send http requests either using forms or with ajax requests, server side make a controller that handles the specific requests your client will send, with whatever framework you like

you don't need to fall for the node meme
>>
>>59317287
Apply everywhere.
>>
>>59317287
freeelance
>>
Does Angular 1.x have any way to declare components locally, on a component basis? Kind of like what Vue lets you do
It feels ugly having to declare every component globally
>>
>>59316539
If you only want to make basic sites for your projects or whatever you should setup a cms like wordpress or joomla, those are available pre installed at most hosting providers and will allow you to make pretty gud stuff without having to bother with html
If your goal is instead to learn how to make websites just pick a language to run on servers and your choice of angular vue react vanilla javascript for the clients.
>>
Beginner question here
Anyone might know how do I set a fix value for <tables> ?
I'm using boostrap but can I just put a width and length in the html code ?

I'm just trying to keep the same size for all the table wether or not I'm changing the page's resoltuion
>>
>>59318051
.my-custom-component table {
width: 2px;
}
>>
>>59318051
setting a fixed width for an element defeats the purpose of using bootstrap
you are using bootstrap so that your elements get resized according to screen size
>>
>>59316463
You Don't Know JS
>>
>>59318139
Well I made mistake. I don't want it to keep the same size wether or not the resolution is changed but more keeping the same shape so a table won't be longer or wider than an other one.
I just want perfect rows of tables with the same size. No matter what sizes they have.
>>
>>59318245
put tables in the same bootstrap column classes and make sure they keep the same paddings ad margins
>>
Is free code camp a good way to learn some of this stuff? Could I find some work if I complete it and learn from it?
>>
>okay, this is easy enough to do, I'm sure I won't need the UI designer for th-
>aaaaand the UI looks like complete ass again
Every fucking time
At least the code is pretty, so there's that
>>
Anyone have any experiences with web dev bootcamps? Do they work or is it just a scam that I can learn the shit online?
>>
>>59318660

almost anything can be learned online
>>
why are there so many cucks in here advocating frameworks?

make no mistake front end can and should be done with just html, css and js/jq
>>
>>59319165
they are a lot more efficient to work with than making everything yourself.

I can set up something that hides/shows elements based on other dependencies within seconds and it's guaranteed to be working and be very efficient.

sure you can write your own little snippet to do that, but you'll have to test it yourself and make sure it works how it's supposed in an efficient manner.
but why bother when there are frameworks that multiple people develop, test, get bugs reported and fixed and are probably a lot more thought through than your own stuff.

no one is stopping you from rolling your own thing, but to get shit done frameworks are much better when you start doing more complex applications compared to someones 4 page homepage.
>>
>>59319165

id rather use vanilla everything to have a faster, lighter weight app then to use frameworks that bloat things. Sure we're talking milliseconds here but the faster the better. Takes a bit longer to develop, too. But it's "lower" level programming. I know that sounds retarded since this is web dev but letting frameworks hold your hand doesn't really help you learn to the point where maybe one day you could write a framework of your own if you wanted to
>>
>>59319285
what frontend frameworks do you use?

>>59319438
>id rather use vanilla everything to have a faster, lighter weight app
my thoughts exactly
>>
>>59319165
I use "all my projects are one-week-development one-month-support one-maintainer-only" framework.
>>
>le self taught developer job hunt
>Radio silence for months
>Get one interview
>Suddenly everybody wants to interview me

Seriously I had one interview yesterday and now today I have two recruiters hounding me and Launchcode just offered me an interview with some startup

Great excite
>>
>>59319165
but how does one find a job without frameworks
>>
I have a few questions about web hosting, probably easier if I ask them one by one.

I am helping my friend wants to sort out his business' website, and that includes changing domains. Am I right in thinking that the "Correct" way to do this, is to upload the new site design to the domain that is currently used to host their website even though we plan on phasing it out, then when that is all uploaded and working, we get the new domain, upload to there, and change the old domain so it does a 301 redirect to the new domain?
>>
>>59319978
You're not kidding, every interviewer has a hard-on for framework experience

Like you can't learn a new one on the job
>>
>>59320242
maybe setup new design on new host /new domain first then do redirect from old domain to new host /domain so that in case you fuck up you only need to cancel the redirect to revert back to good old previous design
>>
How hard is it for a 4 year old web dev to get a visa and move to the states?
>>
>>59292292
Putting in your time at work is awful. I don't work in computers but it's pretty much the worst. I'm thinking about switching to an it job because they're hours are just "IT -8 hours" done.
>>
>>59321191
management often needs to keep tabs on how many hours / task are spent for billing purposes, be it actual bills or estimating a project's cost when making propositions to a client
it's not necessarily to fuck employes over
>>
>jshint: The most complex function has a cyclomatic complexity value of 13 while the median is 2.5
It's supposed to be an image viewer for a booru. How'd I do?
>>
For fucks sake

If I want to build a small business website with some custom functionality on top, I pretty much HAVE to learn WP and PHP?

Does any JS/Node CMS compare?
Ghost seems good only for casual blogging and Keystone is so new, nobody has any clue if it's actually viable
>>
>>59321091

us wont allow minors to travel without parents fyi..
also being a 4 year old who can do some html and css doesnt make you a web dev fyi..
>>
how do I keep the font size from messing up my button? top is good, bottom is the size font I want but you can see how it offset things a bit
>>
>>59322200
reduce the padding.

or post some code, how should we tell from a screenshot.
>>
>>59322219
.commentFormPost {
min-width: 10%;
max-width: 10%;
display: inline-block;
height: 40px;
/*font-size: 1rem;*/
background-color: #A3CDFD;
border-radius: 3px;
color: #fff;
text-transform: uppercase;
letter-spacing: .055rem;
border: none;
margin: 0;
padding: 0;
}


here's the css, uncommenting the font-size results in the problem
>>
>>59322200
box-sizing: border-box with a line-height.
>>
>>59322279
line-height: 1rem; ??
>>
If I have 2 or more domains, with 1 being the main one, and the rest 301 redirecting to the main one, what is the deal with SSH certificates, do I just need one for the Main one.
>>
>>59322389
are you actually meaning SSH?
You have one per user, it doesn't care about the domain.
>>
>>59322532

No sorry, I mean SSL certificate.
>>
>>59322312
>>59322348

neither
>>
>>59322389
>>59322607
you do want to get a certificate (or just add them to the SAN of your main) for the others.
Anyone who would go to your other domains using https would get a connection error otherwise.
>>
Self-learning here.

I've been struggling with Ruby tutorials. I find them boring and frustrating so I've moved onto Rails to try and pick up some Ruby along the way whilst actually getting to build stuff and learn more. I find I learn better by actually doing shit, tutorials and books are great for learning the basics but they soon start to drive me insane. Anyone else feel this way?

I started on RSpec but gave up pretty quick. I known I have to learn testing at some point but to be honest, I find it really hard to motivate myself to learn that shit. I'm working through Odin Project and they get into it quite early on. I honestly feel like just completing the Hartl Rails book before I even look at RSpec again. Thoughts?
>>
>>59322893
>got bored learning ruby
ruby is based
>>
this works

    if (name.startsWith() == "a")
{
alert("test");
}


but this doesnt

    if (name.startsWith() == " ")
{
alert("test");
}


what the fuck is going on
>>
>>59323024
Maybe startsWith() removes spaces before checking the first letter?
>>
>>59323024
if(name.startsWith('a')) {
alert('test');
}
>>
>>59323024
startsWith returns a boolean, == will convert non null string "a" to true
you need to pass "a" in startWith parameters
>>
Anyone in the UK have any strong views on good Web hosting sites?
>>
>>59323446
Without your budget or expected load there's no answer.
>>
>>59323147

fek, thanks
>>
>>59292788
WordPress. Drupal is for faggots who don't get anything done because they're too busy trying to justify their needlessly complicated cms to clients and peers who don't give a fuck.
>>
>>59323525
They both have their uses, Wordpress is simple and quick to hack something together and Drupal is good if you have a fuckton of content/users/permissions and need more customization.
>>
>>59293684
Don't look at it that way. I can still fuck all night but sometimes the shorter session gets me off harder. FCC is great but you'll want to spend some time on YouTube. Find a video tut on responsive page design, then work through some JavaScript tuts, maybe even a jquery vid. I think you'll find the free code camp stuff makes more sense after that. I
>>
>>59323455

Oh sorry, budget is really anything around £0-10pm, the current website is getting about 250 views a month, but we are hoping to expand to about 1000, either way I am fairly certain that means we only need to go for shared hosting right? Its just a static 10 page website.
>>
>>59293925
Good work, anon. Congratulations to you
>>
>>59323606
You can host a static website with 1000 per month on a toaster, maybe look into heroku free with one of them free ping services to prevent it from sleeping.
>>
>>59298393
No. Do not quit. Cunts quit, but YOU always press on. You can do it, and with hard work and persistence, you will.

t. not very smart but I work hard and things are starting to come together just in time for me to be too old to hire or replaced by a robot pajeet
>>
Post only raw javascript code you've written. Framework babby's pls go.

function searchName(name)
{
if (name.startsWith(" "))
{
name = name.substr(1);
document.getElementById("Name").value = name;
}

if (name.indexOf(" ") > -1)
{
name = name.replace(" ", " ");
document.getElementById("Name").value = name;
}

if (name.length > 2)
{
if (window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
xmlhttp.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{
var data = JSON.parse(this.responseText);
var numOfResults = Object.keys(data).length;
document.getElementById("searchMessage").innerHTML = numOfResults + " result(s) fetched.";
bindMuhData(data[0]);
}
}
xmlhttp.open("GET", "searchName.php?Name=" + name, true);
xmlhttp.send();
}
else
{
document.getElementById("searchMessage").innerHTML = "";
}
}
>>
>>59324488
Amazing! Now read about SOLID principles.
>>
>>59324488
Utils.deg2rad = function (x) 
{
return x * Math.PI / 180;
}
>>
>>59324532

i dont like OOP
>>
>>59324764
Then learn a bit about functional programming. The same rules apply.
>>
>>59324488
Jesus son, at least post some decent code if you have to shitpost
>>
File: wokeafbaby.jpg (112KB, 720x720px) Image search: [Google]
wokeafbaby.jpg
112KB, 720x720px
I have this script that will grab file uploads and put info from them into a JS array. I now want to take this data and push it into a PHP post request. do I push this data into the $_FILSE var in PHP? Can i just generate random tep file names?
function image_check(){
var uploads = $('#input');
if ('files' in uploads.get(0)) {
if (uploads.get(0).files.length == 0) {
txt = "Select one or more files.";
console.log(txt);
} else {
console.log('We are in file land');
for(i = 0; i < uploads.get(0).files.length; i++){
var files = uploads.get(0).files;
var name = files[i].name;
var size = files[i].size;
var filse_up = [name,size];
console.log(filse_up);
}
}
}
}
>>
>>59325036
Since you're using jQuery, check this old AJAX plugin
http://malsup.com/jquery/form/
>>
>>59306683
I'm sorry that I don't have an answer for you, shit like that can drive you bonkers. It's amazing that after so many years microshit still can't into browserz
>>
>>59294628
i dont think you have to do the with es6 syntax with anonymous arrow functions.
>>
>>59296434
this is sweet
>>
>>59295038
> not running the game client side
>>
>>59315507
WebDevs can't into sed|vim
>>
>>59325642
>your post
>not bait
Here's a (You).
Explain how that would work.
>>
I'm about to go to Hack Reactor (bootcamp) which is obviously shit. I'm going to drop $17k + interest to learn in a semi structured environment with a group of people doing the same thing, for 12 hours a day.

I'm good at doing algorithmic toy problems but that's it. What should I learn next, before the bootcamp?
>>
>>59324488
This mimics JSON.stringify using recursion.
function stringifyJSON(obj){
var result = [];
if (obj && typeof obj === 'object'){
for (var key in obj){
if (typeof obj[key] === 'object' && !Array.isArray(obj[key])){
result.push("{ " + ['"' + key + '"',stringifyJSON(obj[key])].join(": ") + " }");
} else if (Array.isArray(obj[key])){
result.push( ['{ "' + key+ '"', "[" + obj[key].join() + "] }"].join(": ") );
} else {
result.push( ['"' + key + '"', obj[key]].join(": "));
}
}
}

return result.join();
}
>>
>>59324488
This takes in a string and outputs the string sequenced in decreasing order based on how many times the character appears.
"heeyiyooo" -> "oooeeyyhi"
Characters can't be mixed
function sortByFreq(str){
str = str.split("");

var noDuplicatesByFrequency = str.filter((letter, index) => index === str.indexOf(letter)).
map(letter => [str.filter(item => item === letter).length, letter]).sort((a,b) => b[0] - a[0]);

return noDuplicatesByFrequency.map(item => item[1].repeat(item[0])).join("");
}
>>
>>59326397
fugg i need to step up my shit
>>
>>59326240
um just pass needed data over the server between clients but have the actual gaming logic on all the clients machines
>>
>>59326739
Why would I have the game logic run on client's machines? That sounds incredible unsafe.
Would it not be better to determine what's happening in the game on my end and send it out to the clients?
>>
>>59326777
yeah but if you've got alot of clients you can improve the latency by running all the computation client side.
>>
>>59324488
>>59324534
>>59325036
>>59326331
>>59326397

finally some code posted on /wdg/
>>
>>59323024
thats what happens when you use the evil == operator.

use ===, you Pradeep Dharmarapu you
>>
>>59324488
Rate my js:

String.prototype.supplant = function (o) {
return this.replace(
/{([^{}]*)}/g,
function (a, b) {
var r = o[b];
return typeof r === 'string' || typeof r === 'number' ? r : a;
}
);
};
>>
>>59327678
I'm confused on what this does. I don't know replace that well and I know regex even less.

I was under the impression that anonymous functions usually work like
 function (item, index){...}

That would make a and r the same thing.

As far as criticism goes, maybe use better variables.

Here's something that checks whether or not a string is palindromic, with numbers and letters.

function isPalindrome(str){
str = str.toLowerCase().split("").
filter(letter => Number.isInteger(letter) || letter !== letter.toUpperCase());
return str.join("") === str.reverse().join("");
}
>>
I'm using flask and flask-security to handle my user registration and login. However I want to test my chatroom but I can't. Because in one tab I'll log into account1 and another tab I'll try to log into account2. But it'll just log account1 out and both tabs will be logged into account2.
I've tried using private browsers but this also doesn't work. This seems like some sort of cookie issue or some config I can turn off but I'm not sure how. Any advice would be awesome.
>>
is there a good book that deals with es6?
i wanna get into webdev and might as well learn es6 right away.
i heard good things about eloquent javascript but it seems that its starting to get outdated a bit.
>>
I thought a web dev job would make me feel better.

I wasnt excited when I got the job even though I make double what I did. I've wanted to do this since I was young. In a way it made me worse. Knowing that the one thing I was sure that would lift me hasn't done anything at all.

This is probably what a midlife crisis is. Harder with no friends and no gf.


/blog
>>
What's harder to learn, functional or object oriented?
>>
>>59299098
Check out faker
>>
>>59328216
Coming from someone who's ahead of you, if you dived into Eloquent Js and programming instead of looking for a better learning source, you'd realize how dumb that question sounds.

There's no golden ticket in life or programming. Expect to learn from multiple sources. The best you can ask for is a solid source, and Eloquent Js is it.

I'd even recommend taking a step back and doing Udacity's CS101 (which is in Python) before moving to Eloquent Js. You're going to have to learn to enjoy the jouney. CS101 is a lot easier to consume than any book, and you're writing code most of the time.
>>
>>59328382
Maybe working at a better company would help, with the friends and happiness.
>>
File: 1389520980189.jpg (53KB, 317x474px) Image search: [Google]
1389520980189.jpg
53KB, 317x474px
>>59328202
>he doesn't know about chrome incognito
>>
>>59329034
what part of
>I've tried using private browsers
Did you not understand? Unfortunately I have no clue how to fix this.
>>
>>59297037
Webassembly is a replacement for Javascript. You still have to learn HTML and CSS.

Basically Javascript has some web stuff built into the language by default, like things for interfacing with the DOM and some HTML related stuff. I'm not exactly sure how WebAssembly works, but I think it basically adds some interfaces or whatever to the language you're using, so you can accomplish the same things you'd be able to in JS.

And your language is compiled to a bytecode format which is sent to the client, and can be read by the browser's WebAssembly VM, which basically replaces the JS engine.
>>
>finally bit the bullet
>did the react tic-tac-toe tutorial
>"now you know react!"
lies

>reading the documentation
this is how the pros do it right?
>>
>>59329175
Reading the docs is probably the way to go. I did the Codecademy tutorial when learning Angular, and it was pretty bad. After finishing it, I still didn't really have any idea of what I was doing.

After that, I went through the example project directly from Angular's site, and I had at least some idea of what I was doing, since I actually wrote the boilerplate code and everything myself, even if I was just copying verbatim.

At that point I was able to start my own project, and look at the docs for whatever I didn't know or didn't fully understand.
>>
>>59329394
>angular
I remember failing at the Angular 2.0 tutorial last year

Anyways t. for the feedback.

I don't frequent /wdg/ much but do many people here use React? What about Vue? And my pet favorite, cyclejs?
>>
>>59329070
Chrome incognito shares one set of cookies across all its tabs/windows. They're cleared when all incognito tabs are closed.

With normal browsing + incognito/private mode, you can have up to 2 users per browser, and can have multiple browsers running.

If you need a lot, you can essentially open a bunch of empty chromium browser instances with Electron (or there might be a way without electron). I don't think those share cookies, but I'm not sure.

If you're interested in automated testing, check out Selenium.
>>
>>59329488
Personally, I don't trust any JS frameworks or addons or anything. Everything tells you to also use this, and this, and that, so I tend to just write everything from scratch.

Basically this: https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f
>>
>>59329561
>No JavaScript frameworks were created during the writing of this article.
kek
will read

btw i have experience with multiple langs and have made fullstack websites before without frameworks... but they were all very shitty. so i am hoping a framework will give me the structure i need to make a more complex site with CRUD features. currently planning on learning react for front-end + RoR for backend.
>>
>>59329561
also,
>I tend to just write everything from scratch.
the purpose of many of these frameworks and tools is to save you the time that starting from scratch takes. for example yo, i want to get good with yo (i've gone through its tutorials before and didn't learn anything). same thing with gulp (i chose that over grunt)
>>
Let's say you have a website with 5 pages. Is it possible to have all pages load at once so there is no delay after you click page links.

Maybe not all the pages at once, but a staggered load, where the first page is loaded and the rest are being loaded while the user is reading the first page.

That would be GOAT UX for text heavy sites imo
>>
>>59329561
How do your employees feel about wasting their time?

>Learning Javascript

Fuck that, learn a real language or two, I'd recommend one object oriented like C# or Java and one Functional like Haskell. Then just spend a day or two learning the JS syntax, then use whatever meme framework is hip right now. The issue with web development is that there's no real consensus on how shit should work, framewoks like Angular2 centralize this while also following widely used and tested patterns, it's nice and easy and you don't have to worry about your shit breaking on every new iteration of Javascript with whatever "brand new" feature they stole from other languages. Also use Typescript.
>>
>>59329561
Alright finished the article. Liked it so much I retweeted it. I already knew at least 80% of what was in the article too, so that's good.
>>
>>59329704
I'm not the guy you're replying to. I'm the guy he's replying to. But -

My last job was working as a programming instructor. I taught people how to program for their 1st time using Javascript. And while I was being paid to do that, my Javascript skills increased a lot. And you know what? I can get a lot done in Javascript now. I don't think it's a meme language and I think it's plenty powerful. I haven't run into any problems I couldn't do for lack of power or tools in the JS language.

Please tell me a task I need a functional language like Haskell for. If you're going to go for the pure functional allows e z multithreading argument, I'll give you that.
>>
>>59329654
That's probably a good idea. I've heard good things about react, and RoR is good.

>>59329666
My negative attitude towards JS frameworks and addons started with JQuery. It became so ubiquitous that 90% of JS stackoverflow questions have solutions in JQuery, when the pure JS (or even CSS) answer is just as easy or easier.

I think using a framework like React or Angular or similar is a good idea you have a large scale web app, but I don't know about using things on top of that. You end up with bloat: overhead for downloading a ton of JS, and then overhead for running anything because more stuff is executed and parsed.

I'm more ok with things on the backend, like gulp and stuff like that, for automated the deployment of your site, especially if you want to minify your CSS and JS, or if you compile something else into JS. Backend stuff doesn't affect the end user so much, so I'm ok with the idea of it.

>>59329704
Did you read the article? It didn't really even mention JS syntax. It was about the vast multitude of frameworks available for the language, and how it's overwhelming for a beginner. Also it sounds like you don't really use JS that much. There are specifications for "how shit should work", and they pretty much ensure that old Javascript doesn't break when new features are added.

And I don't have any employees that I know of, but thanks for your concern.
>>
What do you guys think of w3schools? is it a good place for learning web development
>>
>>59329965
It's ok for looking up terminology or standards. MDN (Mozilla Developer Network) is better though.

In terms of learning HTML/CSS/JS, you might be better off somewhere else.
>>
>>59329895
>90% of JS stackoverflow questions have solutions in JQuery,
This irks me too
>>
>>59329895
Your negative attitude towards framewoks seems to be very high level and shallow. Yes traversing the DOM and animating elements is relatively easy in vanilla JS and CSS but that isn't really the point of using a library or framework. A good framework provides you maintainability, scalability and a set of standardized design patterns built into it so that your team of 10+ programmers can be on the same page. All the bigger sites out there either use a framework(s) or have created their own. They're basically needed if you don't want to make the development process a living nightmare.
>>
>>59329965
I found w3 better to understand when I was just starting.


but Firefox is more in depth.
>>
File: JS.png (6KB, 192x127px) Image search: [Google]
JS.png
6KB, 192x127px
what the fuck did javascript mean by this?
>>
>>59321091
Depends, are you an Iranian?
>>
>>59305556
>>59299857
What job/position took you in? I'm curious.
>>
FizzBuzz
Array(100).fill().map((_,idx) => {
var num = ++idx;
var result = "";
if(!(num % 3)) result += "Fizz";
if(!(num % 5)) result += "Buzz";
return result || num;
}).join(" ");


>>59329965
What with the wealth of other options, I don't think you should be going to either of those unless it's from a google search.

Udacity, FreeCodeCamp, EloquentJs and you're good to start building imo.
>>
File: secret robot internet.png (65KB, 612x727px) Image search: [Google]
secret robot internet.png
65KB, 612x727px
>>59331228
Floating point numbers are fun.
>>
Hey, started to learn react/redux, and the transition between raw CSS/JS/HTML has been a little difficult, my main problem is setting up the environment.

I've read about webpack and npm and i can set up a very, very basic react environment, however at each new tool i add the complexity grows quite a bit. Any tutorial you guys would recommend?

I know there are a lot of boilerplates around, however i'd rather learn each tool before moving on to the next, installing a bunch of tools with create-react-app isn't really what i'm looking for.

Remember, my problem isn't to set up basic react+redux+webpack environment, i can make that from scratch, the problem is when i have to add more tools to this setup, automatic sass processing, ESLint, etc..
>>
>>59331228
It's not javascript's fault desu, you will get very similar results in C. Floating point numbers aren't a 1:1 representation of our number system, they have a limited precision and at some point they always break eventually.
>>
Technically floats and ints share the same limitations of being a 1:1 representation of only what they can represent (as does all data) and you could say that "at some point ints break eventually" (overflow/underflow). The real problems with floats is twofold:
1: That they don't have a closed algebraic system. In other words (float1 + float2) is not guaranteed to be a number representable by a float. And so you get rounding errors that can aggregate and become a real issue.
2: Conversion between the decimal format for different based numbers can turn a finite-length written decimal into an infinite length one, requiring unintuitive rounding for what looks to us like simple numbers..

And frankly 99% of the time we use floats, a rational number system would have made more sense, but that's technology for you.
>>
File: trumpcabinet.jpg (296KB, 1035x1312px) Image search: [Google]
trumpcabinet.jpg
296KB, 1035x1312px
Why doesn't <p> generate a new line in a <li> elem, and HOW do I make it do so?
>>
>>59328811
>Udacity's CS101

looks awesome. Any more great Udacity courses?
>>
>>59331586
oddly relevant meme
>>
>>59331935
I'm trying to replicate but I'm not able to. Maybe you can post what you have and I can fix it
http://codepen.io/Cameron64/pen/ryyvVd
>>
I am a very fresh /wd/ and i cant even get php to work properly.

as i understand it, the php include function should work as long as you have a .html file with the tag <?php include "includedstuff.php"; ?> and a .php file with some html tags in the php document, right?

The problem i have is that the <?php tag doesn't work in the main html file.

Yes, i'm doing this all on a server and not on the client. Anyone help is appreciated
>>
>>59332651
. Html is not php file so PHP doesn't work there.
>>
>>59332783
But when i changed the main html file that displays my website it just becomes plain text. should all my files that uses php be .php instead of what?

i have <html> tags and alltså !doctype html in my html file.

I've tried loads of stuff but nothing seems to work
>>
rate my fizzbuzz
_.join(_.times(20, (i) => i).map((i) => {
var fizz = i % 3 === 0 && "Fizz" || undefined,
buzz = i % 5 === 0 && "Buzz" || undefined,
num = fizz || buzz ? undefined : i;
return _.join([fizz,buzz,num], " ");
}), ", ");
>>
>>59332876
PHP is a server side scripting language, meaning you need PHP installed along with a web server to route PHP pages to be executed and rendered in to HTML code.

Look in to WAMP, MAMP, and XAMPP. They're easy ways to get in to setting up web servers on your PC
>>
File: image.gif (61KB, 410x296px) Image search: [Google]
image.gif
61KB, 410x296px
>>59333201
>_ is not defined
>>
>>59333297
lodash, here's a pen
http://codepen.io/Cameron64/pen/KWWRMv
>>
>>59333297
I'm pretty sure it's the underscore library
>>
>>59333287
I am in a class with a public FTP client which we upload our work on, our teachers website uses php and is on the same server so i'm just going to assume it's going to work like his site but it doesn't.

My next class is next tuesday but i think this is fun and want to advance faster t b h
>>
File: image.png (83KB, 399x287px) Image search: [Google]
image.png
83KB, 399x287px
>>59333312
>superceded ajs 1
>>
>>59333399
>superceded ajs 1
wat
>>
>>59332876
.html is html file, .php is html file that supports php tags.
Thread posts: 324
Thread images: 27


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