>How to get started youtu.be/pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice" youtu.be/zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.
Any of you built a SaaS and made decent money out of it?
Ryan Sanders
JS frameworks are the popular memes these days, right? How is React going to fare against Angular 2? I want to learn one of these to get a nice cushy overpaid job.
const everywhere currying, composition, etc. ecmascript 2017 got gud records and tuples as well
John Cox
On top of that, what's the popular back-end frameworks? I've heard ember is popular
Charles Ross
When there are widespread horrors such as PHP and when you know how bad committee designs can get, I'm amazed at how javascript has evolved. Sure it could have been scheme instead, but it could have been far, far worse.
Wyatt Hill
ember is frontend like angular/react.
for backend pick a language you like. I personally have been using asp.net for multiple years now and node.js every now and then.
Jace Powell
How do I learn CSS properly?
Everything I design is absolutely horrendous looking, but I'm not sure where I can learn how to design websites well.
Jordan Flores
Everyone uses express, and many people backbone.
Isaiah Gomez
I feel doing my master thesis is such a waste of time. I just want to work on my websites and make them a success.
bleh
Brayden Long
look at template sites and rebuild some.
Hunter Russell
Fuck I meant Express
Ryder Scott
>ecmascript 2017 got gud records and tuples as well What is this about?
Zachary Foster
Knowing CCS well makes you able to implement almost any design idea. Now, if the said ideas are bad, CSS won't help, you can't just put html { design: "good-looking" } in your stylesheets.
Joseph Bailey
The next tech trillionaire.
Christian Martin
Daily Go shilling post. If you aren't using Go for your next big backend project you don't know shit about webdev(or are happy with the alternatives).
Hey guys, 30 replies in and not a single noob PHP question.
These threads are getting better.
Aiden Smith
Can someone suggest a good intro to database design book?
Brody Rodriguez
Can I get a job as a Jr just knowing HTML, CSS and JS/jQuery? Or do I need to master meme frameworks and libraries as well?
Oliver Peterson
You'd think the JS-cucks in charge of the language would ask "why implement this" before implementing something.
Luis Diaz
If you know JS than you know the frameworks, sans routing, layouts, etc. Frameworks aren't their own language.
Anthony Perry
Most companies don't take frontend devs seriously (= slave pay).
Cooper Bailey
I need to create pdf from form data, with fixed margins, some for POS printers some with gutter margins.
What do you recommend? site is php and js but is on a VPS centos so any language is ok.
also is it posible to force the browser to print this pdf or does the user have to download it first?
Dominic Lopez
php wkhtmltopdf
It's a wrapper for a html to pdf c library. I've found it handles css way better than dompdf. Less resources too. You can stream the pdf to the browser with the correct content header.
Jayden Thomas
What's the best style of making PHP websites without using any heavy frameworks?
Brody Torres
>also is it posible to force the browser to print this pdf or does the user have to download it first?
Yes, use some server side script to call a cups print job. for example in php you could use execute('lpr ');
Ian Clark
Yeah, but It's not a bad place to start a career
Jeremiah Gray
is it truethat webdevs cant fizzbuzz or is dpt memeing?
Jeremiah Adams
How much do you make hourly? Also location and job.
$40, Midwest, Full stack + React
Jaxson Jenkins
On second thought, I wouldn't think you'd want to generate a pdf just to print; waste of resources. Why not format a html template and call the print dialog from javascript? You can't just command a print to the printer either, they'll have to press the print button.
Dylan Reyes
Can anyone troubleshoot a silly error, I tried to provide as much info as possible in the attached image
Connor Wilson
OOps, here it is
Austin Richardson
just spitballing cause im not really a webdev, have you tried making sure its not case insensitive, also are you sure post methods work without a action redirection?
Lucas Smith
I am happy with Phoenix framework
Parker Kelly
...
Kevin Diaz
none
James Wood
htaccess?
Michael Sanchez
that would be great, but fixed margins doesn't work from the browser, each user would have to set the page size on firefox or chrome, as far I know there is no way to disable page number or printing the link this has to be done manually
thanks!
Andrew Garcia
Double form
Blake Barnes
Of course webdevs can fizzbuzz, asshole.
let fizzBuzz = require('fizz-buzz');
fizzBuzz.doFizzBuzz(100, (err, item) => { // do fizzbuzz to 100 if (err) { console.error(err); } else { console.log(item); } });
Charles Parker
any framework for user management? drupal is too big for this mysql table results project
Oliver Adams
>
oi m8 u takin' a piss?
James Kelly
I have no idea where that came from ha
Joseph Phillips
ur mom
Aaron Howard
Laravel 5.2 has good user ACL out of the box
Colton Reyes
I need advice /wdg/. I'm making a website right now for car parts. For a single part there are multiple years for the same model. How do I even put that in the database? Do I have to make a separate table for years?
Kayden Diaz
reported
Luis Watson
Yeah, unless you want to serialize the years to json or that awful PHP format, or a comma separated list.
That makes it rather difficult to actually query for the data, though ("give me all the parts from *this* year"). Some databases have native support for json data fields nowadays which actually do allow you to query for this data and some databases basically are json only (NoSQL). You're fucked when you try to use that with any ORM, though.
Eli Brooks
> const add = x => y => x + y undefined > add(2) function add/ add(2)(3) 5
What is add/
Alexander Nelson
but npm is great
Leo Perry
Just add a year field in your product table?
Ethan Anderson
nosql doesn't have this problem
how about a comma separated list of years in a string
Parker Walker
Let's say I have a list on a PHP page, each element of which has a button that changes the color of the items' text in the list.
I want to implement this with AJAX.
Do I first render the list in PHP then manually set the color of each element in the callback function or do I get the list as JSON whene I first get on the page and render it in JS, and have the callback function retreive the list again with the updated colors every time?
Jayden Brooks
Well shit, I guess I'll see if I can do that then. Converting this from excel will be a pain in the ass. I like the comma separated list idea though. Would there be huge drawbacks about using that instead?
I have no idea how to use nosql, Sounds cool but I feel like it'd take even more time to learn it.
Asher Rivera
>That makes it rather difficult to actually query for the data, though ("give me all the parts from *this* year").
If only there were some kind of "structured query language" which made that possible
Luke Ramirez
Table One -- Cars ID, Manufacture, Model, Year
Table Two -- Parts ID, Name
Table Three Pivot table -- car_part Car_ID, Part_ID
Really simple, don't listen to NoSQL hipsters. Eloquent orm would make this extremely easy to manage.
You could even make another pivot for manufactures.
Ethan Murphy
The second option should allow you to setup polling so that if you are pulling the list from a db or something, then the list would be able to be updated without refreshing the page.
Thomas Reed
the second function.
const add = x => y => x + y is equal to function add(x) { return function(y) { return x + y; } }
so calling add() returns the second function.
Bentley Foster
I would take PHP question any time over node shill or total n00bs who want to become professionals in a week.
Jackson Scott
This. Also next time use pastebin or something.
Nathaniel Adams
right but where does the name come from
Matthew White
Thanks, I really appreciate the input. I'll do that and put a year column. It didn't occur to me that a separated list for a column was a possibility.
Wyatt Martinez
Knew to HTML/CSS stuff. Is understanding how to center things something everyone goes through. Seems like I can never figure out exactly how do do it. I just made this as a test to then start applying some jQuery stuff to, but I can't get the navbar to be properly centered under the title.
Is it possible to create a servlet like in Java using PHP to react to POST requests by updating the color, getting a list and passing it to the page without reloading it and adding another entry in the browser history?
Grayson Hill
it's just what the firefox console tells you. arrow functions are anonymous and don't have a name. chrome for example returns >add() function y => x + y
>GET request to controller >get list of items >render the array of items with buttons next to each with PHP >press button >POST to same controller >change color, get list of items again >render them with PHP again
All that without adding extra pages to the browser history.
Carson Jackson
Yup, still AJAX
Adrian Martinez
>mfw Django
Brandon Rogers
Is that seriously a trap? Wtf.
Charles Baker
It's strawman stage, so not even likely to make it in yet.
Daniel Kelly
why?
Evan Reed
Anyone familiar with knockout + require? I'm using require to break the viewmodel in components, each component with its own viewmodel. The problem is that the viewmodel gets recreated every time. I need it to only initialize once.
Jaxon Williams
Anyone went from web dev to programming? I'm just thinking about that, I'd like to know to what field is the transition easiest. E.g. mobile applications, game dev, or some more scientific, like machine learning.
Austin Morgan
I transitioned from gamedev to general application dev to webdev. I'd say gamedev is the most fun
Michael Fisher
Yeah, before I even started programming the game dev was a field that interested me the most. I then stopped caring much about it but a week ago I made some simple pong game in canvas and at thar point I realized how much fun it actually is.
Chase Hall
how do i sweet talk a reciter I just got a call from one and am going to call back.
Jeremiah Ward
yes
Asher Perez
How the FUCK do I make non-retarded scatter plots with c3js?? All the examples assume every "column" has the same x values. I need to give it a list of objects, tell it to color points based on a value of the object, and move the points based on the given axis values.
Henry Perry
Fuck this gay shit I'm going back to D3
Joshua Cook
Anyone know how I should write an input box in a form for a POST HTTP request?
and it gives me beneath it
Austin White
What was moot thinking with this coloring? Can barely see the purple
What tool are you using to parse the {{ }}?
Jackson Campbell
>> Python (Flask)
Jack Morris
Alright, just curious. Anyways, weird, I can't say I know much HTML, but isn't input type="text" supposed to be sufficient for creating an input box?