[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: 314
Thread images: 30

File: 1487701743799.png (731KB, 824x553px) Image search: [Google]
1487701743799.png
731KB, 824x553px
>Discord
https://discord.gg/wdg

>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

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
http://pastebin.com/pDT82mQS
http://pastebin.com/AL6j7GEE

>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
>>
>>59413636
first
>>
>>59413652
secondo
>>
>>59413694
turd
>>
I made a webdev channel send help

https://www.youtube.com/channel/UCFI15Elhx6bkvwSwdlU0cCQ
>>
>>59413636
Learned some cool shit about makin' music the other day.

(function(){
var i = 0;
var audIntv = setInterval(function(){
(function InitSampleSound(fr, du){
var _p = {};
_p.audioCtx = new AudioContext();
_p.oscillator = _p.audioCtx.createOscillator();
_p.gainNode = _p.audioCtx.createGain();
_p.oscillator.connect(_p.gainNode);
_p.gainNode.connect(_p.audioCtx.destination);
_p.oscillator.type = 'sine';
_p.playSound = function playSound(f, d){
return new Promise(function(res, rej){
_p.oscillator.frequency.value = f;
_p.oscillator.start();
setTimeout(function(){
_p.oscillator.stop();
setTimeout(function(){ _p.audioCtx.close(); res(_p); }, 50);
}, d);
});
};
return _p.playSound(fr, du).then(function(){
return InitSampleSound;
});
})(600, 900).then(function(rfn){ return rfn(800, 900); }).then(function(rfn){ return rfn(600, 900); }).then(function(){ i++; if (i >= 4){ clearInterval(audIntv); } });
}, 3300);
})();


Probably going to get in trouble, because i'm not supposed to be coding at work. But I barely have any free time at home, so I always end up writing at least a little code, and getting in trouble.

Still. Learned about the Web Audio API. So shit was worth it.
>>
File: frankchurch.jpg (914KB, 2717x2448px) Image search: [Google]
frankchurch.jpg
914KB, 2717x2448px
>got laid off
>5 months of runway before living off credit cards
>previously finished FCC front end cert about a year ago

If I spent 8 hours a day learning and building, would 4 months be enough to become an employable js developer?
>>
>>59414515
You should be able to just copypasta that code into the js console on any page (including this thread) and have a genuine justWerks™ Experience.
>>
>>59413636
>Useful Youtube Videos
https://www.youtube.com/watch?v=JEpY9C49sqU
>>
>>59414515
>>59414579
>boo wee boo
what in the? I didn't know you could make speakers play with js!
>>
>>59414574
yes, with half that exp
>>
>>59414515
>Still. Learned about the Web Audio API. So shit was worth it.
It isn't even final yet. Hell, spatial audio is buggy as fuck.
>>
File: webdev2.png (4KB, 445x88px) Image search: [Google]
webdev2.png
4KB, 445x88px
How do I make $u equal to the query of pages whose id are equal to data? (there's only one page since id is unique and incremental)

Let's say data is 1. That means $u should return all pages whose id is 1. And $article should then be equal to that single page.
>>
>>59414756
Apparently so. I can't seem to find it anymore, but on a different day I remember reading a whole thing about this dude basically being able to define his own waveforms using the trigonometric equations, then sending the "samples" to an html5 audio element, and basically playing the wave he just created.

Reminded me of LabView kind of.

He also had a full spectral analyser based on a bunch of stuff I don't understand (yet) like FFT. He did all of this in js.

It made me realize that with the way it keeps being expanded, js could soon be a power in the world of instrumentation. I mean, with everything else you can do in js, why not?
>>
>>59415233
I mean, it's one of the oldest languages. There's tons of libraries and support for it. Its market share has grown exponentially over the past decade. I'd say it's already a heavyweight in the world of instrumentation
>>
>>59415170
$dat = (isset($_GET['data']) ? $_GET['data'] : die("need data param"));
$lnk = new mysqli("127.0.0.1", "root", "", "MyDataBase");
$edat = $lnk->real_escape_string($dat); // if you forget to escape your inputs, hackers will destroy your life
$res = $lnk->query("SELECT * FROM pages WHERE `ID` = '$edat';");
$row = $res->fetch_object();
$article = $row->article;
header('Content-Type: application/json');
$out = (object) [
"article" => $article,
"otherData" => $row
];
echo(json_encode($out, JSON_PRETTY_PRINT));
>>
anyone has a job in web developing here? was it hard to get? how's the pay? and how are your hours?
>>
>>59415233
>It made me realize that with the way it keeps being expanded, js could soon be a power in the world of instrumentation. I mean, with everything else you can do in js, why not?
Lack of realtime performance, garbage browser APIs and limited IO - you won't have VST for your browser, even WebMIDI is a joke, inferior throughput, something that still matters in professional audio production. Unlike in games, there is exactly zero (0) tolerance for small hickups.
>>
What am I doing wrong here? I'm trying to translate the boolean to actual text, but it just says "passed" on every item, it says 1 and 0 just fine if I remove the if, ifelse part.
<?php while ($row = mysqli_fetch_array($dog_tests)) {?>
<table>
<tbody>
<tr>
<?php
if ($row['passed'] = null) {
$result = '';
}elseif ($row['passed'] = 0) {
$result = 'Failedt';
}elseif ($row['passed'] = 1) {
$result = 'Passed';
}
?>
<td><?php echo $result ?></td>
</tr>
</tbody>
</table>
<?php } ?>
>>
>>59416023
>$row['passed'] = 0
>$row['passed'] = 1
do you mean to be assigning? I think you mean double equals for equality check.
$row['passed'] == 0
$row['passed'] == 1
>>
>>59413841
Don't worry anon. Police are on their way
>>
why isnt this working lads?

$dir = "/images";
$files = scandir($dir);
print_r($files);
>>
>>59416246
ah shit that always gets me, thanks
>>
How good is MySQL/MariaDB? Is the convenience from it worth it?
>>
>>59416567
Use case wise I'm not very experienced with it, but hearing from people in my circle MySQL went to shit after the acquisition by oracle.
>>
>>59416609
>went to shit after the acquisition by oracle.
That's normal to happen for everything gets their jew claws on.
>>
>>59416378

anyone? i fucking hate PHP its cancer. I tested it by echoing /images/123.jpg into an image tag and it displayed the image. So i know i'm getting access to the server just fine. However for some reason i cant echo out each file name

seriously fuck PHP i did this in 2 seconds with JS....
>>
File: Image2.jpg (38KB, 360x640px) Image search: [Google]
Image2.jpg
38KB, 360x640px
How do I skip the first row when selecting everything from a table?
Isn't there a SKIP function or something like there's a LIMIT function?
>>
>>59417329
SELECT Id, OrderDate, CustomerId, TotalAmount
FROM [Order]
WHERE NOT (TotalAmount >= 50 AND TotalAmount <= 15000)
ORDER BY TotalAmount DESC
>>
>>59417329
idk, but off the top of my head.
while($row < $row.length + 1) {
echo row[i + 1];
i++;
}
>>
>>59414755
I don't get what's so hard to grasp about "This"
>>
>>59413636
Is there a specific language/framework that is focuses on security? Like what do banks use to prevent hacking? Would a meme like nodejs + express be secure?
>>
>>59417478
In react its kinda hard, in big applications
>>
So database management. MySQL/MariaDB sounds cool. Do I have to learn SQL to use it? Can't I use another backend language like python or java entirely to manage my database?
>>
>>59413636
Who here /postitnotes/ because too autistic to conceptualize how your javascript functions flow?
>>
File: 123.jpg (99KB, 884x731px) Image search: [Google]
123.jpg
99KB, 884x731px
>>59417766
>>
>>59417766

once you write them and know what they do its hard to forget. The toughest part for me is knowing where they are so i can get to them faster
>>
>>59417329
>[LIMIT {[offset,] row_count | row_count OFFSET offset}]
LIMIT does what you want already.
>>
>>59417742
ORMs exist for a lot of languages already.
But you really want to know what's going on behind them.
>>
>>59416378
>>59417155
/ is the root directory of your server, so unless you have a directory called images there and have permissions to read it it's not going to work.
>>
can i do something like require() from node js in raw javascript? im trying to call a worker function. I would just put it in there but theres a lot of other JS on the page which the worker loads each request and it slows my app down
>>
Is knowing jquery enough to be a front end? This job for one says they want html, css with responsive design and jquery. I know html and kinda css, not responsive design unless that's the resizing depending on browser window and don't know a js module? Not sure what they're called but I know how to do javascript for basic things
>>
>>59418710
no.
knowing css "kinda" isn't enough either.
90% of anyone mentioning responsive it means using css media queries, not JS.
>>
Whoever makes these threads should advertise in the old one, like a decent general.
Optionally link to the old thread in the body too.
>>
I think I'm having an issue with two way binding? here's the code

editComment(comment) {
let comments = this.state.data;
let currentIndex = comments.findIndex(item => {
return item._id == comment._id
});
comments.splice(currentIndex, 1, comment);
this.setState({
data: comments,
bgcolor: comment.color
});
this.fadeColor();
}

fadeColor() {
let animation = setInterval(() => {
if ((this.state.bgcolor[0] >= 255) && (this.state.bgcolor[1] >= 255) && (this.state.bgcolor[2] >= 255)) {
this.state.bgcolor = [255,255,255];
clearInterval(animation);
}
else {
let colors = this.state.bgcolor;
((colors[0] < 255) ? colors[0] = colors[0] + 6 : 255);
((colors[1] < 255) ? colors[1] = colors[1] + 6 : 255);
((colors[2] < 255) ? colors[2] = colors[2] + 6 : 255);
this.setState({
bgcolor: colors
});
}
}, 1);
}


edit comment is fired when the server sends a comment update. 'data' is the array of comment objects, 'bgcolor' is the color stripped out of the target comment to be edited. after state is updated, fadeColor is called to fade the color values to 255 over setInterval. each time the interval fires, the value increments then I set state for bgcolor to get the updated color to render to the page.

currently the page renders the color fade fine, but the issue is that the backgrounColor on the edited comment itself also fades to white, which isn't directly set anywhere. is there any two way binding here I'm not aware of?
>>
>>59419272
sorry this is in react
>>
>>59419272
>not using redux with react
Filthy pleb
>>
File: 1457317440183.png (208KB, 341x358px) Image search: [Google]
1457317440183.png
208KB, 341x358px
>>59413636
How do i get a job in backend web dev? I graduated and got a diploma in software engineering and have focused on web dev but no one wants to hire me.
>>
>>59419272
I recommend you decouple your controlling logic from the state of your components if for no other reason than the fact that you will be forced to cache some fo these values you are calculating on the fly every time you render.
>>
wow console.log is a disaster for working with large files. I thought the entire time something was fucked with my app because it was logging stuff so slow (im parsing some csv files). It's actually fast when i do what i want with the data in the DOM.....
>>
>>59419398
do you have a portfolio? build stuff
>>
>>59419492
I have a portfolio with two apps, one is a blogging system written in php using laravel framework, the other is a basic social media app written just in php.
>>
>>59419517
more apps. make some quick front end ones if you want, 2 just strikes people as a low number
>>
>>59419536
Maybe you are right. I will do that, any other tips? Do you have a job in backend?
>>
Alright how the fuck do I make a schema in mongo db?

So I'm scraping phrases from chat logs and then I store how many times the phrases have been used on a specific date.

Is this right?
var phrasecountSchema   = new Schema({
date: String,
phrases: [
{
phrase: String
times_used: Integer
}
]

});


Or do I omit the phrase object inside the array? But I want to specify what data there's about a phrase. HELP!
>>
>>59419681
>nosql
For what purpose?
>>
>>59419696
all that college debt just to learn out of date tech must really sting
>>
>>59419681
for mongoose 4.x
// app/models/example.js

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var MuhSchema = new Schema({
name: String,
comments: [{ body: String, date: Date }]
});

module.exports = mongoose.model('Schemaname', MuhSchema);
>>
>>59419681
use mongoose
>>
>>59419696
Because it solves high traffic distributed network problems without having to reinvent the wheel of a custom distributed data store and caching layers.
>>
>>59419922
I'm using mongoose.
>>
>>59414515
>all those nested anonymous functions
please don't
>>
Hello /wdg/. How would one make a webpage properly react to window resizing (As in prevent the void space below the background and properly have my images resize to compensate for the length/width loss.). I'm not all too knowledgeable in html or css because I just started learning, so sorry if the answer is obvious.
>>
im really fucking pissed off right now why the FUCK doesn't this line work:

document.getElementById("tracking-num").innerHTML = row.data[0][4];


in this code

Papa.parse("/tracking/track_ups_test.csv", {
worker: true,
fastMode: true,
download:true,
step: function(row) {
if (row.data[0][2] == ReplacementNumber && row.data[0][7] == "REPLACEMENTS")
{
alert(row.data[0][4]);
document.getElementById("tracking-num").innerHTML = row.data[0][4];
console.log(row.data[0][4]);
}
else
{
document.getElementById("tracking-num").innerHTML = "Not available.";
}
},
complete: function() {
console.log("Tracking file success! " + ReplacementNumber);
},
error: function(error) {
errorMessage("Tracking file error: " + error);
console.log(error);
}
});


The ALERT and CONSOLE LOG right before and after it work JUST FINE. WHY THE FUCK ISNT IT PUTTING IT IN MY DIV ELEMENT? GOD FJUCKING DAMNIT
>>
>>59420110
Materialize.
>>
I'm about to create a Dropwizard-esque framework for php. Would anybody like to collaborate?
>>
>>59420160

FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC FUCK FUCK FUCK FUC
>>
>>59419492
How do you build stuff if nobody hires you?
>>
>>59420365
What kind of question is that

open your favorite text editor and start typing
>>
>>59420365
>if ($row['passed'] = null) {
stuff != work stuff
>>
>>59420160

FUCK ING MOTHER FUCKER IT WORKS ON EVERY OTHER ID ELEMENT I HAVE ON MY PAGE WHAT THE UCK IS GOING ON IVE BEEN STUCK ON THIS ALL FUCKING DAY GOD FUCKING DAMNIT WHAT THE HELL FUCKING WASTING SO MUCH TIME
>>
>>59419681
>Alright how the fuck do I make a schema in mongo db?
https://codeforgeek.com/2014/07/node-sqlite-tutorial/
>>
>>59420160
>>59420318
>>59420594


HOLY FUCK I JUST FIGURED IT OUT

I NEEDED TO CALL parser.abort() to stop searching through the rows once I found a match. Im basically trying to imitate a query with JS, and i needed to be specific and tell the piece of shit Worker to stop what its doing when i say so.

I LITERALLY SPENT ALL FUCKING DAY TRYING TO FIGURE THAT OUT. But hey I learned something.

FUCK
>>
Any idea what features to but in a key gen (as in game, invite, coupon keys...) I have length, delimiters, upper/lower case, only numbers/only chars so far
>>
>>59420365
You build it for fun/experience. Employers look for people who like to do this shit in their spare time. Building something for a portfolio allows you to fuck around with shit that you normally wouldn't be able to in a work environment and show off what you know.

>>59420843
I'M FUCKING GLAD THAT FUCKING EVERYTHING TURNED OUT SO FUCKING WELL FOR YOU!
>>
>>59420266
Isn't there one already?
>>
>>59420175
Okay, thanks
>>
Hey there. Making a blog using PHP, sql and a PDO object (Kind of new, only made one site with all this). What would be the best way to be able to store HTML in a column of SQL, avoiding SQL injection and JS execution.

I've been reading up about PHP markdown, but I've also seen things about bind value (rather than bind params)? Any recommendations?
>>
need help with a simple react problem, im using react-saga but im sure u guys will understand its not really a framework problem


http://stackoverflow.com/questions/42822082/trying-to-turn-an-api-request-to-a-const-after-its-made-its-call

posted it on stackoverflow HALP HALP HALP!
>>
Can I learn backend on my own? I'm fine with frontend but that's easy and some of the code posted here looks indecipherable. What's the best way to learn the concepts (like routes seem to be constants between server-side languages)?

Did you follow guides? Do you still have guides open to this day when making webapps?
>>
I'm trying to echo a list of files in a directory on a mapped drive in PHP but having trouble. I'm connected to it just fine. However i've tried scandir(), readdir(), fopen(), etc and im not getting results. Any ideas?
>>
i'm really excited lads. i've delved into a php framework for the first time since laravel and im actually enjoying it. i'm not gonna say which framework it is because i know one of you pricks will give me reasons to dislike it but yay im having fun with it and learning at the same time XDDDD!
>>
>>59421474
Start by picking a backend language (PHP, Python, Ruby, NodeJS, Go, etc) and learning it, along with a framework for that language if you want. Learn how HTTP works if you don't already know. Find some tutorials to follow and also experiment on your own. Then, when you feel you're ready, try to make a few complete projects on your own.


also backend is easier than frontend when you get the hang of things imho.
>>
>>59413636
>I know HTML/CSS/JS + Bootstrap/jQuery

What should I build for my portfolio that will give employers boners?
>>
File: 53935693590.jpg (63KB, 490x497px) Image search: [Google]
53935693590.jpg
63KB, 490x497px
>>59421860
Learn PHP and SQL and build a messaging platform. That's what I did, got a junior PHP developer job starting a week from Monday.
>>
>>59422074
link it plz, i want to see how complicated it is like if its just text or you coded everything by scratch, i know it would be pretty easy for me, but i want to know if its worth learning php
>>
>>59420110
Media queries, CSS framework grids, flexbox...
>>
>>59422282
It's pretty basic desu. Do the codecademy PHP course and a few YouTube tutorials and you'll be up to speed.
>>
>>59415906
Not that hard to get, interned here and then interviewed after graduating. I make a bit over $80k. Hours vary...usually around 40 but I've also put in over 80 in a few rare cases.
>>
>>59413636
How hard is it to land job with only a portfolio and no internships or work experience?
>>
>>59422602
It took me a year and a half.
>>
My work is so god damn slow, we move at a turtle pace due to Microsoft fanboy-ism senior developer. I get paid to much to leave.

Does anyone here have any experience working part time for another company?
>>
How does a company that makes a website like this make software like it does?

Look at the "sample screen" and tell me what software they used to make that :)

http://www.supermenupos.com/
>>
>>59422720
java applets for website
java for their desktop apps
>>
>>59422716
I work for myself at night building my own cms as i go
>>
Question about best practice kind of stuff

I have a class that encapsulates unique data per client that is retrieved from an API call.
Would it be better to instantiate the object by passing that data in through the constructor or should the object itself make the call to get the data?
>>
>>59423526
Depends on your implementation and how you will use caching. Your (meme)framework determines best practice
>>
>>59423526
Object. Constructor shouldn't do anything.
>>
What would make a better twitter?

Other than real async feed loading.

Any competitor wouldn't be able to serve that amount of complex media at the start. Videos are expensive and so are pictures. Throwing that up without investors would get you in the hole real quick.
>>
I have a small project I was hosting on Heroku, but I recently incorporated some NLP capabilities which require ~500mb of data to be installed. Is there are a similar service to Heroku (git integration, ease of use etc.) that allows you to configure how much server storage you need? Heroku is max 300mb. I heard AWS Elastic Beanstalk is a decent alternative.
>>
>>59423614
Not using any special framework other than Express. Wasn't totally sure where I should go with caching until I got the basic implementation down...currently have an Elasticache but not really using it yet.

>>59423616
As in whoever's using the object should call a method in that object to tell it to retrieve the info? That's the way I was going so far.
>>
>>59423756
real time low quality voice chat. young people love retro shit make it like walkee talkies. increase static based on latency.
>>
>>59423756
Imagine you send a tweet to a special someone and it will arrive in 7 to 10 days. A special white drone shows up like the owl out of Harry Potter but it isnt bringing you a text message. Instead, it delivers a smell.

Do you realize the size of the marketplace in India?
>>
File: looavenue.jpg (213KB, 1100x619px) Image search: [Google]
looavenue.jpg
213KB, 1100x619px
>>59424131
>>
How long would one have to learn about web-development before they could be designing their own websites and shit that actually looked good?
>>
>>59424313
Full time for a few months and you will be good to go.
>>
>>59417742

SQL is really easy to pick up
>>
>>59422396
Did you have a degree? What was your history like?
>>
Best way to calculate balance here? Writing in REACT,

function SelectedExpenditures(props){

const { expenses } = props;

const expenseRows = expenses.map((expense,idx)=>(

<tr
key = {idx}
onClick={()=>props.onExpenseClick(idx)}
>
<td> {expense.date} </td>
<td> {expense.details} </td>
<td> {expense.debit} </td>
<td> {expense.credit} </td>
<td> {expense.balance} </td>
</tr>

))

return ( ...
>>
>>59423756
154 characters. 10% better than twitter, right off the bat. Boom.
>>
>>59423756
>What would make a better twitter?

nobody knows because people at twitter doesn't even know why twitter is even good and popular.
>>
>>59423808
A VPS gives you more freedom than pretty much any other service like that. If you don't know how to deploy a server it might not be considered easy to use, but it's really not hard and there are guides online.
>>
Anyone can tell me how to fix the fact that the :class="pourcClass" only apply to the % sign ?
I'm using vue.js


<div class="text-center" >
<strong><span>Total de success: {{totSucc}}</span></strong><br>
<strong><span> Sur {{totTest}} tests</span></strong><br>
<strong>Pourcentage de success: <span :class="pourcClass">{{pourcSuccess}} %</span></strong>
</div>



The function it's reffering to is good. I just don't get why it's the only the percentage sign that change its color.
>>
>>59427580
Nevermind, fixed it.
>>
I started a free HTML/CSS course on Udemy and the first quarter of the course has been teaching me how to copy paste bootstrap code. Kinda feels like cheating off the kid with good grades in class. Is this a standard thing to do in web dev?

Should I drop? Y/N
>>
>>59429137
Honestly, I'm two years in and copy and pasting bootstrap code is something I do daily. I really want my team and me to touch as little CSS as possible. It gets messy very quickly on a big project. Do continue the course, they seem to know what they're doing
>>
>>59413841

If you know composer make a composer video.

I can't understand the autoloading shit

there is like 5 different autoloaders.
>>
File: elsa glasses.png (394KB, 467x556px) Image search: [Google]
elsa glasses.png
394KB, 467x556px
How much do webdevs make?
>>
Literally how do I change styles on my facebook and twitter share buttons?

I can't even get them stay one under the other because it overwrites everything when it calls them from their servers.
>>
>>59429232
In Europe they make more than most regular devs.
>>
>>59429137
From what I've used of pure CSS, it mostly consists of trying to find one of myriad solutions to a problem that should really be self-evident yet only that one solution on that one obscure blogpost from 2013 works and in the end you just accept it because really you're just relieved that it worked and you can move on with your life.
>>
>>59429433

I have yet to read any book on css that makes sense of all of it.
>>
>>59429232
Depends on where you live. Here in Austin, a senior (5yrs exp, full stack) will pull like 120k, entry is like 60, and 2 years exp is like 80
>>
I'm stuck working under a senior that has rampant Microsoft fanboy-ism. He hasn't made a website in a decade and for some reason has his fingers in everything, including the new client we are building.

Example, front end (Material, Boostrap, Foundation, etc)

"Check what Microsoft uses and use that"

I get paid to much to leave, but I hate how this fanboy-ism is slowing us down.
>>
Is full on remote web dev possible?

Has anybody done it or tried it?

spending hours in traffic everyday is a gigantic waste of life
>>
>>59430336
Yes it is possible.

We have two full time remote senior developers and 2 full time remote QA. The entire team is pretty lax on working from home for the people near the office as well.

Just need to find a company that actually does it.
>>
>>59430266
I work for the number 1 Microsoft™ partner in the world for 2016 ™™™ and we use whatever we think is best. Right now we're using AngularJS, .NET mock back-end, bootstrap, LESS. We just wrapped up a project where we experimented using the MEAN stack, bootstrap, LESS.

So you can tell your boss that Microsoft™ uses whatever the job calls for.
>>
>>59429137
I felt the same way until someone told me that "it makes no sense to reinvent the wheel", your design is yours and that's what you should be focusing on. Don't waste time focusing on annoying shit like writing media queries, it's really nothing special to do. Reusing others people's code (and learning from it) is a huge part of programming, it's okay.

If you feel like you're not picking up anything though, just try Codecademy. Take a run through that and then create a couple of projects with w3schools at your side. Make sure to inspect a couple sites on something like siteinspire to see how they work and try to incorporate their animations and the like into your project. You won't learn if you only work with what you know.

Frameworks like Bootstrap and Materialize are something you learn by working with them and reading the documentation. I recommend Skeleton for a less "cheating" feeling, it's quite literally a skeleton that you build upon.
>>
File: 1482534153757.jpg (229KB, 627x720px) Image search: [Google]
1482534153757.jpg
229KB, 627x720px
>Trying out react
>Follow a sample tutorial
>Absolute barebone project with webpack
>creates bundle.js

>it's 1.92 MB

What the actual fuck.
>>
is it bad to use only one .js file? mine currently is 22KB
>>
>>59432489
I have had to work with multiple javascript files breaking upwards of 25,000 lines of code.

Please, use multiple files when and where possible.
>>
>>59432558

what about for performance is it better?
>>
wat do after learning js basics
someone pls hold my hand
>>
>>59432604

There are minification tools available to minify your source into a single small(er) file when deployed - but on development side you should keep it separated so you know where and what the fuck shit is.
>>
So with google disabling JS for tabs you dont have open, wont that destroy all sites that uses long polling for valid use? Lets say you have a page that uses long polling to update some stats. If you do some stuff in some other tabs, will you have to refresh the stats tab when you go back to it?

Or lets say you make an ajax call where you upload a gigantic excel file that will take a while to get parsed, so you open up a few other tabs to do some other work...will the ajax call just *die* while its still awaiting a response?

Wat
>>
>>59432558

when i tried some of my functions didnt work anymore and i was getting no reference errors in my debugger.....fek
>>
File: Untitled.jpg (475KB, 1920x1080px) Image search: [Google]
Untitled.jpg
475KB, 1920x1080px
Beginner here.
Anyone might know how I can make these tables all the same size and not cover each other ? Just like the first row.
>>
>>59433245
Are you using a grid system or just free balling?
>>
>>59433254
Nah no grid, it's just a loop that put a puts how much tables I'm supposed to have.
Should I cover all that with a grid ?
>>
>>59433327
Your elements look like they're spilling over the table they're in, can you post source?
>>
is there anyway to change to a different cursor or show a message with js when theres a request going on? or if im waiting for the server
>>
>>59433694
I'm using vue.js so all I'm doing there is creating a loop on an array (wich contains these grey and green cards) that'll create as much <div> (containing each cards) as long as the array length.


<div class="row">
<div v-if="team == null || environment == null" class="col-md-12 text-center">
Please select your team/environment in order to display the Dashboard
</div>
<div v-else>
<div class="sideMenu col-xs-1">
<div class="form-group">
<label>Change date</label>
<datepicker id="datepicker" :value="date" :monday-first="true" @selected="date = $event"></datepicker>
</div>
<hr/>
<div>
<label>Launch Suites</label>
<button id="fullSuiteLaunch" class="btn btn-primary">All</button>
<button v-for="testSuiteView in testSuiteViews"
:key="testSuiteView.name"
class="btn"
:class="suiteLaunchClass(testSuiteView)"
:disabled="testSuiteView.isRunning"
@click="runTestSuite(testSuiteView)">
<i class="fa fa-spinner fa-spin" v-if="testSuiteView.isRunning"></i>
{{testSuiteView.name}}
</button>
</div>
</div>

<div v-if="loading" class="col-xs-11">
<div class="loading">
<i class="fa fa-refresh fa-2x fa-spin" style="vertical-align: middle; margin-right: 10px;"></i> May take up to 30 seconds, depending on the amount of tests
</div>
</div>
<div v-else class="col-xs-11">
<div v-if="testSuiteViews.length == 0" class="col-xs-12 text-center">
No suites result found in database
</div>
<div v-else>
<dashboard-suite-card v-for="testSuiteView in testSuiteViews" key="testSuiteView.name" :data="testSuiteView"></dashboard-suite-card>
</div>
</div>
</div>
</div>

>>
File: question.png (110KB, 879x467px) Image search: [Google]
question.png
110KB, 879x467px
What is the best way to style this with flexbox?

I can think of some ways, but I haven't used flex before
>>
>>59433865
add a class to your body before doing the request. remove it again when it's done.
.loading { cursor: wait; }
>>
my god writing php yourself feels way better than using meme frameworks
>>
is it worth learning html5 canvas / webGL for simple web games, now that flash is almost dead. or is it a meme?
>>
>>59416567
>using anything but Oracle Database
Fucking poorfags
>>
File: nightman.png (554KB, 497x468px) Image search: [Google]
nightman.png
554KB, 497x468px
It it possible to to export a database I made in phpMyAdmin to MySQL Workbench?
I have to hand in a database diagram for a class soon and I don't have time to manually create it, it just has to be a screenshot of all the tables and shit.
>>
>>59435415
but anon, phpmyadmin is just a GUI for a mysql server like workbench is.
just connect to the same server with it.
>>
>>59435611
Oh, I didn't actually know, haven't used workbench much.
So now that I'm connected, how do I go about viewing the all the tables like this?
>>
>>59435727
database -> reverse engineer
>>
>>59435757
sweet, thanks my dude
>>
>>59435727
>>59435611
How do you connect to a database in phpMyAdmin?
I have my database on localhost with a port, a username and a password but I don't know where I should put them in phpMyAdmin so I can see my database there.
>>
So I have the opportunity to do an internship as a tester for a month and a half. Will this experience help me get a regular web developer (backend) job at all? I can either get the internship or just try to do some self studies for a month.
>>
File: 1466169325868.jpg (50KB, 599x563px) Image search: [Google]
1466169325868.jpg
50KB, 599x563px
>>59429232

2 year Fullstack + sysadmin spic here

Working for approx 650 Dollars a month. For comparison, i rent a medium sized 2 room apartment for 250 a month.

I could easily move to a better paying country, but i don't wanna leave my family behind.
>>
I have a performance review coming up.

I currently make $75K. Based on my job duties/experience I should be making at least 90k probably closer to 105k or more. I started this job on a low offer because I loved working at the place during school. Now I realize I should be making more and I'm also being forced to work a different location once a week which I hate.

It will be the first time I've had a proper review after 3 years on the job. What are the chances I get a 30k raise? Assuming 0, what is the minimum I should stick around for?
>>
>>59436292
what country? 650 is really not much at all, even for spic countries. You're doing a highly qualified job. Peru? Ecuador? Shit, in Argentina you would be making twice that, easily.
>>
>>59435845
bump
>>
>>59436292

Bring your spics with you.
>>
Say I want to record everything in a chatroom by sending the message to a PHP page to record in a mysql table.

Would it better better to:
A) send each message as they are taken. This would have requests sent to a PHP page at up to 100 times per second.
B) store 100 requests into an array and send that once full while storing the next hundred messages into a new array

Does it even matter? If I call a function with ajax 100 times a second does that matter at all? Will any data be lost?
>>
What does all this shit mean?

https://github.com/justintv/Twitch-API/blob/master/README.md

I'm trying to use jquery here to grab followers but I need to attach my client id. I have no idea how to do that and it's not documented.
>>
File: CMAOk-AWwAEjxbH.jpg (33KB, 575x556px) Image search: [Google]
CMAOk-AWwAEjxbH.jpg
33KB, 575x556px
>>59437976
>If I call a function with ajax 100 times a second does that matter at all?
>>
So...array.splice

myArray = ['face', 'butt', 'toe', 'ear', 'nose', 'teeth'];
array.splice(2, 3);

This would delete everything before toe, right?

I'm trying to do this in a while loop. If an item in an array meets a condition, then it and everything before it needs to be deleted.
>>
How to use javascript find to return an index?

WEW we slow in here tonight.
>>
>>59438174
Version 3 is soon to be deprecated, you should look into version 5. The docs for v5 have been moved to twitch's dev site. ( dev twitch tv / docs (won't let me link it because of spam))

The documentation does have examples for client-side and server-side workflows. you'll probably want to look for "Implicit Grant Flow" (client side). Once you get an OAuth token, you just append to to your requests, either as a header or as a URL parameter.
>>
>node
>dotnet core
>php7
Which one?
>>
>>59439644
I did find the implicit workflow and what headers to add somehow.

Any idea if v5 is still rate controlled poorly? The follower stream is so slow that in sodapoppins room the followers go faster than the allowed refresh at the 100 max limit.

drdisrespect is fine, he gets about 6 followers every 30 seconds, but I'm going to have to use the 'next' to query again to get 200 on sodapoppin.
>>
>>59431256
You need to set your environment variable to production to remove a lot of debug code from React. Set NODE_ENV=production before running webpack.
>>
>>59439362
["toe", "ear", "nose"]
= result

2 = is the index which to start changing the array
3 = are the elements to be removed

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
>>
>>59439754
I'm retarded, disregard. I was comparing followers from two different chatrooms. lel. I was so confused too. Anyways, if someone manages to get 200 followers in 30 seconds then it will still work now.

Until v5. No idea how they expect me to get the 'cursor' to pass when it's a bigass random looking int.
>>
>>59439362
This wouldn't delete the items before toe from your array `myArray`. Instead, it returns the items pulled from `myArray` and removes those very same items from `myArray`.
>>
>>59439709
Node unless you don't want a job
>>
>>59439947
The 2 and 3 in splice are generated through a foreach.

Luckily I discovered findIndex in glorious ES6.

I'm actually erasing everything AFTER the index, that was my mistake.

Now I just array.length = array.findIndex(myIndex)
>>
File: followercount.png (15KB, 255x344px) Image search: [Google]
followercount.png
15KB, 255x344px
Neato.

btw, if you aren't using greenshot, I recommend greenshot.
>>
>>59439559
You would use array.findIndex(function) to return the object's position in an array:
>function allFuck(element) { return element === 'fuck'}
>['4chan','fuck','what'].findIndex(allFuck)
>>
>>59440037
I discovered that because based javascript bro got onto me the other night for not being ES6.
>>
Currying is the shit.
>>
>>59440007
Greenshot -> save to clipboard -> ctrl+v on reply window is god tier
>>
>>59440572
>>
>>59440572
:*******(
>>
in android can "heads-up" notifications occur when the app is in the background or do you need to push notifications for that?

shits confusing yo
>>
COMPLEX ISSUE ALERT. PROCEED WITH CAUTION.

1 page - always loaded and does stuff, keeps track of things automagically
2 page - only loads eventually in a different browser window.

PROBLEM: I need page 1 to know when page 2 loads. Why? So page 1 can send shit to a PHP page and page 2 can read it OR page 1 can send page 2 stuff directly(this would be ideal).

Any way to do this?
>>
>>59440729
Insufficient information for an answer.
>>
File: file.png (326KB, 1884x973px) Image search: [Google]
file.png
326KB, 1884x973px
>upgrade project to webpack 2
>run webpack with -p flag
>bundle files literally double in size
>vendor bundle (literally just react, redux, react-router) is 3.4MB under production
why
>>
>>59440795
That's plenty of information, my dude.

page 1 is building a big ass array in its own browser.

page 2 will tell page 1 "Hey bitch, I'm loaded" when it's opened in a brand new browser window possibly hours after page 1 was loaded.

Page 1, upon hearing this, will either:
a) if possible, send the big ass array to page 2
b) if not possible, store the big ass array in a db through a PHP script so that page 2 can access it.

At that point, page 1 restarts building a new big ass array while page 2 is relaxing with the data it has.

I need to know two things. If it's possible and how it's possible.
>>
>>59440853
It's possible. Although if it is a giant array in a browser it will be limited by the client's machine.

You could use websockets to transfer the array back to the server, or you could POST it in chunks.

Displaying the array on another page would be very simple.
>>
>>59440853
ajax
>>
>>59441070
Yeah, I have to.

Things like this is how you know the Internet isn't "there" yet.

When you can async between two client windows then you know we're there. The vulnerabilities though...
>>
is it bad practice to have an async function call another async function?
>>
I'm making a simple webshop. Should I generate the tables with the products with PHP or Javascript?
>>
>>59443045
You should install Wordpress and Woocommerce
>>
>>59443132
I know, but I want to learn php/js.
>>
>>59441325
no your architecture is just shit dude
>>
>>59437976
WebSockets
OR
Use the array method. You do NOT want to be making 100 ajax requests a second.

Even if your server has amazingly phenomenal performance and response time, you still don't want to ajax more than once every 300 ms or so. That's about 3 ajax requests per second.

Each ajax request involves sending HTTP Request Headers, receiving HTTP Response Headers, and then there's the actual sending/receiving of payload data.

By keeping everything in an array, and only sending the array to the server once you hit 100 messages or so, you cut down on the bloat. The headers are being sent once every 100 messages, instead of once per message.
That's a lot of data savings.

But better yet, instead of sending the messages every time the queue hits 100, you could just have a "refreshCycle" that triggers every 10 seconds or so, and sends all the messages that have occurred since the last refresh cycle.

Again, this is assuming that this is merely a secondary logging module, that's keeping a copy of chatroom activity.

If you actually need to power the chatroom (facilitate the transfer of messages between 2 clients), then that's a whole different thing. In that case, I'd say trigger an ajax every time a client sends a message. (regardless of timing; besides, they're not going to type THAT fast)
And i'd have an ajax triggering every 400 to 800 ms to check for received messages.

I'm assuming your server is modern and the performance is good, and that most ajax requests (for small data) can be fulfilled within 90 to 250 ms.
>>
Anyone tried the new codepen projects ide thingy?

How is it?
>>
>>59421388
You're overlooking a few things:
>yield resolves promises
>response.toJson() is also a promise

In the context of generators/sagas, what you want to be doing is something like this:

 
try{
const response = yield fetch(...)
if(response.ok) {
const okJson = yield response.toJson()
}else {
throw yield response.toJson() // if your api returns a body on errors ; whatever you want otherwise
}

} catch (e) {
// handle throw and toJson failing (ie ok response with bad json)
}
>>
what Nosql db does everyone use aside from mongo which apparently gets hacked like crazy
>>
Why the fuck would anyone write fallbacks? 99% of the time the fallback works the same as the new flexbox vertical center shit you are trying to do so just use the fucking fallback instead of complicating shit just to use new shiny features.

The only case I can see is for something like an svg where instead of animating, you would just have a static image. But there is no point in it do the same exact thing.
>>
Can you store an array or list of strings in a database?

I'm working on a blog and I have a set number of tags.

Here's an example list of tags:

technology
gaming
youtube
movies
sports

Now let's say I add an article to my article database and I tag the article with the tags "youtube" and "sports".

In pseudocode, the new article would be added to the database as something like this:

INSERT INTO `articles` (`id`, `article_title`, 'article_tags`) VALUES (1, 'Sport Channels on Youtube', 'youtube, sports.');
>>
>>59445156
You'd have a table for categories, a table for your articles and an additional table that links the categories to the articles so that many articles can have many categories and vice versa. In other words; a many to many relationship.
>>
>>59445452
Ohhhh okay, thanks. That makes perfect sense!
>>
>>59436897
absolute 0. Have you gotten a raise in the past 3 years? You're going to have to change jobs to get what you're asking for guaranteed
>>
>>59441630
No, not at all. The only time I would say otherwise would be if you were waiting on the response of the first asyn function to call the second one {when you didn't need to and could just call them at the same time to begin with}
>>
>>59445452
Sorry, I was thinking of ways to implement this and this is the only way I can think of:

>tags database
tag_id
tag_name

tag_name can be equal to:

1. technology
2. gaming
3. youtube
4. movies
5. sports

>article_tags database
article_id
hasTechnologyTag
hasGamingTag
hasYoutubeTag
hasMoviesTag
hasSportsTag

each of those has_tags is a boolean

is this the correct way of going about implementing this?
>>
>>59439960
I have a real problem with node.js, how to build a very secure website?
The frameworks like symfony, asp.net core mvc, laravel or django have powerful and sometimes completely transparent (don't have to write a single line of code) security, it seems hard to protect node based websites.
>>
can Node query a SQLite database?
>>
<?php
$max_page_num = 1;
$q = "SELECT MAX(id) FROM pages";
$r = mysqli_query($dbc, $q);
$max_page_num = $r;
echo $max_page_num;
?>


I'm trying to get the highest id value from a database called pages. The highest valued id is 5 (there are five pages) and I'm trying to set a variable $max_page_num to equal 5. Then print out the variable, so that 5 appears on screen. I can't seem to figure it out, so here's some pseudocode showing the incorrect route I took.
>>
>>59445983

Please use PDO, desu
http://php.net/manual/en/pdo.query.php
>>
>>59443369
Cool.

I'm loading into an array and sending that array through ajax once per minute.

I need to get in on this websocket thing.
>>
>>59445983
Okay I figured it out but I feel like it's such a stupid way of doing something that should be simple.

<?php
$max_page_num = 1;
$q = "SELECT * FROM pages ORDER BY id DESC LIMIT 1";
$r = mysqli_query($dbc, $q);
$row = mysqli_fetch_array($r);
$max_page_num = $row["id"];
echo $max_page_num;
?>
>>
>>59443422
well I just spun it up. It's still pretty beta features-wise, but the real value offering with it is portability and low barriers to start-up. You can just send a link to an entire project over the internet and you and another person can collaborate and edit the project at the same time. Version control becomes pretty obsolete. I was able to get a hello world going in just a couple minutes, so nothing too complicated. Setup for something like LESS or TS is, well, there is none. You just create a .less or .ts file and it just compiles it and it's great.
>>
File: 1357674459424.jpg (886B, 126x126px) Image search: [Google]
1357674459424.jpg
886B, 126x126px
>>59445983
>>59446053
>2011+6
>still using mysqli instead of PDO
>>
>>59446053

dude

i just said >>59446025
>>
>>59445811
The article_tags table would have two columns: article_id and tag_id.

So it'd look like this:

Tags table:
(ID, name)
1, technology
2, gaming
3, YouTube

Article tags table
(Article ID, tag ID)
1, 1 - article 1 has the tag "technology"
1, 2 - article 1 has the tag "gaming"
1, 3 - article 1 has the tag "YouTube"
2, 1 - article 2 has the tag "technology"

You'd also need to make both of those columns in the table a composite key meaning that an article can only have one instance of a specific tag. (i.e article 1 shouldn't have two instances of a single tag)
>>
Any book/tutorial recommendations for ecommerce security?

I know html, css, js, php and a littel mysql but I'm shit scared of doing any ecommerce
>>
>>59446585

for ecommerce youre pretty much stuck with using frameworks and other software thats been a work in progress for years. The best ones usually cost. But yea if youre thinking of writing your own ecommerce platform from scratch, good luck!
>>
>>59446677
I'm ok using frameworks, but even then I get kind of scared of not implementing them well enough.

Any opinions on magento or woocommerce?
>>
>>59446734
Check out Atripe. I'm building a billing system for a SaaS app atm using it on Laravel and I'm so glad I'm not working with PayPal or Worldpay or any of that shit.

I've worked with both Magento and Wordpress and can only tell you they're both painful spaghetti messes.
>>
is it better to go

function a()
async function x()
async function y()
async function z()

or

function a()
async function x()

async function x() {
//calls other async functions
}
>>
Anyone tried Elm? Looks fun
>>
What text editor does/wdg/ use? I'm currently using Sublime Text registered with the license an anon posted last thread.

How does/wdg/ design their sites visually? Hire a designer? Templates? I've been told my sites look kind of clunky and to use Bootstrap but I'm not sure how that'd fix the problem of where to put things, what color and size they should be, etc

How important is a CSS framework anyhow? I'm more than comfortable with CSS and don't particularly see a use for it other than being a shortcut or quick CSS reset
>>
>>59447595
Current setup:
>vim
>bootstrap
>sass
>paletton.com
>artist buddy
>>
Hello, anons
I am going to make some WordPress sites for me and friends and I was looking for a good shared host. I dont have any experience with hosting, so I was looking for a host that meets my demands. I am starting with at least 5 different websites, each having ~50 visits a day. Let's Encrypt is a must-have for me.
The ones that I think would be fit is 1984host or SiteGround.

https://1984hosting.com/
https://www.siteground.com/
Any opinions?
>>
>>59447676

>web devv'ing in VIM

lel
>>
why the fuck did i parse my csv files with javascript on the client side instead of my php on server side?

>tfw fell for the .js meme
>>
>>59447218
you could also put them into an array and execute them all that way
>>
>>59447595
Bootstrap helps to:
1. have repeatable patterns that you can recognize and repeat at a glance.
2. easily make your site mobile friendly without having to write tedious media queries.
3. make sure that all of your paddings and margins all line up and are accounted for at every screen size.
4. make global changes to css easy (for example colors)
5. other people can jump into your project and more easily write code for it
6. make sure your site looks the same on all browsers (all exceptions are already factored in)
7. make your site accessible to screen readers and other niche things (without thinking much about it
8. have complex things like photo sliders without having to build them yourself. and they're already bug free so it will never break
>>
>looking for a simple library to do Angular-style dependency-injected function invocations given a simple object-like context
>every library I can find does A LOT more than what I need and ends up being needlessly complicated to use
I guess I'll just take the code from Angular's injector and adapt it to my need
>>
when i json_encode a csv file it returns the data but just in quotes. There's no {} around the data

what went wrong?
>>
>>59449086
what lang?
>>
>>59449086
http://stackoverflow.com/questions/28118101/convert-csv-to-json-using-php
>>
>>59449477

php

i figured it out tho...i needed to put it in a "normal" array before parsing it since it was an array that was pointing to an fopen() function
>>
for my express node app, my http server is set in server.js, in api.js I have the api broken out, which is referenced in server.js with express.Router. api.js emits some things with socket.io, so I have another socket.js file broken out from that. so the require chain goes: server.js require api.js, api.js require socket.js. I need to do "var io = require('socket.io')(server);" in socket.js. How do I structure this? Do I require socket.js in server.js and attach it to server there?
>>
File: Reeeeeeeeeeeeeeeeeeeeeeee.png (303KB, 900x900px) Image search: [Google]
Reeeeeeeeeeeeeeeeeeeeeeee.png
303KB, 900x900px
I HATE PHP AND MYSQL SO FUCKING MUCH REEEEEEEEEEEEEEEEEEEEEEEEE
>>
>>59450820
maybe you're just an idiot.
>>
What editor do you guys use for html? I'm using notepad but the lack of colors and pretty spacing is slowing my progress
>>
>>59450981
You're editing in notepad? poor guy lol
get just a standard IDE
>>
>>59450981
notepad++ for quick edits, visual studio generally unless there's a language it doesn't support
>>
>>59450981
notepad2-mod for single file editing, vscode for larger projects.
>>
>>59450981
Notepad++ on Windows
Atom on Linux
>>
Can we split these threads up into "Webdev" and "Unemployed + Newbie webdev" please?
>>
File: 1428441238195.jpg (246KB, 800x884px) Image search: [Google]
1428441238195.jpg
246KB, 800x884px
>>59451180
>not being an online memetrepeneur
>>
How do I auto indent html files on Notepad++?
>>
Should I be using bindActionCreators in map dispatch to props ? Or should I always dispatch actions in my action creators.
>>
>>59452047
the later
>>
Question about terms of service.

First off, how do I add ToS to my website? Do I just type it out myself or can I copy a template off of google or some other site?

Secondly, is there anything that I can't add to the ToS?
>>
>>59418710
Work on your English, Pajeet. After you learn to type a sentence you will be ready to learn CSS.
>>
>>59452415
consult a lawyer
>>
>>59452509
how much would that cost me

also do i need to consult a lawyer to copyright my company / website's name and logo?
>>
>>59452530
https://www.uspto.gov/trademarks-getting-started/trademark-basics
>>
>>59419517
You need more stuff. You probably aren't half-assed, but two projects in a portfolio merits the title Unmotivated: How I Turned My Degree into Nothing.
>>
>>59420110
YouTube search: responsive website design
>>
>>59429137
Keep going.
>>
>>59432615
Learn how to more advanced is stuff. Then learn query. Then php and mySQL
>>
>>59435870
Take the internship and give them your best effort.
>>
>>59436897
Time to find a new job
>>
What service should I use to buy a domain name?
>>
>>59452822
anything but namecheap, they are a bunch of liars calling others shit to get you to buy their stuff instead.
godaddy is cancer too.
>>
>>59452822
>>59452850

Doesn't amazon have a domain and/or server service? That's that one I was planning on using. Google has a domain service as well.
>>
>>59452822
I use Gandi for my own email domain, because two step verification and saving old dns records. But I've found their payment and whois update system to be a bit buggy and their support is slow.
Namecheap is great overall. You can directly chat with a helpdesk. And it just werks. I use them for my websites.
Dynadot works like shit. I wouldn't recommend it to anyone.
GoDaddy is the home to pretty much all domain theft scandals. I fear someone who works there keeps migrating valueable domains away.

But i've found local (Dutch) registrars like TransIP to be a lot better in all respects. Automatic DNSSEC signing. Email responses within an hour. But they have no whois protection (because .nl doesn't require it).
>>
>>59452976
>>59452880
>>59452850
I think I'll go with Namecheap. Amazon's service is called Route 53 but their websites makes it sound like you HAVE to use AWS if you use Route 53.
>>
>>59453240
https://community.letsencrypt.org/t/what-namecheap-is-saying-about-letsencrypt-from-a-support-blog/29415
>>
>>59453266
Then which one should I use? I'd rather not Godaddy because of theft and Namecheap doesn't look good either. Gandi seems alright but I'd rather use one based in the US.
>>
>>59445978
one of literally thousands of packages that do just that: https://github.com/mapbox/node-sqlite3
>>
File: 1480110978543.png (9KB, 446x399px) Image search: [Google]
1480110978543.png
9KB, 446x399px
>declare global val
>in function assign to that global a new html element
>assign it attributes
>try to append it as a child to a container which calls this function onload
>it never gets added, no content no element.
>printing both the global and window."global" gives me a httpElementObject

Is this a common problem? I've kept things in mind like not using anything other than declaration outside of functions and keeping in mind parts of the DOM won't be loaded yet.

Any good articles on understanding how the html DOM and js work together?
>>
>have function 1
>have function 2 inside function 1
>can't call function 1

why?
>>
>>59453881

code?
>>
>>59453912
I'm retarded. Last time I did timeouts was in the 90s

Having () on the function was completely ok in those days. NOT ANYMORE
>>
Aaaand I broke everything.

Sending api requests in an infinite loop. Rip me.
>>
Redpill me on bower and gulp
>>
>>59454734
No
>>
>>59454734
Hipster """tools"""
>>
>>59454238

ST3
>>
>>59454801
>implying bower isn't better than downloading and extracting a zip
>>
>>59454790
>>59454801
What are some non-hipster tools? React?
>>
>>59454830
Even when my projects have "dependencies" it's never so much that I need something like bower to manage them. Am I doing something wrong or are they? Because if you need a package manager for every project then I think something's wrong.
>>
File: 1311728625625.png (47KB, 604x453px) Image search: [Google]
1311728625625.png
47KB, 604x453px
>>59454879
Vue.js
Laravel
MongoDB
Atom
>>
>>59454900
^
>>
>>59454900
>>59454929
Read the docs, brainlets.
>>
>>59454912
Yes
No
No
No
>>
Shit....it goes from working properly to not being able to find the fucking follower in the array. NO!
>>
File: 649262.png (3MB, 1918x1078px) Image search: [Google]
649262.png
3MB, 1918x1078px
>>59454941
>Read
what did he mean by that?
>>
File: blade_runner.jpg (401KB, 1920x1088px) Image search: [Google]
blade_runner.jpg
401KB, 1920x1088px
>>59455496
Like skimming, but srsly
>>
<p id='showCD'></p>

<script>
var i = 0;
foo()
function foo() {
i = i + 1;
j = 3;
}
document.getElementById("showCD").innerHTML= j;
</script>

How come I can call j from the outside of the function? Is this a javascript thing where you can call function variables from the outside?
>>
File: cover.png (159KB, 426x552px) Image search: [Google]
cover.png
159KB, 426x552px
Is anyone also reading this?
>>
>>59456291

If you do not declare a variable with var inside
a function body, it becomes a global variable
>>
>>59456370
Danke
>>
File: Computer_nerd.jpg (113KB, 530x402px) Image search: [Google]
Computer_nerd.jpg
113KB, 530x402px
What you guys are using rigth now?
>>
>>59456291
"use strict"
>>
>>59446085
What the fuck is PDO?

Like seriously. What is it?

Why are there so many database things anyway? Can't we all just find one database platform that we can agree on? Why does there need to be a million different database platforms?
>>
anyone using Angular2 in production? How are you dealing with Google breaking the fucking APIs after every release? Or have they stabilized their shit by now?
>>
>>59457569
https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.min.js

All day, every day.
>>
>>59457539
>>
File: cute-boy.jpg (29KB, 629x347px) Image search: [Google]
cute-boy.jpg
29KB, 629x347px
>>59452725
>Then php
>>
>>59457916

==
>
<
>>
Is it me or is the documentation on the bootstrap site is horrible?
>>
>>59458576
for bootstrap 4 hell yeah.
>>
>>59458794
>>59458576
Why did it regress from Bootstrap 3's?
>>
>weekend
>go to bed at 1am
>body clock still wakes me up at 6:30

th-thanks, body clock
>>
>>59460623
>>>/b/
>>
>>59460637
append to line 3 " because of my webdev job"

There, now it's relevant.
>>
>>59460679
that applies to every job.
go post your blog shit somewhere else, no one cares.
>>
>>59460715
I don't care about your complaining.
>>>/adv/
>>
I have a CSS animation of content with varying size.

It scrolls the div from the far right, to the far left.

How can I tell when the scroll has finished?
>>
>>59460944
the animationend event gets fired once an animation has ended.
>>
Help /wdg/
What is the best web hosting for wordpress for quality / price? especially price but decent.
I'm not understanding anything every site that I consult on the matter says different things are probably articles paid by hosting themselves are days that I try to find the "solution" of the question, only in /wdg/ I can trust.
>>
>>59461357
Depends on the load, provide more info. r/s, avg. pagesize, dynamic content etc
>>
Is there another way to do this?

http://jsfiddle.net/Ek5Gy/707/
>>
>>59461376
artist personal website with inside, portfolio /art gallery /webcomics, all static jpg images.
>>
>>59461496
So like 10 hits per month with 5 of those being the artist himself?

Get some shared hosting and check reviews and uptime, or something like Scaleway if you want to manage it yourself.
>>
>>59415170
>using unescaped user supplied data inside of an SQL query

Please learn what SQL injection and bound parameters are
>>
NEW THREAD
\
>>59461667
>>59461667
>>59461667
>>
>>59415170
'; DROP table pages;
>>
>>59461439
https://jsfiddle.net/70eketnj/
Thread posts: 314
Thread images: 30


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