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

>Discord https://discord.gg/wdg OR https://discord.gg/0qL

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: 315
Thread images: 27

File: wdg.png (369KB, 667x448px) Image search: [Google]
wdg.png
369KB, 667x448px
>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
https://gist.github.com/dypsilon/5819528

>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
>>
first for golang
>>
Hey anons, serious question. I am 26 soon and would like to change carreer. I have no experience in coding just general computing, maintenance, building shitty basic webpages.

Know the basics of html, css, going for js soon. Then hope to get onto php and friends. Any tips that might help me get into the industry, or which way shall I sway regarding languages?

Thanks in advance.

Also bump.
>>
>>58868805
Learn Lisp.
>>
>>58868805
Look around at job offers around your area.
Then learn that needed language for the job.
>>
>>58868865
Already on that, html,css, js, jquery, bootstrap, php usually.

Thanks btw.
>>
I have an error 500 on my blog hosted on openshift. It just says that the page is not working and the server is unable to handle a request.

Anybody knows how can I fix it?
>>
What's the difference between java and C# when it comes to feutures of the language and what kind of job you get with the language? I think I heard somewhere that C# developers usually develop local systems in an organization, is this true? That type of job sounds less stressful to me desu
>>
>>58870842
>C# usually for local apps
I work with C#, I've never done an intra-business app. Java is older but because it runs through a VM before the processor, it can be run on more types of devices. C# (.NET) is very limited in the devices it can run on, it needs a Windows server. This hasn't stopped its growth though because a Microsoft backing provides sufficient justification to use it.

Features comparison:
https://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java
>>
>>58870445
500 means that something's fucked with your configuration on your server and it needs to be fixed. Did you set this blog up on your own? How are you handling traffic with your server? Did you check to see if those config files are correct before uploading it?

That's honestly not a lot of information to go off of and assuming that you're responsible for all the above, you should check your configs and restart related services once your sure that it's correct.
>>
loadCommentsFromServer() {
/*axios.get(this.props.url)
.then(res => {
this.setState({ data: res.data });
})*/
fetch(this.props.url, {
method: 'GET',
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }
})
.then(res => {
this.setState({ data: res.data });
//console.log(res);
});
}


anyone know why fetch isn't working here? the commented out axios get method works, and when I console log res from the fetch method I get the data just fine, so why can't I setState for data?

The actual error I get is "TypeError: this.props.data is undefined" from when another component is trying to access that data, so it seems that the issue is being able to set the state with the response data
>>
>>58871773
try defining your scope just above the fetch

loadCommentsFromServer() {
var self = this;
fetch(self.props.url, {
method: 'GET',
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }
})
.then(res => {
this.setState({ data: res.data });
//console.log(res);
});
}

maybe it's a scope issue. It doesn't look like it, but idk react that well
>>
>>58871547
>C# needs a Windows server
>What is .NET Core
>>
>>58871928
not doing it unfortunately, thanks though
>>
i'm trying to highlight all posts in a thread that have the US flag on /int/

this is what i have
var all_replies = document.getElementsByClassName('post reply');
var us_replies = document.getElementsByClassName('flag flag-us');
for (i = 0; i < all_replies.length; i++) {
if all_replies[i]. ????
}


and this
document.getElementsByClassName('post reply').forEach((el) => {
el.classList.add('flag-us')
})


does anyone know how to do this?

basically i would like to highlight (something like a yellow border box) all the replies that have the US flag.

i think i need to access the css properties of a reply
>>
>>58872650
http://stackoverflow.com/questions/1812734/jquery-get-elements-by-class-name-and-add-css-to-each-of-them
>>
>>58872744
but i'm posting this code on the javascript console of firefox
>>
[].forEach.call(document.querySelectorAll('.flag-us'), (function(elem) {
elem.parentNode.parentNode.parentNode.style.backgroundColor = 'yellow';
}));
>>
>>58872781
var flags = document.getElementsByClassName("flag-de"),
len = flags !== null ? flags.length : 0,
i = 0;
for(i; i < len; i++) {
flags[i].style.border = "2px solid yellow";
}
>>
File: 1472870896801.png (78KB, 1089x751px) Image search: [Google]
1472870896801.png
78KB, 1089x751px
>>58872895
>>58872897

thanks guys! this is exactly what i wanted
>>
Are there any decent resources for learning about algorithms and data-structures through Javascript, or will I need to pick up a new language in order to find materials on the topic?

Should I even give a shit? I'm interested in moving into more of the backend side of web, do algorithms and data-structures have much relevance there, or are they confined to the land of embedded sys and desktop dev?
>>
What's the back-end language to learn?

PHP is kind of dying off and was always regarded as a dumpster fire by many. Ruby seems to be dropping in popularity too.

C#?
>>
>>58873566
I'd say node or php still, at least from what I'm seeing in job listings in boston. I did node
>>
Close to giving up and last time I posted I was refered to wdg, so here we go. Working on a Discord bot with mongodb. User enters something like "!settle 589ce23e23e1132b7c905e75 win" to update an existing entry. It's supposed to find the entry with the matching id, then update the "status" field from a preset status "pending" to the status "win".

  MongoClient.connect(url, function (err, db) {
if (err) {
console.log('Unable to connect to the mongoDB server. Error:', err);
} else {
console.log('Connection established to', url);

var collection = db.collection('users');
var query = {};
var status = {};

var id = "_id";
var updatestatus = "status";
var userid = args[0];
var userstatus = args[1];
query[id] = userid;
status[updatestatus] = userstatus;

collection.findOneAndUpdate(query, status);


A console.log() shows that both objects, query and status contain exactly what they're supposed to, yet the "status" field just does not update. Fiddled around with all other update / modify options, can't get anything to work. Any help / hints appreciated.
>>
I never quite got how mailing works. How do I set up an email server on my machine so that I can send emails from [email protected]? Like in general, obvioulsy I'm not asking for a step-by-step process, just what software I should use and things like that. I only need to send emails, and not receive them, since it's gonna be used for an email verification thingy.
>>
>>58873823
just use sendgrid or another service. The difficulty with setting up your own email server is making it so your sent emails aren't all caught by spam filters.
>>
>>58874081
The problem is that sendgrid has no free option, and I don't have any actual sites running that would actually make me any money right now, only learning projects. I also don't really care about the spam filter as long as the emails are delivered, I often see sites warning users about how the confirmation email may be in the spam filter.
>>
>>58871608
It's a wordpress blog and it's easy as 1, 2, 3 to set up. It worked smoothly and just from nowhere - bam - error 500. That's why I don't know what could have went wrong. The last thing I did was s reupload of functions.php where I made a minor unimportant tweak.
>>
>>58874980
So basically, I want to reupload my functions.php file because it's possible that I made a typo there and everything crashed. But I don't know how to do that with openshift and I can't just go to my admin panel and do it from there.
>>
>>58875115
I changed the file through git and still nothing. Welp, now I know it's not me who fucked up.

Fuck. Dunno what to do now.
>>
>>58874081
This. I have a setup with Dovecot and Postfix and most of the time, my e-mails end up right in the spam box.

But if you feel like pressing on and playing sysadmin, here's a guide that's close to what I used to get things up and running:

https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin
>>
Question: Do I really need to learn Erlang before/during my study of Elixir? I know Elixir runs on BEAM, but does that actually mean that I need to have a fair knowledge of Erlang in order to be a good Elixir developer?
>>
File: file.png (108KB, 620x717px) Image search: [Google]
file.png
108KB, 620x717px
>>58876345
Apparently you should, but don't worry, Erlang is a really nice language. Sadly I only have personal experience regarding Erlang, and not Elixir, so I can neither confirm nor deny pic related.
>>
Okay I'm lost. I thought I was getting a good grasp on C#, but I guess I'm not.

Could somebody please explain to me what "static" means in a method?

Why does this code throw an error if I don't declare IsNumeric as static? I don't get it.

using System;

public class Program
{
public static void Main()
{
bool returnV = IsNumeric("32323");
if(returnV){
Console.WriteLine("true");
}else{
Console.WriteLine("false");
}
}

private bool IsNumeric(string text){
int myVar;
return Int32.TryParse(text, out myVar);
}
}
>>
What's the coolest site you've ever made?
>>
>>58877204
I'm trying to work on a website that's a mix or leddit and a chan right now. Been working on it for a few weeks not (still in alpha.)

Looks kinda like shit right now but I'm just gonna keep tweaking it until I get it right
>>
>>58877267
What language?
>>
>>58877267
I think I saw you post in one of the earlier wdgs. I can't really imagine how a website could be a mix of leddit and 4chin though.
>>
>>58876680
static indicates the method is a static member of the class rather than a member of an instance of a specific object

IsNumberic is not a member of any object, it is a method that returns a value in your main class
>>
>>58877294
A few of them, image handling is done in python with bash scripts running as crons to create thumbs, update indexes, etc; and finally PHP on the frontend (with JS obviously for the UI.)

>>58877308

Nah wasn't me I haven't posted on here in awhile and I've only posted too one of the webdesign subreddits for feedback (still pretty early, as I said.)

It's basically you can use it anonymously but if you want to register you're able to vote (and one day create boards.) Posts aren't ordered by voting but voting helps bring them to the front page.

I've got some bigger ideas but I'm keeping them close to the chest; I guess it doesn't matter at this point the website is https://discustd.com brutalize me /g/ I need feedback

>don't hax me plz
>>
>>58877397
>https://discustd.com

also I'm using lets encrypt, anyone else have problems with androids native browser with lets encrypt (chrome and firefox work fine, but android browser tells me its not secure.)
>>
>>58877416
What is your back-end written in? I'm asking because I'd like to know if you've set it up manually or used the automatic cofiguration mode of certbot. I used it with a site written in Erlang, and there was no default way to automatically set the certs up for the webserver I'm using (yaws). I had to manually set the key file and the cert, but did not set the cacert (intermediate certificate), because it wasn't really documented, so firefox and chrome on android was giving me errors, while it worked on chrome on linux. I added the cacert to the config and now everything works fine.
>>
>>58877416
>>58877511
Oh, just ignore my previous post. I tested it in my android browser and in firefox, and apparently there is nothing wrong with your certs. Firefox does show a little warning sign though, since you have mixed content on your site, which is not related to your certs. I couldn't find what could be setting off this warning though. Anyway, it seems to me that you also serve the site over http, which you obviously shouldn't, you should 302 redirect people who load your page over http to the https site.
>>
>>58877416
https://validator.w3.org/nu/?doc=https%3A%2F%2Fdiscustd.com%2F
You should use this tool to make your html non-shit.
>>
>>58877511

See above it's a mix of PHP and Python. Also I used the script to set up the cert and yeah had to set the key file and shit myself.

>>58877651

The reason I'm still serving HTTP is because when I had my friends alpha testing it they were (claiming) cert errors in androids browsers and I figured most people would see it through that (normies and shit)

I did have it redirecting to https, guess I could set that up again.

Appreciate you testing it for me desu

>>58877718

I will I've got a lot to do still (it's at alpha 0.1)

I also plan on GPL'ing it once I get the code to not so spaghetti-y and a large enough crowd there that some asshole doesn't just steal my work and throw ad money at it.
>>
>>58877746
Yeah it just seems to me that you are using a lot of outdated attributes instead of inline CSS (should be
style="width: 25px; height: 25px;"
instead of
width="25px" height="25px"
. You should care about these things now, since it will be a lot more work to unfuck your whole site once it's complete and you are used to using these techniques.
>>
Sort of unrelated.

I just bought a domain with dreamhost that I wanted to use for my professional email.

But dreamhost doesn't do email without paying like 10 dollars a month.

I wanted to use gmail as the frontend but its not working like I expected.

What can I do?
>>
>>58877823

Agreed, it's on my TODO for this weekend I don't have much time I'm going to school full time and working 2 jobs right now so I only have saturdays and sunday mornings as "spare time" which is dedicated to this.

Will clean it up this weekend as well I plan on starting "invite only" registration for now (since the user system has only just been written it's most likely buggy as hell and I don't want to get pwned (despite having backups on everything I just have so little time it would be shitty and set me back a day.)
>>
Question: I need to store images for a site. I was going to just json encode strings of URLs that point to the images on my server. Is this a bad approach?

I need a way to save anywhere from 1-10 images (or image locations) per record
>>
>>58877878
Just use Zoho mail. Its free.

Point your mx records and spf records towards any email service and you have it working.
dkim and dmarc records are optional

I could make a screenshot of my records.
>>
>>58879955
that would be nice.

Thank you.
>>
>>58868805
>26
It's too late. The CS meme is true sometimes if you started coding when you were 8
>>
>>58881550
That's not true. half my coworkers didn't touch a line of code till their 30's
>>
>>58881916
that was obvious bait but new guys needed to know
>>
So basically Agile,DevOps and whatnot are just philosophies to turn workers into robots and drain them of their energy as much as possible so that product can be finished faster for extra shekels?
They show it as some fancy idea that is good but basically its just the enslavement method?
>>
You guys think there's something genetic in programming talent? I've seen anecdotal evidence around the internet and in my own experience, just wondering what you guys' experience has been. Have you seen people who have been working in the industry for 20 years and their code is still an eye sore, they don't grasp concepts in programming as quickly, and they are just behind the curb seemingly no matter what?
>>
>>58871928
Are you sure that the request actually is okay, so there's no error because of CORS etc?
Otherwise, I'd try res.json()
>>
>>58882212
You're responding to a reply of the original poster
>>
>>58882171
humans are born with an innate capacity to do logical thinking. monkeys can mimic our moves to solve puzzles but they cant solve it by themselves i think.
>>
My MongoDB got ransomware. Nothing of value was lost, and I'm actually glad I got a story to tell now.
>>
>>58882583
Why don't you tell us more.
>>
File: received_10155292013631494.png (32KB, 847x749px) Image search: [Google]
received_10155292013631494.png
32KB, 847x749px
>>58882704
All there is to tell.
>>
>>58882743
How did it happen? Did they find an exploit in your site, or did you install some random shit on your machine that was a virus?
>>
>>58882853
>mfw no password in MongoDB

That's it, really.
>>
>>58882743
lol this happened to my redis server which was for testing my forum, lucky i didnt hold anything precious, reminder to use a pw next time faggot
>>
>>58882743
fuck I wish I was this unethical it'd be so easy to make $$$ this way

>>58882171
Probably, my dad was a programmer and the thought process just comes naturally to me, Grampa was a math dude.

I've met a few CS masters whose parents were mathematicians as well, although that could be more the environment desu.
>>
>>58883041
I wonder if I could phish / scam him and have all the money returned to victims. I've been doing it for years to gain money and maybe like this I can moralfag a little lol
>>
clap once for AngularJS
>>
>>58883113
Now that would be fun and allow me to ride the moral high horse; good idea anon
>>
>>58883159
Make a page that says "Tor nodes were blocked for spamming", faggot will have to get on clearnet, trace his ip to location and send him an email like "Hows weather in X, you thought you could get away with this forever? Ahahah" then let him reply scared then make your demands
>>
>>58868490
>http://pastebin.com/AL6j7GEE
What's up with this link under 'How to get started'?
>>
>>58882166
whats the matter, dont you like competing for story points? Working in an agile team is empowering.. you build production shit every day instead of blindly following a year long plan writing shitty code that noone is breaking. And wtf would you do without DevOps? Make the css monkey front end devs think about hosting and load balancing and security? Thats a recipe for disaster
>>
>>58883169
He probably uses a script that looks for mongodb's web interface and tries the default user + password or whatever, so if it fails, he won't try to hack it manually. The guy whose mongodb got hacked should check his logs though, the hacker may have been stupid enough to do it over the clearnet in the first place.
>>
>>58868490
Anyone using .NET core? I've never used ms stuff until typescript and vs code recently, and I'm impressed with those. Never though I'd be getting interested in ms tech in 2017.
>>
>>58871773
don't you need to decode the json yourself with fetch? i.e. res.json()
>>
>>58883223
you can reel the skiddie to come to clearnet by making a fake bitcoin acceptance link or whatever "hey man I sent the money here's proof" or "hey man here's the wallet with the user and password blah blah and you can withdraw yourself please dont do anything to my files" and the link showing only "Tor nodes blocked due to spam" but logs the skiddies IP.
>>
Does anyone know how 4chan's thread deletion works? Like threads get bumped to the first spot when someone replies, except when the thread has reached the bump limit, but does 4chan just delete the last thread in the queue when someone makes a new thread, or does it look at other factors like post count and such? I've been thinking about making a 4chan clone for the experience, seems like a reasonably small project for that. Also, what hashing algorithm does it use for the tripcodes?
>>
>>58873514
that kinda stuff is seldom used in js. it's already high-level. learn it with c. It's worth learning even if you don't use it every day, because it gives you good instincts for what is actually happening under the hood in higher level code. and it's just interesting
>>
>>58873566
node and ruby still have lots of jobs. java or c# too. go is really solid, but not as many jobs. if you wanna be really hipster, go with elixir. scala jobs are rare but tend to pay really well.
>>
>>58883269
hmm that's really clever. /g/ should actually social engineer this douche into getting his info and then report him to the police.
>>
>>58873776
i don't use mongo, but what debugging/tests have you done? are you sure you're using it correctly according to the docs?
>>
>>58874654
use mailgun's free option. you really don't want to setup your own mailer.
>>
>>58883337
thank you bby, I would recommend that we make him send the money back to the victims with the note in the bitcoin transaction for each: "[our emails here] made me send your money back by tricking me to reveal my IP"
>>
>>58875793
that's wordpress for you. shit codebase, no help to the developer. do you really need to use it? if you're just running a personal blog, look into static site generators.
>>
File: popularity.gif (42KB, 934x1481px) Image search: [Google]
popularity.gif
42KB, 934x1481px
>>58873566

>PHP is kind of dying off and was always regarded as a dumpster fire by many. Ruby seems to be dropping in popularity too.
>C#?

Ruby is fine.
But in the end it doesn't really matter, pick a langauge that works for YOU. And if you are a PHP evangelist, so be it.


>>58883310

Good advice
>>
>>58883360
We should make him do that AND send him to prison. Fucking skiddies man.
>>
>>58883384
dont ruin a little kids life for 50$. just teach him a lesson and maybe make this one cucking of a scammer public so they'll be more afraid
>>
>>58882166
agile is a good idea in principle, but almost always abused in practice. it's better to use progammer anarchy or programming motherfucker.
>>
>>58882171
I think it's a combination of native intelligence (nature) and upbringing/educational opportunities (nurture). If either of those is missing, it ain't gonna work.
>>
>>58883210
you're talking about a normal division of labour based on specialisation. agile has no monopoly on that.
>>
>>58868805
>no experience in programming

You need to first do these three courses (free, only take a week to 5 weeks depending on commitment) https://www.edx.org/xseries/how-code-systematic-program-design (this is also known as HtDP 'How to Design Programs book)

You absolutely have to do that first before anything or you'll be confused beyond belief.

Finished those 3? ok now read Eloquent Javascript as an introduction to JS/web dev bullshit: http://eloquentjavascript.net/

The way you read programming books is you manually type out all the code, and do all the exercises in the book.

Finished? Now do the entire "You Don't Know JS" book series (also free):
https://github.com/getify/You-Dont-Know-JS

Now you are ready to put it all together with a web dev bootcamp, so read the Front End Developer's Handbook https://www.gitbook.com/book/frontendmasters/front-end-handbook-2017/details

Congrats you are done. Now you go and get a job somewhere as customer support at first, debugging forms or asking customers to open up the DOM in their browser and give you information. This is called "Support Engineer" usually and weworkremotely.com has all of these jobs.

While working for this company you slowly move into being a F/T developer by debugging their code, learning everything there is to know about their stack/product/development cycle, then finally becoming a dev yourself.
>>
>>58882743
bad opsec, obviously that's a kraken generated address he's using to cash out the stolen loot
>>
>>58883503
>opsec
hello /r/DarknetMarkets
>>
>>58883339
I can't say I've done any debugging, I'm completely new to mongodb (and even just the bit of js I use), so I wouldn't know how. What I can say is that it doesn't give me any error message when I do it this way and that the documentation is of little help, because it has no examples of using queries with objects that have varibale content. When I do a find() query using the same "query" object it works. I've also tried something along the lines of
 collection.findOneAndUpdate(query, { $set: { "status" : "win" } } ); 

to see if the status object is the issue, but that also doesn't work.
>>
>>58883362
Fuck me, I don't really have to use it, no. And I won't anymore. It still doesn't work. But I think in this case it's not a WP problem, I saw some comments on web that Openshift is fucking up. Hope they will fix it. if not, I have to change my host.
>>
>>58883485
Wow, webdev is such a Pajeet field. I always have the urge to kill myself when I have to do some web coding.
>>
File: sohnenundhattn.jpg (340KB, 1024x646px) Image search: [Google]
sohnenundhattn.jpg
340KB, 1024x646px
Can anyone provide me with a guide on how to go to stage 0 to deployment of a (business-related) website?

I feel I can grasp the essentials, but a comprehensive step by step would be excellent.

tldr: REQUESTING HOW-TO - STEP 0 to DEPLOYMENT
>>
>invited for informal interview

I had to Google it. I didn't know this was a thing.

I guess I just wear non-sperg clothes and nice shoes?
>>
>>58885257
step 0 - Create idea. Figure out how the idea will work. Figure out if the idea WILL work. What incentive does it offer the user to use the site? Is the idea practical and useful? Does it offer a form of power or entertainment?

step 1 - Run this idea by family and friends. Feedback is very important. Consider it and make changes as necessary.

Step 2 - Let the idea brew in your head for a few weeks. After this step you should not change anything. Small changes can brick your website and stop you from ever deploying. Solidifying your idea is the most important part.

Step 3 - Write out your database and tables on paper with datatypes. It's easier to visualize and make changes this way.

Step 4 - Create your database.

Step 5 - Create the most difficult part of the website. This changes depending on the type of website, but say you were making a dating website. You might want to start by creating user login with profiles then use the maps API to find other cities within specified radius then search the db for users within those cities.

Step 6 - Create all of the finer aspects like profile 'about' section, friends lists, image galleries, etc.

Step 7 - CSS. Up until this point, your page should look like shit. Unstyled text boxes on a white background with shit loading in the corner with AJAX. This unfortunately is my longest step. I burn through the first 0-6 steps in a few weeks and CSS takes me months to nail it down right.

Step 7.5 - Finer details. Copyright, div animations, header, layout tweaks etc. Don't spend more than a week on this. You may never leave this half-step if you don't set a deadline.

Step 8 - Buy a droplet on digital ocean or go scalable on AWS. Install your stack like you hopefully no how to, login with SSH and upload everything. Don't forget to install the db.

Step 9 (next post)
>>
>>58886121
Step 9 - Rig it so that it looks like people already use it. Make fake posts, accounts, profiles, whatever. Put "Join the 1 million users that use my shitty website today!" by the signup box. Make it look active.

Step 10 - List the website on every search engine known to man.

Step 11 - Use your shitposting account on Reddit to post the website there. Use your alts through VPN to upvote you a dozen or so times. See if they bite.

Head back to step 0 with a new idea and keep grinding.
>>
>>58885964
dress church nice.
>>
>>58883267
>res.json()

thanks, that was part of it but ultimately I had to break out my thens a little to get it to work totally

this works
fetch(this.props.api, { 
method: 'GET',
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }
})
.then((res) => {
return res.json();
})
.then((resjson) => {
this.setState({ data: resjson });
});
>>
>>58885115
Let your suffering be a warning to all. These "build your own websites, it's easy as 1, 2, 3" services are bullshit. Don't use them if you can help it.
>>
>>58877416
>thumbs
Don't do it man, that road leads to cancer, always.
>>
>>58886474
.then(res => res.json())
.then((resjson) => {
});
>>
ded
>>
>>58886512
Don't go too far now, though. I built my own template with custom functionalities, and I'm just hosting it on Openshift because it is free. And I am sure Openshift is fucking up now.
>>
Can someone help me out with a link that explains modern SEO basics please? I can find info on some of the old stuff but I thought someone on here would have a much better link.

I got an interview coming up and the guy of course wants his site to be number one but fails to realize you can't spoof that shit today.
>>
File: 1422572544363.png (185KB, 456x480px) Image search: [Google]
1422572544363.png
185KB, 456x480px
The number of dependencies required to even start a simple ES6 project is becoming ridiculous
Need a minimum of 11 dependencies just to get Webpack and Babel ready:

babel-core babel-loader babel-polyfill babel-preset-latest css-loader extract-text-webpack-plugin file-loader html-webpack-plugin style-loader url-loader webpack


And that's not accounting additional ones like the SASS loader, the Webpack dev server or anything related to testing
And then you need to declare the actual business dependencies

I thought starter kits or whatever they're called now might resolve this, but as it turns out they're even more cancerous
The React "starter" kit has almost 100 dependencies (28 + 69 dev dependencies), the Angular starter 80 (19 + 61)
>>
>>58889309
it's pretty messy.
We are using ember at work and have a terrible internet connection (1Mbit at most).
npm install takes like 30 minutes.
We had to implement our own caching on our CI server so projects didn't take hours to test.

I guess I'm okay with that as long as it's own the developer tools taking up that much.
Visual Studio takes a few GB as resources/dependencies in comparison but doesn't need to be deployed as well.
>>
>>58886604
what should I do then?

Everybody was bitching at me when I was using a "card" view
>>
How do I make jquery autocomplete work on the specific textbox being typed in? There are several more textboxes with the same name.
>>
>>58890024
you gotta use an #id man, generate text fields with a script or something otherwise it'll fuck with every field of the same class (if at all.)
>>
>>58873823
I got exim4 to work by setting my ISP's mail server as a smarthost and logging in with my credentials. Sadly, yandex refuses to accept my emails, but it works with gmail which is nice. Mailgun actually seemed promising, but it asked for a credit card even for the free service, otherwise it would only let me send emails to people who are subscribed to my mailing list, which is not the thing I'm looking for when I want to send out verification emails.
>>
>>58890091
It's for textboxes that get added by javascript to a form for a sort of table fill-in.
>>
>>58889935
Card view?
>>
my company is filled with boring arseholes
every day is agony
send help
>>
>>58886121
>>58886152
Not him but I appreciate you writing that up anon. It'll help me in the future.
>>
Wot?

Fullstack Developer $20k - $30k · No equity
Full Time · Dallas · Full-Stack Developer · Java · Javascript · Swift
>>
File: bio1.jpg (104KB, 409x600px) Image search: [Google]
bio1.jpg
104KB, 409x600px
>>58891730
Welcome to America, Where everyone tells you what you should be making entry level (50k) and every where you look it's employers trying to fuck you in the ass for minimum wage to $14/hr. The other 70% of entry level job postings are recruiters.

They're probably just trying to see if someone is willing to do it for 30,000. I bet they're an "up and coming" startup.
>>
>>58891875
If they were up and coming then they should give equity if they are offering that salary.
>>
>>58891875
>employers trying to fuck you in the ass for minimum wage to $14/hr.

My dream is to eventually be successful enough so that i can higher a thick bitch that i can fuck at my job.
>>
>>58891875
Also that's for fullstack developer, not entry-level.
>>
>>58892042
That's a good dream.
>>
function buildPortraitGrid() {
var parentTable = document.getElementById("portraitGrid");
var columns = 3;
for (var i = 0; i < themeList.length; i+=columns) {
var currentRow = parentTable.insertRow(i/columns);
for (var j = 0; j < columns; j++) {
index = i+j;
var currentCell = currentRow.insertCell(j);
currentCell.style.backgroundImage = "url(" + themeList[index].portrait + ")";
// bullshit to have index scoped away from the loop's meddling
( function(index) {
currentCell.onclick = function() {setTheme(index);hide("portraitGridContainer");show("portrait","table-cell");};
}) (index);
}
}
}


Is there a less ugly/better way to do this? I think the code is pretty clear but I can clarify if it doesn't make sense. hide/show functions just set the display value of an element to none and some supplied value, respectively.
>>
File: 1459797652019.jpg (155KB, 800x1200px) Image search: [Google]
1459797652019.jpg
155KB, 800x1200px
what's the best go-to resource for wordpress ? my wife has to create a fairly simple 'site', mainly choose a theme, CI and shit, parallax effect is desired, floating menu...

Sadly, WP is more of a mess than I expected, and can't currently find the time to help her through it.
>>
File: IMG_20161201_185215.jpg (2MB, 3264x2448px) Image search: [Google]
IMG_20161201_185215.jpg
2MB, 3264x2448px
trying to learn php by looking at the files of phpbb. i wondered why do you have to separate your project into so many files? is it for better performance?
>>
>>58895433

Wordpress Codex. just download a free theme, upload it to Wordpress . Appearance > Themes > Add New > Upload . config some widgets and voila !

piss easy .
>>
>>58895471
>trying to learn php by looking at the files of phpbb
Don't.
phpbb is 17 years old, pretty sure there's a lot of old code still being used that should have been done a lot differently by todays standards.

You separate it into multiple files/classes in almost every language because you want to open different parts at the same time and not have to search thousands of lines of code in one file only.
>>
>>58896158
I thank you!
>>
>>58894521
It's pretty bad overall since you're dealing with global variables.
>>
File: 9512428.jpg (52KB, 500x500px) Image search: [Google]
9512428.jpg
52KB, 500x500px
>Used React for some projects
>Got sick of creating subcomponents for every little element and passing callback function props 4 children deep for muh one way binding, e.g. a function when a user button is clicked: UserPage -> UserList -> UserItem -> Button

>Heard of Vue, that it boosts the productivity compared to React, and it looked great first.
>You can directly pass parameters to functions in your template like
<button @click="somUserFn(user)" .. 
, you could possibly write the 4 components listed above in one template and separate them only when you would need the same template again somewhere else
>Only state management is Vuex which is basically a redux clone, now I have to set up fucking actions, mutations and constants instead for muh easy debugging, when in 95% of cases this is completely unnecessary
>Productivity will be as shit as with React again for defining all this crap for the Redux clone
>No other state management alternative like MobX for React
Seriously, I thought all the JS hate was just because there were a lot of npm packages, but now I'm getting sick of it.
>>
>>58897777
Just use jQuery if you want to work in a clusterfuck.
>>
What the best browser for web dev?
>>
>>58898270
chrome.
Firefoxs dev tools are kind of slow, so I switch to chrome all the time for that.
>>
Do you need to have much algorithmic/data structure knowledge within web dev?

I've learned javascript on the front and back end. I expect that algorithmic/data-structure stuff really only comes into use on the back-end.

An unfortunate side-effect of my choice of language is that most resources for learning algo/ds stuff are taught through a different, more traditionally-established language like Java.

tl;dr Is algorithmic/data-structure knowledge necessary to have when pursuing a career in web dev, and if so, are there any decent javascript-based resources for learning it?
>>
>>58898312
Yes, you'll need some algorithm / datastructure knowledge , because you'll need that knowledge the client side eventually (e.g. trees, graphs etc.).
You'll also get better at writing code once you know them, because you'll know some runtime complexities and you'll get some intuition about when to use which data structure.

I don't really know any resources for learning this stuff with JS myself, so I can't recommend anything.
>>
Is there a job queue like resque for php? i'm about to write one...i did not find anything useful...

I want a job queue which executes php code
>>
>digitalocean/AWS
>php
>react

Job wants
>heroku
>ruby
>angular

Fucking fuck. I NEEDS IT I DO
>>
>>58899258
like Cron?
>>
The CEO of a company emailed me for an interview from a craigslist ad.

I'm not sure what to think.
>>
>>58899878
It could be done with Cron, but then you could have up to a minute delay. A job queue would pick it up right away when available.
>>
So they want to interview but all they say was "I can do this and this and this"

Should I tell them I have no degree and no prior professional experience in the field before setting a date for the interview?

I would hate getting there and it ending within 10 minutes once they find that out.
>>
>>58900179
Go to the interview, don't lie but don't tell them straight out either because it'll make you seem insecure.
>>
What do you /g/uys think of Catalyst, the Rails of Perl?
>>
What does /wdg/ recommend framework wise for building a single page web app?

It seems like its possible with just Javascript and Jquery, but I was wondering if it would just be more sensible to learn a framework instead and make it easier and more manageable for myself?
>>
These job requirements are brutal.

They cut corners so hard they are starting to combine web dev and design.

Bit of a difference between a creative person and an analytical person.
>>
>>58900422
I told her in the email that I look bad on paper but I'm still interested.

I figure it best not to waste either of our time.

Besides, if she only cares about impressive paper then I don't want to work there anyways.
>>
>>58901208
Even if you don't get the job it's good experience going to interviews.
>>
>Want to start a personal project
>Thinking about a non autistic name for 30 minutes already
>>
>>58901069
django, asp.net is probs overkill, checkout muffin if you want to be hipster about it
>>
>>58901416
>finally figure out name
>tap it into url bar
>buy domain now only 10,000 dollars!

Illegal when? I launch as a shit tld and plan to sue for the domain if I ever make a good one. Domain squatters can fuck themselves.
>>
>>58901493
Domain squatters should be sent to death camps.
>>
My little website is almost done.

It relies on users to post things.

I didn't add a censor.

My layout is very minimal because it's going to be a mobile app as well. Should I bother warning the user that they might get a post that says "nigger nigger nigger"?
>>
>>58903149
Your warning should literally be "Warning! You might get a post that says 'nigger nigger nigger'.".
>>
>>58897312
I'm not sure what you mean, none of the variables in that function are accessible outside of it. Ex: parentTable, columns, currentRow, index, currentCell.
>>
Dont die on me
>>
>post resume
>receive reply by Naseem asking if I still need work
>from some company that isn't on Google
>broken english

What exactly are they trying to do? I get these all the time and haven't figured it oit yet.

Are they trying to pretend to be me so they can get some US contracts? One asked for my linkedin before and then asked if I was scamming when I ignored him.
>>
>>58900839

It's good - if you like perl.
Take from that what you want.


>>58901182

You are that unicorn girl, aren't you?
>>
guise post your github and make new friends/ followers.

mention /wdg/ so we all know its you
>>
File: nop.png (96KB, 1920x1080px) Image search: [Google]
nop.png
96KB, 1920x1080px
What's wrong with my line number 8?
>>
>>58908117
Do you get output to the console about it? Does it work as expected?
>>
>>58908236
it doesnt work at all.
>>
>>58907533
My github is bare because I launch everything I make.
>>
I've been trying to work on web dev, specifically back end stuff for a hot minute now.
However, I always run into trouble using Flask-Security. All I want to do is customize the register and login forms a bit but I can never seem to do it correctly.

Here's my register form:
  <!DOCTYPE html>

{% extends "base.html" %}

{% block content %}

<div id="signup">
<h1>Create Account.</h1>

{# not sure what to put as my action. default flask-security uses url_for_security('register') #}
<form id="logfrm" name='register_user_form' method="POST" action="{{ url_for_security('register') }}">
{# figure out how to make input required #}
{{ register_user_form.email(placeholder="email", type="email") }}<br>
{{ register_user_form.username(placeholder="username") }}<br>
{{ register_user_form.password(placeholder="password", type="password") }}<br>
{# register_user_form.confirm(placeholder="confirm password") #}<br>
{# register_user_form.submit #}
<input type="submit" value="SIGNUP" >

</form>
</div>

{% endblock %}

My problem here is I don't know what to set the action too. The form is located at http://localhost/signup
But I'm still wanting to use flask-security's default register/login functions.

And here's my routing function:


@app.route('/signup', methods=['GET', 'POST'])
def signup():
print "/SIGNUP REQUESTED"
form = signupform(csrf_enabled=False)
return render_template("security/register_user.html", register_user_form=form, security=security)





Not sure why when I submit my form nothing happens.
Been looking at this for way to long.
>>
>>58908117
Works for me...not sure what the problem is...
http://codepen.io/anon/pen/dNwGxM?editors=1010
>>
>>58901069
riot.js
>>
>>58908909
pls guys
>>
>>58908909
>>58910645
I have no idea about flask, but
action="{{ url_for_security('register') }}"

what does this transform to?
it says register here, but your route is called signup.
>>
>>58910659
Ah, I'll give it a shot. I changed it to 'signup' and now at least I'm getting a different error:


BuildError: Could not build url for endpoint 'security.signup'. Did you mean 'security.login' instead?



Not certain what it does though.
>>
>>58910698
I changed url_for_security to just url_for so now it loads the pages but my submit/POST request doesn't do much. I keep checking the db to see if it's inserted but it's not.
>>
File: 111.jpg (297KB, 1879x941px) Image search: [Google]
111.jpg
297KB, 1879x941px
Simple Question:

What is the standard (the best) way to
have side-space, and center page content like this? What is commonly used and commonly recommended?
>>
>>58911215
position: fixed with javascript onscroll to push everything down.


Or just a div with a width and margin: 0 auto, your call.
>>
>>58911230
>position: fixed with javascript onscroll to push everything down.
Jesus Christ.

>>58911215
The other thing that guy said - all of this is basically inside one container which has some max-width (e.g. 1200px) and margin: 0 auto, which means that you don't have empty space on the top and the bottom, and it centers the container horizontally, so you have whitespace on both sides of a page.
>>
>>58911215
>divitis
>too many modifier classes inside markup
>>
>>58911215
also,
>inline style
>using <br> tag before a block element
cool wordpress, pajeet
>>
>>58911215
If you don't need anything on those side spaces, have a container with a
max-width
and center it by setting [code[margin: 0 auto;
>>
>>58901182
If you're struggling with design just copy from websites that do it well. If you're struggling with development, grow a brain and use it.

>>58901069
React.js or Angular 2. If you like having options, go with React. I don't have much to say for Angular 2 because I don't trust a framework that the company that builds it doesn't even use in there own applications.
>>
>>58889309
build your own started kit

>>58889389
What kind of dev house has a 1mb connection?

>>58882171
Most of those types of people have horrible memory. I know a lot of programmers dumb as bricks, but they remember 90% of what's taught or shown to them. On average they write quality code, but when a task gets complex or a tad unique, they write something unintelligible. Another problem is the inability to think abstractly.
>>
what happens if i want to make a javascript program with more than one thread? are there any workarounds that allow this?
>>
>>58912095
web worker
>>
best way to test php code locally? OSX preffered.

Currently running a local plex and web server but it's gunna be down for a few days and don't want to push to live constantly.
>>
>>58912171
$ cd yourworkdir
$ php -S localhost:8000

and then go to localhost:8000 using your browser.

I've used xdebug with visual studio code to debug, but php generally seems to be fucking shit to debug compared to other languages.
>>
I've built up a web application which works more or less if the user interacts with it the way I intended. E.g. click button -> opens a modal -> user selects from 2 choices -> click button submits to server and closes the modal
On a successful submit I can remove the button and refresh the page with via ajax, however I have no idea what to do if someone disables javascript, issue a request via curl with different parametres etc.

Any ideas how to keep the app state consistent?
>>
>>58912255
>however I have no idea what to do if someone disables javascript
the average joe does not disable javascript, if they do, they know that sites break and how to fix it themselves.
add a noscript tag if you want, otherwise I'd just ignore that case, we aren't in the early 2000s anymore.

>issue a request via curl with different parametres etc
your backend should validate all requests anyway, so return 400 or something.
>>
>>58912255
>if someone disables javascript
please stop polluting the internet with shitty js-only websites
>issue a request via curl
read into backend validation
>>
>>58912271
>>58912280
any particular pointers? The main problem is when the user is logged into the site and issues a request to update a row in the DB I can verify he has relation to the data to be updated but how can I do it without multiple trips to the DB? Should I join all queries to contain the user_id?
>>
>>58912366
UPDATE table SET x = @y WHERE id = @id AND user_id = @user_id
>>
How do people debug their Node js programs? Surely there must be some more effective way other than looking at the unreadable shit the terminal spits out?
>>
>>58905573
>It's good - if you like perl.
>Take from that what you want.

Cool, thanks. Any idea how much use it gets?
>>
>>58911215
.container {
width: 90%;
max-width: 90%;
margin: 0 auto;
}
>>
Need advice, again. Anyone familiar with react?
>>
>>58912425
I'm sure you can use a debugger. Most IDE's have great debugger integration.
>>
>>58913400
dont ask to ask
>>
This is my service:

@Injectable()
export class GymService extends BaseService {

private gyms: Gym[] = [];

constructor(protected http: Http, protected httpConstants: HttpConstants) {
super(http, httpConstants);
this.getAllGymsFromBackEnd();
}

getAllGymsFromBackEnd() {
super.get(this.httpConstants.gymsUrl).subscribe(
(data: Response) => {
for (let gymObject of data['gyms']) {
this.gyms.push(<Gym>gymObject);
}
}
);
}

getGyms() {
return this.gyms;
}

getGym(id: number) {
return this.gyms.find(
gym => gym.id === id
)
}
}


How do I prevent other components from calling getGym() until the array is loaded?

Right now the website crashes when it's refreshed at a URL like ".../gyms/1" because the component doesn't get anything from the array.
>>
File: chrome_2017-02-12_13-47-58.png (9KB, 493x162px) Image search: [Google]
chrome_2017-02-12_13-47-58.png
9KB, 493x162px
>>58868490
Why would someone do this?
>>
>>58916080
style different colors, silly.
>>
>>58915724
return a promise
>>
File: chrome_2017-02-12_13-51-50.png (88KB, 1129x562px) Image search: [Google]
chrome_2017-02-12_13-51-50.png
88KB, 1129x562px
>>58916092
>>
>>58916103

Where and how? I just started Angular this week and don't know the details.
>>
>>58916129
in getgyms and getgym.
return a promise and resolve it when you have data.
wherever you call them do something once it's resolved.
>>
"No problem how you look on paper. I look bad on paper and I own the company."

Interview tomorrow!

My third interview now.
>>
I'm reading here, on Reddit and everywhere else that people are getting web dev jobs with portfolios consisting of things like todo, blog, simple app that uses some API (e.g. Imgur viewer), games like Pong etc.

I find this incredibly pathetic when I compare it to other jobs. It seems like everyone can do this job. Who can love this?
>>
>>58916383

If you can't land a proper programming job, you go into webdev.
>>
>>58916383
We wrote out a web developer job once and I had to do the interviews. You'd be surprised how many of them can't even do a simple if/else.
And these people come fresh from university doing CS.
So anything that looks like code was a plus.
>>
>>58916383
Many jobs usually want to see something of depth. Like a social media website or twitter clone.

I showed one guy how much traffic I get on a simplish site. He said the traffic was impressive, but asked if I had something more complex. This was a regular occurence.

Anyways, it just gets you through the door. You won't get the job if you can't whiteboard or handle technical questions.
>>
>>58916184

From what I've read, promises are used for HTTP requests. getGyms and getGym just use the local array that's populated during the initial GET request.

This is the code of the component that calls the getGym function when it loads.

export class GymComponent implements OnInit, OnDestroy, AfterViewInit {

private subscription: Subscription;
private gym: Gym;

constructor(private activatedRoute: ActivatedRoute,
private gymService: GymService
) {}

ngOnInit(): void {
this.subscription = this.activatedRoute.params.subscribe(
(param: any) => {
this.gym = this.gymService.getGym(parseInt(param['id']));
}
);
}

ngAfterViewInit(): void {
$( document ).ready(function() {
$('.carousel').carousel();
});
}

ngOnDestroy(): void {
this.subscription.unsubscribe();
}
}
>>
>>58916525
>You'd be surprised how many of them can't even do a simple if/else.
I had this problem with while loops.
I straight up told the guy "I am drawing a blank because I have never had anyone stand over me and watch me code. Give me a second because I know I know this."

He was cool with it.

I demolished that test once I cooled down.
>>
I'm trying to decide between vue and react. I'm leaning towards react because of react native, but so many people are jumping on the vue bandwagon that it makes me wonder if there's an advantage to it bigger than react native
>>
>>58916566
>promises are used for HTTP requests
you do load your data from the backend using getAllGymsFromBackEnd

I'd do it like this.
return a promise instead of the gym/gyms directly.
if you already have them, you can resolve it instantly.
if it's still loading then put the resolve method into an array to call later once data has been loaded.
once your getAllGymsFromBackEnd finishes loop through the queued resolve methods and run them.
>>
I'm reading up on ES6 and the part about destructuring isn't making much sense to me. They mention pattern matching but I'm seeing nothing of the sort in the provided examples

https://babeljs.io/learn-es2015/#ecmascript-2015-features-destructuring

If anything it just looks like the way lists work in Perl with more defined behavior. Why does it need so much explaining?
>>
>>58916719
In fact I just got to the next part

https://babeljs.io/learn-es2015/#ecmascript-2015-features-default-rest-spread

Besides the default arg stuff this literally is lifted straight from Perl. Neat
>>
>>58916719
Get the book series "You don't know JS" it explains it better and is free https://github.com/getify/You-Dont-Know-JS

Xah Lee, infamous 90s troll from comp.lang.lisp also has a good js tutorial on his site http://xahlee.info/js/js.html
>>
>>58916383
For very low paying webdev maybe, if you want to make silicon valley starting wages then you'll do multiple white board tests, need a work sample involving complicated app building or building an API and explaining exactly why your API is the best written over others, ect.

For people without all this experience just go apply to TopTal or other type of contractor farm where you can build exp
>>
>>58916978
Thanks, I'll take a look. Javascript is pretty simple when you write it like you're stuck in 2006, but at the same time its tedious and messy. Learning all of its new features seems pretty daunting to do purely through experimentation and reading other people's code so learning resources are a must. Honestly Perl has the same problem so its a mystery to me how I learned my way through all of its strangeness
>>
>>58898312
CLRS is written in pseudocode, so you can translate those algorithms in javascript if you wanted though they all exist as libraries. What you want is analysis ability so you can judge for yourself what is the best library/algo to use for a specific problem you're trying to solve, like should I use mergesort? quicksort? They all have different upper and lower bounds advantages (all of which is explained in any algorithm intro book).
>>
>>58917091
If you like Perl there's plenty of perl jobs around
https://www.ziprecruiter.com/jobs/ziprecruiter-03f90393/full-stack-software-engineer-perl-e6adb5dd?same_org_id=1&widgetlink=1
>>
>>58917285
Oops, that's a remote job too
https://news.ycombinator.com/item?id=13543758

Anybody interested here's the 2017 Front End Dev handbook https://www.gitbook.com/book/frontendmasters/front-end-handbook-2017/details
>>
How do I hack my brain to like this field? I might have come to a dead end because of my degree and will have to go into some part of webdev if I don't do another degree.

Over a few years I grew to hate anything related to programming/coding. It's just incredibly boring for me. Fuck.
>>
What should I ask for as a salary?

The job is for a straight up web dev. Not junior-level.

Previous jr roles I asked for 50k and that seemed fine, but don't want to undervalue myself. This is a small company with 10 developers in a rent-an-office.

Even at 50k it would be twice what I get at my current job.
>>
>>58917366
You don't.

It's like anything else, either you like to do it or you don't.

People who join this chasing money or gender/racial equality are ruining this industry and many others.

If you don't want to do it naturally, then why would you pursue it?
>>
File: JUST.jpg (27KB, 600x424px) Image search: [Google]
JUST.jpg
27KB, 600x424px
>>58916689

Can you please provide some example code?

I'm fucking around with observables and promises and I can't get it to work.
>>
What does /g/ think of WordPress? I want to build an easy to update site with a blog. Seems very easy with WordPress, but I'm having trouble editing the particular theme I'm using.

I have also built a basic HTML/CSS website, but it doesn't look as good as the WordPress site.
>>
>>58917775
Dwtfywd
>>
>>58917775
>easy
>WordPress
no. just, no.

I literally built my own CMS in less time than it took to configure/customize my friend's wordpress blog, and it still ran like bloated shit.
>>
>>58917834
>Dwtfywd

#cool #swagtastic #mahnigga #urafaget

>>58917843
Are you on a mobile device, or are you incapable of writing in coherent sentence structure, or both?

Are you saying that WordPress does not allow easy updates to a blog (i.e., hyperlinks, etc.)?

>I literally built my own CMS in less time than it took to configure/customize my friend's wordpress blog, and it still ran like bloated shit.

So anything with a CMS is bloated and doesn't run well? Please explain.
>>
>>58917919
name one grammatical error I made in my post.

I'll wait.
>>
Learning basic HTML/CSS.
What's a good way of making a footer that sits at the bottom of the page independent of the height of the page? I.E. it's there when you scroll to the bottom of the page.

Ideally without HTML5. Assignment asks for XHTML.
>>
>>58917843
I don't understand. I have a portal built on wordpress (completely custom theme) and it is not that bloated at all. I kept technology behind it on a minimum and it is ranking pretty well on all those speedtest websites.

I don't find building a wp template from scratch that hard at all, but I would like to know some good source where I can learn how to build the backend all by myself too.

Ofc, I'm talking about something that has a whole admin page, full-blown editor and is safe from injections and all the other shit. If that is faster to implement than a wordpress theme, I need to know how to do it.
>>
>>58917843
>>58917929

>no. just, no.

You lack capitalization, and the second sentence has no pronoun.

>configure/customize

You can use the "/", but it's more of legal use.
>>
>>58918022
Same. I couldnt figure out how to deal with other peoples themes so I just made my own for my website. It works fast and easy.
>>
File: 1486693488488.png (258KB, 549x560px) Image search: [Google]
1486693488488.png
258KB, 549x560px
html and css is easy afte like 1 week of getting into it i have a good grip on what it is and how it works

So when i try to work on css i just find myself with no imagination like not knowing what im gonna do what is this shit gonna look like and to be honest when i look at fancy look menus of some websites im like "dam i have no idea how to make that menu"

I dont wanna jump into java script before making sure i have this particular issue fixed and i wanna know what /wdg/ can say about this.
>>
>>58917919
>uses wordpress
>thinks he's better than real devs

You don't deserve any kind of information, wordpress pajeet.
>>
>>58918691
Useless post.
>>
>>58918312
Hmmm, seems to me like you don't have a good grip on html and css after all.
>>
>>58918806
The irony.
>>
>>58919010
You're one edgy dude, aren't you?
>>
Interview tomorrow morning. I don't have a portfolio online or anything (I did but pulled them because my domain price tripled for some reason) I just applied for a job and they called me for an interview Friday.

What am I supposed to bring? Copy of my resume. Am I supposed to bring my portfolio on a flash drive or print the pages up? I'm reading up on things to get a refresher. First interview, no idea what to expect.

Help me.
>>
>>58918021
lol what the fuck, xhtml is dead, who teaches you this stupid bullshit? Anyway, this may be one way of solving your problem, no html5.
>>
>>58918021
>>58919365
Forgot the fucking link.
https://codepen.io/cbracco/pen/zekgx
>>
>>58919255
Just get a new domain for 10 years for $100, so you won't have to worry about increasing prices for a long time. Also, what kind of shitty domain seller triples their price?
>>
>>58919441
Namecheap. dickheads went from $12 for a year to $48 for a .design domain
>>
>>58919492
Oh I see. The way I first understood it was that they raised the price of your domain specifically, and not the price of all .design domains, which would be even more of a dick move.
>>
>>58919255
I have an interview tomorrow too.

Let's both post an update here afterwards.
>>
>>58919384
*,
*:before,
*:after

rem
what the fuck are you doing

>performance
>browser support

You quite fundamentally shat the bed on those two points, in a task that would be solved way faster without doing so.
>>
>>58919968
Will do man. Good luck to you!
>>
File: maxresdefault.jpg (39KB, 1280x720px) Image search: [Google]
maxresdefault.jpg
39KB, 1280x720px
>>58920063
Same to you. See you on the other side.
>>
File: b1.jpg (48KB, 580x580px) Image search: [Google]
b1.jpg
48KB, 580x580px
I'm 31 with no college degree and zero experience and im looking to change careers to webdev. Am I crazy?
>>
>>58920222
>> Posts PHP logo
If you're wanting to make a career out of being a PHP dev without wanting to Robin Williams yourself, then yes.

Don't become a web dev for the money. You will only last if you truly enjoy it.
>>
>>58920251
Is the most used language in my country (Chile)
>>
File: html.jpg (41KB, 753x397px) Image search: [Google]
html.jpg
41KB, 753x397px
>>58868490
>>
>>58920350
There nothing wrong with php. It's one of the most used languages everywhere. It's not going anywhere. Jump on in brother.
>>
>>58920222
No. I did it at 28.
>>
>>58920018
Look buddy, it's quite obvious that that is just a random codepen I found while searching for website footer, but from what I could gather, it is supported relatively well by browser, unless I'm misunderstanding something. Idk about the performance implications though.
>>
>>58920441
Mind sharing how u did it? I don't have any friends on the field
>>
>>58918838
i guess i feel like holding a drill i know how to use and make holes but then if i want to make like a bird house i dont know where to make the holes to build the bird house

that makes sense?

so far i know by memory how to center content change fonts size padding margins colors what i feel dont know is like how i make cool ass headers menus and shit (i know making interactive shit i need java scrip)
>>
What would you do with the domain pdf.XX (where XX is an arbitrary 2 letter TLD), if it was yours?
>>
>>58920509
I 2nd this please
>>
In css, can I give rules that increment depending on the last number in its ID?

what I want is example1 - 0 margin, example 2 20 margin, example 3 40 margin and so on?
>>
>>58920988
See CSS counters.
>>
Is there a difference between Java and Javascript?
>>
>>58921158
Yes.
>>
>>58921190
>>58921190
I don't believe that.
>>
>>58921242
I didn't ask if you did, nor do I care.
>>
>>58921281
Dont be so rude
>>
>>58921291
Get raped and kill yourself, you retarded fucking faggot sack of nigger shit with down syndrome.
>>
>>58921158
Yes. Javascript got its name because Java was super popular when it came out. There is nothing else similar other than the name.
>>
>>58920839
pdf -> pdf file -> pedophile
I would make a child porn enthusiast website themed around this pun.
>http://www.pdf.ae
>You must be non-muslim to enter this website
>>
File: 1354994326147701.jpg (11KB, 352x352px) Image search: [Google]
1354994326147701.jpg
11KB, 352x352px
>>58921429
Eh.. any other suggestions?
>>
>>58920509
Make a few websites for a portfolio. Impressive sites. Ones with user logins, posting, upvotes, galleries etc.

Apply to placement programs like LaunchCode as a fallback. If you can't pass the launchcode live interview then you probably won't do well at a real interview.

Begin applying everywhere. It took me just under a year of searching. People still search Craigslist so don't forget to apply there. I used ziprecruiter, glassdoor, angel.co, dice, indeed, stackoverflow, and nameless more. Craigslist was the winner somehow.
>>
>>58921441
Put it chock full of ads, you're bound to get a couple click every month.
>>
Things like http://radio.garden make me want to learn more webdev so I can create something awesome like this too.

How hard do you think this was to make?
>>
>>58921739
Other anone here. Would things like Reddit or Twitter clone be good enough? I found some tutorials with node, vue and mongo, is it worth following those?
>>
File: amazingwebdev.png (108KB, 1781x1002px) Image search: [Google]
amazingwebdev.png
108KB, 1781x1002px
>>58922076
>a fucking loading screen for a website
>plus pic related
I think it wasn't hard at all.
>>
a murderous lunatic points a gun at your head and says he'll kill you if you don't say something nice about both javascript and html

what do you say
>>
>>58922169
The fuck are you talking about? It works perfectly. It got pretty heavy internet coverage in the last few months. People love it, me included.
>>
>>58922225
HTML and JS are my good friends and JS has a nice logo. There.
>>
>>58922105
Yes. Twitter and reddit clones are great.

Also they will already be familiar with how to use them so navigation will be easy.
>>
Not dying tonight. Bump.
>>
is there anything php can do that node js cant?
>>
anybody here /seo/ ? I have a problem. I just can't, for the life of me, get the title and description right. I don't know what did I do? I checked the Google SERP for that blog article and its T&D is not the same as in the rendered page.
>>
I know how to buy a domain, I know how to install wordpress, and tweak it a bit using HTML code I can google.

Can I start up a web design business?
>>
>>58917775
>>58927104
knowing some tools != knowing design
>>
>>58927174
Well put
>>
>Making first Jquery/Javascript webapp
>At 300 lines
>Starting to get confusing as fuck

How do you guys do it, I know that 300 isn't even that hard. I am using comments and shit.

I wish I had learn't proper modular design before I started and done that day one.
>>
>>58927938
split into multiple files
requirejs
webpack
>>
When I console log this I get [p#tableNumber], when I am expecting to get "2" which is what is contained within the <p> tags with the id tableNumber. I can get it by using an index on the console log [0] but I didn't think I should need to do that?

Have I got it wrong?

var userTableNumber = $("#tableNumber").html();
>>
Try to add [0] like this:

$("#tableNumber")[0].html()


It's like it is returning an array because of some reason, not sure if I'm correct. That stuff happened to me multiple times too.

Btw, why does Chrome render my Merriweather font completely differently than Firefox? Firefox is showing it bold as fuck as it should be (font-weight: 900), but on Chrome it is thinner. And it happened from nowhere, months ago, but I remember it working properly before.
>>
File: learningwerk.png (179KB, 1901x929px) Image search: [Google]
learningwerk.png
179KB, 1901x929px
How is this for babby's first site?
Still learning basic HTML/CSS.
>>
>>58930039
if you need placeholder text: http://www.lipsum.com/
>>
>>58927938
I don't know...I usually ctrl+f and search.

Like if a div I'm working on is dickbutt I'll ctrl+f dickbutt and search for the relevant event handler or whatever.
>>
Interview in 4 hours.

Nervous!

It's informal but at the office so I'm dressing like a regular interview.
>>
What's a good way of centering things in HTML/CSS?
Most of the time it seems I'm just playing around with the values until it looks about right.
>>
>>58930841
Margin auto auto or text-align center.

Depends if absolute or relative positioning.

You can also use a grid system to align elements.
>>
Does anyone know how much money there is in website advertising?

i.e you have 100,000 views a month and have amazon affiliate ads that are very targeted to what your site is about, what sort of money are you looking at.
>>
I am having huge trouble.

In my javascript/jquery webapp I have test boxes each with a different question and a true false answer.

How do I structure my code so that when a user answers, the button only effects each individual test box?
>>
>>58932175
What?
>>
File: waveofthefuture.jpg (928KB, 2385x1314px) Image search: [Google]
waveofthefuture.jpg
928KB, 2385x1314px
Which Udemy courses do you recommend?
Also has Treehouse improved?
>>
>>58932973
You don't know javascript.

You can just read the ebook for free but the video course was worth it for me.
>>
Hello, code newb here. I have just applied for a coding internship (my first tech application ever) without having any technical/collage background.

I applied for a front-end/php internship and they sent me an email requesting before they set up the interview to code them a "little" task.

A three pages website that lists and you can order their product (first page).

Perform the payment for their product with get/post requests from their server (second page).

And a thank you/payment recieved page (third page).

I think I could probably do all this without much trouble, I have studied php and web desing pretty hard this last year.
But, would you be okay with performing this? Is this standard procedure for tech jobs? Isn't this basically pro bono free work?

Please share your thoughts.
>>
>>58933030
>You don't know javascript

Actually it is

Understanding the Weird Parts
>>
>>58899878
RabbitMQ
>>
>>58933055
I don't think any reputable company would trick people into doing such trivial tasks for free for them, not to mention that most of the projects will be buggy, since they aren't meant to be in production.
>>
hey im just a babby and making my first website (to get started) but I am trying to link my css and jQuery into my html file. what is wrong here? my files are: jquery-3.1.1.slim.js , jquery.js , stylesheet.css - and are located in the same directory.

<link rel='stylesheet' type='text/css' href='stylesheet.css'/>
<script type='text/javascript' src='jquery-3.1.1.slim.js'></script>
<script type='text/javascript' src='script.js'></script>
>>
>>58933303
If you have
src="script.js"
(relative path) instead of
src="/script.js"
(absolute path), and you are on the page mysite.com/somepage/something, it will look for the script mysite.com/somepage/script.js instead of mysite.com/script.js.
>>
>>58933303
Are you putting the stylesheet in the <head> tag and the scripts just above the closng </body> tag?
>>
>>58868490
If anyone is interested in Rails and Angular 2, I wrote a step by step tutorial on how to use both to register and authenticate a user: https://medium.com/@avatsaev/angular-2-and-ruby-on-rails-user-authentication-fde230ddaed8#.f1mgut19t
>>
>>58933395
well I am using the relative path because the html files are in the same folder as the scripts. in this case it's mainpage.html and I want to refer to the scripts ("script.js" for example) in the same map.


>>58933432
yeah

<head>

<link rel='stylesheet' type='text/css' ref='stylesheet.css'/>
<script type='text/javascript' src='jquery-3.1.1.slim.js'></script>
<script type='text/javascript' src='script.js'></script>

<title>Main Page</title>

</head>
>>
/wdg/ what's your guilty pleasure?

>tfw inline CSS
>>
File: 1483260381568.jpg (75KB, 1023x743px) Image search: [Google]
1483260381568.jpg
75KB, 1023x743px
when do we get progress events on image elements implemented in browsers? It's been 2 (?) years since the proposal. I don't want to use XHR for that shit

also, r8 userscript
http://pastebin.com/3bW6QNAr
>>
File: red.png (642B, 256x256px) Image search: [Google]
red.png
642B, 256x256px
How could I change my browser or html or css of a thread so it displays this png right next to my posts?
When I scroll up and down a thread to see a big red square that marks my posts?
>>
>>58930334
I'm the anon from last night (we both had interviews) let us know how it goes for you dude.
>>
test
>>
>>58931669
Not a lot and it varies a ton.

What kind of merch is targeted? 100,000 dollar hydraulic presses or a 1.99 dollar ebook?

Regular ads net about 1 dollar per thousand, so 100 thousand is like 100 dollars.
>>
>>58934750
>>58934750
>>58934750

NEW THREAD
Thread posts: 315
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.