[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: 330
Thread images: 23

File: uudg.png (810KB, 821x550px) Image search: [Google]
uudg.png
810KB, 821x550px
>Old thread
>>58361783

>2017
https://www.youtube.com/watch?v=9hDKfBKuXjI

>This season's Advent of Code:
https://adventofcode.com/2016/

>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 web dev thread in awhile....thats how you know web dev is dead and full of meme "coders".

big mistake getting into this. nothing but nu males and feminsts
>>
File: anti-bully.jpg (143KB, 833x696px) Image search: [Google]
anti-bully.jpg
143KB, 833x696px
>>58406097
>>
>>58406097
>big mistake getting into this. nothing but nu males and feminsts

keep in mind you are currently located in 4chan.org.
your expectations are really high sir, calm down.
>>
>>58406132
>>58406150

i just dont get why 99% of web devs are hardcore lefty nu males or feminists who put a bunch of stickers on their laptop, color their hair, wear thick framed glasses, and think they're better than everyone else. disgusting.
>>
>>58406238
They just want to be special snowflakes with the cookie of a extremely high annual income.
I tell you what, about 90% of those snowflakes don't even know how a computer works and even more of them don't even know how to program.

They just like playing it all 'hip and cool'. Sucking on the newest webdev 'trends', the next big thing.

I'm not saying that following the 'trendy new technologies' is bad. But whenever you pick something up, you ought to work your ass for it, you ought to learn. Not just read it for 10 seconds post a congratulatory self photography with the book and throw it in the trash can the next day.
>>
>>58406333

all memes aside, should js really be the focus of web dev in 2017? I want to learn modern technologies as best as i can while simultaneously dodging the sub-human degenerate scum we call liberals.
>>
>>58406366
Listen. I will tell you some things that apply not only in web-dev but in general programming and life also.

Scum will be found everywhere, no matter where you look, you will find them in front of you but that's normal.

You should set all of those memes aside and start doing what you like doing, you can't let those braindead consumerists affect what gives you inspiration.

Take everything with a grain of salt. Even their bullshitry doesn't have enough quality to stay forever.

As for your focus for this year, do it. learn it. learn whatever you feel like learning. just do it. You never know when that skill will be of use to you. So, it's better to be safe than sorry.
>>
I got an interview for a QA test job in Boston next Tuesday. I know It's not web dev per se. I've got a few questions though.

1) will a future employer look at that testing experience and be more willing to hire me since I've got experience with testing?

2) I know nothing about Boston, I just happen to be visiting my cousin then. Cousin said I could move in with him if I get the job but I gotta pay rent of course. How much is the minimum amount I should ask for so I can live in that city without having to eat homeless people's throwaway food? I know it's very specific a question to the city and most you guys prolly don't know but maybe you'd know something about cities or where I can find that info.

3) should I just stay put and try to find a junior web dev job or would a testing job give me good insight?
>>
>>58406484
So how to land first remote job?
Do i have to land junior wev dev job and work for few years first?

Also how feasible is freelancing
>>
Lets say I have a 10x10 grid that is made using a table, and currently the user can "Activate" a cell by clicking on it.

What is going to happen is there will be anywhere from 1-5 of these grids depending on what the user wants, and they will be highlighting different cells in each one.

The current solution I have is having each table in a carousel, but I feel like this is inefficient, is there any way I can have one table, and using javascript or jquery, let the user edit certain instances of it?
>>
>>58406238
I don't get it either.

From what I understand, back-end dev is generally free from it.
>>
>>58406987
Have them popup and grow in size on hover or click.
>>
>technically graduated in december
>still feel like i dont know shit
>no motivation to learn
I am doomed aren't I?
>>
>>58406695
Not him, but unless you manage to get lucky or work for peanuts, very few people are going to offer you a freelance gig right out of the gate unless your portfolio is impressive. I'm currently freelancing right now as a portfolio boosting opportunity and it's mostly kinda shit.
>>
>>58407192
yup
>>
>>58406238
insecurity and they hate themselves
>>
File: 1471089683621.gif (359KB, 400x300px) Image search: [Google]
1471089683621.gif
359KB, 400x300px
>>58406661
1) QA is mostly about business processes, as in checking that the right documents and specs are being produced following the right guidelines/ other specs
If by "QA job" they actually mean "writing test code job" you should be fine explaining how you managed to test code in one or two specific projects, maybe refering to buzzwords such as test driven development or whatever.
Otherwise you might want to also explain how this testing fits into the broader scope of a project, how you defined client's needs, made sure specs matched client's needs, tested code against specs, talk about project life cycle etc
2) dunno i'm yuropoor
3) QA might not be all that much about coding and more about defining and following protocols, so i guess it's up to your personnal preferences and whatnot
>>
File: 1455987749440.jpg (245KB, 1440x2560px) Image search: [Google]
1455987749440.jpg
245KB, 1440x2560px
>>58406081
How do I get a webdev job as a college dropout? I've been doing front and backend for years on end but don't have anything on github because it seems kind of pointless to have website projects up there. I obviously do have a bunch of projects finished but they're not something I'd really be willing to share with an employer.

Can anyone be specific into how I could finally get a job and move out of my parents? If I should have a portfolio, then how should it be structured and what sort of projects should I have? Should I focus on a specific technology within webdev or is having a project in a lot of different languages good?

Please help, I'm getting distressed out of disorientation. I don't have anyone who can aid me irl so it's a little overwhelming moving forward on my own.

Any tips about getting that first job would be appreciated.
>>
>>58407785
Thanks for the response anon. I appreciate it.
>>
>>58407920
Make one big full-stack project then add it to your resume.

It's all you need. If you have some large website with login, posting, privacy, or something that people actually use then you will get a job.
>>
>>58408011
Can you list project ideas? I don't have any projects of that scale which I would feel comfortable sharing with an employer. Aren't things like forums overdone? Would that really be good enough?
>>
>>58408122
I can't share my ideas.

Make a Twitter clone. There's enough familiar tech there to impress any HR, and it's relatively easy.
>>
>>58407920
Apply put stuff on your resume and list your skills

bonus is put those websites on github, they are good enough jsut put everything you make there makes you seem more active

bonus have a portfolio site showing all the sites you've made

>>58408122
basic twitter/social network knock off, basic forum, basic blog thing, chatroom thing. Doesn't have to be original.

People often get hired with no portfolio and minimal skills past html, just apply to everything in your area though.
>>
>>58408255
>just apply to everything in your area though.
This. Also use angel.co

I had more responses from angel.co than anywhere else on the Internet. Many junior dev positions on angel when compared to Indeed.
>>
>>58408283
Haven't heard of that thanks!
>>
>>58408255
>>58408283
>just apply to everything in your area though.
This doesn't work for me since I live out in the bush and have to take a 4 hour drive in order to get to the nearest city. Granted there are lots of jobs there, it's just a whole day knocked off to attend a single interview.
>>
Guys, I want to make a version of terminals.io and keymailer that doesn't suck.

Basically it hooks up developers with youtubers/twitch streamers.

Anyone want to work on it? Thinking just vanilla JS, maybe with jquery for easy ajax, and PHP as an API to gather channel stats or key availability.

>>58408336
>Haven't heard of that thanks!
I had been applying to everything on Indeed for half a year and getting nothing.

Within 2 days of using angel.co, I already had a screener call.

Really recommend it.
>>
File: superiorcodingstyle.png (88KB, 890x670px) Image search: [Google]
superiorcodingstyle.png
88KB, 890x670px
Hi /g/, I'm a comp sci major but know virtually nothing about computers.

Where do I begin?

There's so much knowledge and I never feel like I'm accomplishing anything when I study specific shit. Is there a track I should be following, I want to do freelance web development work in during college.

Any help with where I should begin? Anything will be appreciated thanks guys
>>
>>58408343
You don't have to go to the interviews necessarily, but getting phone screens so you can see what is good before going might be good. Otherwise work another job or freelance and try to move closer? You will have to at some point anyway.
>>
>>58408375
>Anyone want to work on it? Thinking just vanilla JS, maybe with jquery for easy ajax, and PHP as an API to gather channel stats or key availability.
I'll work on it if we use java on the server
>>
File: UyQVhKc.jpg (97KB, 720x960px) Image search: [Google]
UyQVhKc.jpg
97KB, 720x960px
I'm fucking sick of NPM, is Yarn a good alternative?
>>
Seems I'm going insane with this shit.

Trying to use laravel with lampp. I ahve them both installed successfully but when i go to htdocs and do the
 laravel new test
i get the /usr/bin/env: 'php' : no such file or directory.

Also why the fuck is "php -v command not found" when i type it to terminal? Isnt it really installed with xampp already?

Basically how do I run laravel with xampp (on apache and not the laravel's php built in webserver e.g. i dont want to use php artisan serve)?
>>
>>58408738
Pajeet pls go
>>
>>58408787
Isn't yarn just a different frontend to npm that does some caching and symlinking stuff or something?
>>
>>58408811
Let me guess, you're running windows?
>>
>>58408816
spring > php
fite me
>>
>>58408847
>lampp
>>
>>58408847
No I'm on Leenux
>>
>>58408738
>java

Absolutely not. Back to 2004 with you.
>>
>>58406081
Guys, is free code camp good? Can I actually use their certification as properly recognized training?

Also, what's better to learn in terms of making money part time through my own freelance stuff, frontend, backend or full stack?
>>
>>58409464
its decent but it's better to use multiple sources for learning.

The certifcate is better then nothing, but actual things you've made are better.

>make money part time

learn wordpress
>>
>>58409464
>Guys, is free code camp good?
It's alright. It's good practice for noob-intermediate level.

>Can I actually use their certification as properly recognized training?
It's not going to impress anyone.

>Also, what's better to learn in terms of making money part time through my own freelance stuff, frontend, backend or full stack?
Freelance is bullshit unless you have like 10+ yrs of experience in the industry. You're better off working part time at a McRestaurant and studying until you're good enough to get a real job at a software company.
>>
>>58407920

you don't. Stop flooding the industry with degeneratism
>>
im making a search function in PHP from scratch and it looks like i'll need to use session variables (for the search text, etc) so i can use that data on the next page. Is there a better way to do this...? really want to avoid using sessions/cookies.
>>
>>58409612
$_GET
>>
>>58409612
Just POST the search form.
>>
>>58409588
In what way am I a degenerate?
>>
>>58409678
Never get in php unless it's a share link.
>>
>>58409678

the url becomes so insanely long tho

>>58409798
its posting to itself. Blank action.
>>
>>58409588
Oh go fuck yourself you pretentious twat
>>
>>58409850
If (isset($_POST ['search']))

What are yoi having trouble with exactly?
>>
>>58409933

the user searches for something and click search, then that search data needs to carry over so they can then "filter" or go through the records that match that search data. How do i hold onto that search data so the user can look around with it?
>>
>>58409978
put it in a hidden field
>>
>>58409978
The search data is posted. It IS carried over as a POST named whatever the input field is named.
>>
>>58409838
Wrong

>>58409978
Multiple GET params?

as in:
/search.php?q=foo&someFilter=bar&someBoolThingOrWhatever=1&limit=20&offset=40

And if your search form and results are on the same page, you could just dump the query and other filter params back into the same form.
>>
>>58410108

nah its not cuz once they use the filter buttons to go through the data they first searched, the search variable gets erased. It gets wiped out.

>>58410009

i guess i could do that......lame tho
>>
>>58410151
>lame

that's how it's done, there's nothing lame about it.
>>
>>58410145
>Wrong
No, it's correct. We aren't in < 200X anymore. Only povertydevs are ok with a football field length URL.
>>
Ruby and Rails + Redis + PostgreSQL + Docker is the perfect combination?
>>
Guys, I got accepted through the screener call and test.

I'm having my 2nd phone call soon.

Cramming their preferred framework currently.
>>
Anyone been involved in the hiring process here? What sort of projects would you look for in the portfolio of a full stack developer? what would give them negotiating power over other applicants? Assuming they're not a jerk and hireable etc
>>
>>58410603

nothing matters anymore. just give up. give it all up.
>>
>>58410603
They didn't even ask to see my portfolio. They just asked what projects I've done and then gave me a code test.
>>
>>58410683
What was the test like? Was it directly related to web dev or Rosetta/katas?
>>
>>58410700
Related to the job.

They had me write a few queries, a regular expression, answer a few questions about their code on github.

One question was like:
> given the array 8, 3, 1, 2 reverse the array and place a - between the letters so the output would be 2-1-3-8

That one was pretty fun. I did it in 1 line.
>>
File: asd.png (270KB, 1122x1725px) Image search: [Google]
asd.png
270KB, 1122x1725px
I want to become a back end developer. I think it's interesting and I've spent every day of winter vacation reading articles on treehouse/firehose/etc, watching on youtube, and actual writing on sites like codecademy.

I'm a business major, but I'm considering adding two more programming classes to this semester. However, I've heard that teachers are behind in teaching what's actually being used (excluding bleeding edge stuff) and that they teach abstract theory. One guy online said he failed a test because he did what his friend in the industry said is common, yet the teacher insisted on what was in the book.

Should I even bother taking a few computer science classes at my local community college or is it a waste of time and money?
>>
>>58406081
>Ruby and Rails + Redis + PostgreSQL + Docker is the perfect combination?
Nobody?
>>
>>58410935

postgre is legit but ruby is ded
>>
>>58406081
>>>58410935
>
>postgre is legit but ruby is ded
Why Ruby is ded?
>>
>>58410984
It's not. If crystal takes off it might be on its way out then though.
>>
>>58411232
Is there better alternatives?
>>
>>58410889
Good god and I thought my college was bad.
>>
>>58410889

if you wanna be a .net shill, sure go ahead
>>
>>58411422
For performance yes, but it's extremely mature web dev wise so if you understand the ecosystem well enough you can whip together stuff faster than any other language besides maybe php. It's my go to language unless I know I need something faster. It's extremely comfy once you learn it.
>>
Where can I learn html and css from? what books? any tutorials?

also what text editor do you guys use?
>>
>>58411495
Just use notepad while starting out.
The Mozilla website has good info for html/css, click around there

https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML
>>
>>58411495
Full lazy mode:
Buy some udemy course that teaches all the basics
>>
why is file upload so ass backwards in node.js
jesus christ I've never had to deal with such a pain in the ass
>>
What's your favourite stack in 2017?
I'm using:

Backend language: Go
Backend libraries: Gin, Gorm
Db: Postgres
Frontend language: Typescript
Frontend libraries: my own virtual dom, frp, router and ajax libs
Platform: Linode

Very happy with this combo for most apps.
>>
>>58411495
Codecademy
>>
>>58411626
>Frontend libraries: my own virtual dom, frp, router and ajax libs

Unless you're working solo all the time, pick something established for all of these (there are tons out there).

Rest of the stack is cool. How is your backend development speed compared to node w/ express?
>>
>>58411626
postgres
redis if need to cache results
spring
vanilla js

I've reached maximum confyness
>>
>>58411727
You know what's up. This is for solo projects. For my dayjob team, I chose react/redux. But my libs are much smaller/faster/simpler. A typical frontend bundle is around 30kb minified/gzipped. Should probably get them out into the community but I don't want the extra job of being an open source maintainer right now.

Backend dev is actually faster than in node/express, because the intellisense enabled by a statically typed language enables really useful hints. The lack of generics hasn't been an issue in practice.

I feel more confident about correctness too, I don't have to write quite as many tests.
>>
>>58406081

Angular or React?
>>
>>58411491
Thanks
>>
>>58411950
Angular definitely. ReactJS is like an obscure meme, just garbage.
>>
>>58412385

Angular for SPA, React for everything else. Angular should be used for SPA only.
>>
>>58412433
lmao what modern websites use more than one page
>>
>>58412577

i've seen a social networking site use angular. It was a disaster.
>>
File: stallman-weighs-in.png (22KB, 821x396px) Image search: [Google]
stallman-weighs-in.png
22KB, 821x396px
>>58412385
>>58412433
>>
>>58411950
choo

>>58412385
please die. Angular is so ECMAScript 5
>>
>>58412750
great, so use choo.

>>58411626
only javascript.
i usually just use leveldb since so much shit is written around it, including distributed leveldb.
I've been using choo with hyperscript for most frontend shit. jus werks.
I host my own shit on my own hypervisor.
Other shit I keep on some shitty DigitalOcean box.
>>
>>58412972
that choo library looks good. verrrry similar approach to what i'm using
>>
I'm making an agario clone, using ogario server.

I can't figure out how to make viruses work though. this is my js script:

http://game.eggchan.org/main_out.js


Has anyone used Cigar with Ogario, and made custom virus skins?

Currently I've gotten this far if you want to test it out/try and hack it: game.eggchan.org

any suggestions/flaws would be appreciated
sorry mods for the shill
>>
>>58414614
Why make a clone?

Why not make a new, equally difficult, game so you have a chance of becoming a rich io dev yourself?
>>
>>58406238
Because technical ability plateaus at a certain point for people who are illiterate, even soldiers know this.
With a few exceptions silicon valley are the bottom-feeders of the tech industry.
>>
What is the best javascript book? Or web dev book in general
>>
>>58406366
JS is undergoing some damn fine changes in ECMA-7, God bless brendan eich.
Besides, as long as browsers are implementing it, JS will be important, even after the last dude on earth switches to fancy web frameworks and dynamically generated content so that your grandchildren won't know what HTML or CSS are, even then JS will be useful.
>>
is the MEAN stack any good?
>>
>>58411780
at this point I'm convinced this is seriously the best way
it's so easy, it's tried and true, and everyone knows it. no frills or anything
>>
>they brought back (you)s

Thank fuck.

So hard to find replies without it.
>>
>>58415399
not really, but you can still make something ok with it
>>
>>58415399
Mongo is shit and Angular is dying
>>
>get into webdev 2012
>pretty much at the same place i was 5 years ago because i have no motivation
love life
>>
File: idunnolol.png (114KB, 258x258px) Image search: [Google]
idunnolol.png
114KB, 258x258px
>>58406238
because programmers don't work on farms?
>>
you wouldn't surf the web
>>
Question to people who monetize their website via ads: How much traffic would you need to get at least 100$ per year? I'm building a small fandom-specific website and I want my website to pay for itself.
>>
>>58415277

Nicholas Zakas' _JavaScript for Web Developers_ is a good first start. It goes further into the implementation and memory management details than most other books, and doesn't assume you're such a beginner you can't reason about pointers, frame stacks, etc. This makes it a good book for explaining language semantics in terms of implementation details.

It doesn't cover any ES6 features, but it's probably best to start with the 'Good Parts' of ES5 anyway and work up from there.
>>
>>58412433

In my experience, Angular is an awful choice for SPAs. NG1's dirty checking approach scales poorly; NG2 is an overengineered mess.

I would - and do - write large SPAs using React and Mobx. You could switch React with Preact, or MobX with redux, but the approach is the same: virtual dom, unidirectional data flow, modelling UI state as a reduction upon a stream of events.
>>
>>58418191
There is no clear answer for this one because there are too many variables. It depends your niche (how much will you earn per click), the audience (location, how often they click), the design of your website (where are the ads located, what size do they have) etc. But I'd say depending on your niche a 30 unique visitors a a day.
>>
>>58418417
But it can also be 100 visitors a day. The only way to find out is to try it.

I do recommend making your own affiliate ads instead of relying on adsense. Then you can target your audience much better. And its less invasive.
>>
File: 1482040275663.webm (1MB, 640x480px) Image search: [Google]
1482040275663.webm
1MB, 640x480px
i am hosting a small image board, when I go to domain.com it should go to domain.com/wakaba.html

do I just change wakaba.html to index.html?

its hosted on cpanel, not a vps because it was cheaper
>>
>>58418615
Thats the best option. You can also redirect the traffic by using a htaccess file but you should stick to convention.
>>
>>58411626
javascript
express
firebase
javascript
react
google
>>
>>58406238

>99% of web devs are hardcore lefty nu males or feminists who put a bunch of stickers on their laptop, color their hair, wear thick framed glasses, and think they're better than everyone else.

This describes the InfoSec guys perfectly. 99% of the 33c3 people fit into that category..


Webdevs are maybe 40% like that, but you also find a lot of normies and bros among them, guys who are into programming, but misfits that can't (wont don't want) a Java dev carrer because of the collar and tie and the mentality that comes with it..
>>
How hard is it to create a small website literally just meant for the 6-8 friends that hang out in my ventrilo server?

How expensive is it to host a website of that size?

I have a very small list of things I need it to do

>Host a download or link to a download for our personal minecraft pack
>have links to other websites
>have pages for a bulletin board and shit

I basically don't need anything to actually be linked to any sort of automatic feed or anything. For example I want to have a web page for common shit like

Links and instructions to download and install MPC-HC, Syncplay, CCCP etc so people can watch stuff together easier and all the links and shit are in one place.

I have an external two terrabyte hard drive and I'm pretty sure I can connect it to my router via usb. Is there any way I can privately allow people with a security key to directly download shit from my external drive remotely without getting assraped by feds?

How do I host this type of site without it being findable by randoms?
>>
>>58420401
Make facebook group.
>>
Hi /g/

I wan't to freelance webdev as a part time, but how to design?
As I would only have partial time on this I would like to know what you guys think is the best way to have sellable web sites/apps?

Should I just use Bootstrap?
WordPress?
HTML+CSS from scratch?
Other options?
>>
>>58420812
wordpress or another cms because then your normie clients will be able to edit content on their own + plenty of already designed layouts you only need to slightly customize, so you don't need to be gay and own a macbook to make ok looking websites
>>
How resource-intensive it is for the client to handle a HTML5 canvas redraw every keystroke?

I want to make a dynamically updating text in a canvas that's tied to a textbox. As it stands right now the canvas will have to redraw 8 text instances and 2 image instances every keypress.
>>
>>58418191
About 100k.

Very roughly.
>>
>>58420959
Scratch that. 175k to 200k for 100 dollars.
>>
This probably gets asked every thread, but where do I start learning?
I get that the OP has several resources for learning, too many in fact I'd say. I just don't know what my progression should be like. I'm starting from absolutely no knowledge.
>>
My website has a table, and I would like to put the text in each <td> (169) of them into an array without deleting the text in the tables.

How do I go about this, I am hitting a brick wall here.
>>
>>58420419
I don't use facebook.

I'd honestly rather pay $99 for a 3 year hosting deal, learn html, and make my own website than make a facebook group and require people to join it/manage it and shit and have that stuff viewable on their facebook shit.

Also I've decided to just host my own FTP instead of trying to host download links on the site.

I'd still like to have a website though that I can make web pages for friends to view stuff and junk and provide useful resources.

I also checked if the domain name I want is available and it is.
>>
>>58421018
>>58420959

Wow, not that guy but websites need shitloads of visitors to get any money?

How do people who do these blog sites make anything?
>>
>>58421030
I started a year ago and I don't think there's one "right" or "best" way to do it. Eventually you'll end up learning from different sources (online courses, books, Youtube tutorials, sites like MDN...). At first everything will be overwhelming and confusing, but before you've realized it, you will have learned a lot. Just start with HTML and CSS, and learn general programming concepts. Then you can move to Javascript and Python, for example.

Just a small tip, though: don't just read/study. DO STUFF. Make a project out of everything you learn.
>>
>>58421049
They have multiple ads and use slideshow articles to get every visitor to load like 30 ads.
>>
>>58421049
I own a website and no one really gets anything from ads. You get more money from affiliation programs (Amazon, etc) and sponsored articles. You can also ask for donations or create a Patreon, depending on what your site is about.
>>
>>58421030
* Learn how to make static pages with html and css
* Pick and learn a server side language
* Learn SQL and basic relatioal database management
* Pick and learn a web framework for your server side language
* Learn js and any amount of meme js libraries you need
>>
>>58421034
I wrote it in codepen, but fucked my while loop so it crashed and I lost it.

Basically getElementsByTagName("td").length to while through where you add getElementsByTagName("td")[i].innerHTML to an array.
>>
>>58421030

Block A (1-2 weeks)

1. Learn HTML5

2. Learn CSS3

3. Learn responsive CSS3 (basically your website changes on small screens)

Block B (1 week)

4. Some theoretical background (use wikipedia and google):
Client-Server modell, HTTP requests (Get/POST/..), HTTP status codes (i.e. "404 - not found"), AJAX...


Block C (2-5 weeks)

5. Learn JavaScript (You need to be expert, just fluent). I recommend "Eloquent JavaScript" (free ebook with a tutorial) and "JS: the good parts" (a classic and pretty short).

6. Some basic JS libraries, I'd recommend like Jasmine (test driven development is a good for beginners), jQuery (old, but still usefull) and Browserify (or Webpack). Maybe Bootstrap.

7. Learn how to use FireBug (or Chorme developer extensions or Dragonfly) and GitHub.


When I say "learn xyz" I mean "use it" and "build stuff with it". There's no use for academic methodology in web dev. Just try to think of a project. Can be small (online calculator?) or medium (online chess?) or bigger (bulletin board?). Then try to split the problem and google the questions that arise, for example "How to make buttons in HTML"..


Then it all depends on the route you want to take:

I recommend learning a backend framework.. Do you know any programming langauges? For Python there is Django, for Ruby there is Rails and for PHP there are many good frameworks. You can also use Go or whatever..

Personally I would not recommend PHP, but that depends on your personal taste. For example Rails is pretty beginner-friendly..


Godspeed.
>>
Guys, if you have had trouble applying to a job then APPLY NOW.


I went from getting zero responses to half a year to passing screeners tests and calls and now I'm getting a phone call with the companies developers.

New years is THE time to apply, I'm guessing.
>>
>>58421261

Oh, I forgot:

When I write "1-2 weeks" I meant the time you need to get some fundamentals and solid understanding so you can move on to the next topic. Not to become an expert.

Of course it also depends on the time you have, if you only have 1-2 hours per day it will take a little longer than that.


All in all you need a few months until you get what it's all about. After one year you can go out in the wild if you want to.


Also learn some simple SQL, I forgot to mention that..
>>
File: 1478784696747.jpg (37KB, 509x435px) Image search: [Google]
1478784696747.jpg
37KB, 509x435px
Hello fellas.

I'm using Mongo in an Express e-shop (my 1st) to create users and check if they are logged in (works)

How would you suggest is the safest way to make an Admin user?

I was thinking either add a boolean property to the User object in the database and then checking if its there (the only way to make a user with the admin property in true is via the mongo shell)

Any other ideas?
>>
>>58421343
for very simple sites without any actual user roles it's okay.
if you need more complex roles or permissions look into claims based authorizations.
>>
>>58421090
Do you really need a framework?
>>
>>58421442
unless you want to reimplement how to talk with clients using the http protocol, yes.
>>
>>58421442
>>58421460
Easier database integration is also a big plus
>>
>year of our lord 2017
>JS objects, maps and weak maps still don't natively support objects as keys
>not even ES8 does

let map = new Map();
map.set({ a: 1 }, 2);
console.log(map.has({ a: 1 })); // nope


But hey, at least now we have spread operators every fucking where
>>
>>58421544
because it's not the same object.
try
let map = new Map();
let obj = { a: 1 };
map.set(obj, 2);
console.log(map.has(obj));
>>
>>58421575
Yeah I know, I was complaining about the lack of data structures where you can pass objects and expect them to be processed by value, not by reference
>>
>>58421607
you could stringify them.
>>
>>58421630
Yeah, it's more or less the only viable solution right now. It's just that having to write stringify/parse functions every time I want to have objects as keys is a giant pain in the arse.
>>
I'm nervous. This follow up call is with developers.

I have never talked to another web dev in real life.

Are they just going to ask a trillion technical questions to make me feel like an imposter? Because that's what I would do.
>>
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section

I'm not seeing the point of this being separate from a div. It should be obvious if a div is being used to contain groups of related content by its class and context.
The only reasons I can think of are using divs as containers for everything being seen as undesirable, or something like a screen reader being able to offer an overview of a page separated by sections to its user.
Are either of my guesses correct?
>>
>>58421741
Web developer is vague. Nobody is trying to out prove you unless they're competing with you on a contract faggot.

Why are you talking with other developers anyways? For funsies or what?
>>
UIKIT 3 RELEASED

UIKIT 3 RELEASED

https://getuikit.com/docs/introduction
>>
File: jewinternet.gif (2MB, 388x356px) Image search: [Google]
jewinternet.gif
2MB, 388x356px
EASIEST WAY TO MAKE MONEY

>get a nice blazer and some basic dress pants with some nice shoes
>go to local university/art shop/hipster assembly
>advertise that you're making websites for artists and musicians
>do the first 3 or so free
>do them
>get those clients to spread the word
>add those websites to your portfolio
>start charging $300 for a website, $100 for a page, and $50 for maintenance and small changes
>rake in ez squarespace money

HIPSTERS HAVE TOO MUCH MONEY! They don't know HTML or CSS and they all want their shitty squarespace website to have their shitty spotify and soundcloud playlists embedded. A website takes like 6 hours to make and you get $300. Just adding a page you can do HIGH AS A FUCKING KITE within an hour.

DO IT! EZ MONEY EZ LIFE! Rip off HIPSTERS!
>>
>>58421741
They'll probably ask you basic questions related to whatever technical skill you put on your resume to check if you didn't lie about it.
Expect to have to implement small programming challenges on whiteboard or whatever depending on how serious the company is.
They shouldn't try to bring you down tho, if they do you might not want to work with them anyways.
>>
>>58421821

>A website takes like 6 hours to make

So in 6 hours, you find out what they want (colors, design, doing wireframes or at least a sitemap), you generate content (maybe a small logo), create the HTML and CSS, test it with a few browsers, get a domain and deploy it?

Either you are clueless or pretty fast.
>>
>>58421804
It's a small company. I talked to operations, they gave me a test to do, the developers looked over the test and want to talk.
Basically I have to talk to everyone.

>>58421883
I hope they don't test me again, but I would understand if they did since I have no degree or prior related professional experience.
>>
>>58422238
>you find out what they want...

Yeah actually it's that fast. Most of them don't know what they want, so you take whatever vague shit they throw at you and you make a website. Sometimes they want more work, but you can just charge more to get them to back off from redesigning over and over again.

Let me break it down for you:

First meeting: 1-2 hours
>you sit down
>ask them what they want
>ask them for assets like photos, playlists, facebook pages, et cetera
>get a color wheel out on some shitty color wheel website
>have them goof with that for like 5 or 10 minutes
>make a decision of the colors and write them down for use
>"I'll meet you back in a week and show you how it's going."

First draft: 2 hours
>sit down
>use their colors to do a basic html/css template
>add in their content and format it
>you're done, html/css isn't fucking hard or time consuming if it's just a portfolio website they want

Second meeting: 30 minutes to an hour
>sit down, show them website on computer
>"OMG anon you're the best do you want a blow job? :DDDDDDD"
>ask for suggestions or input, half the time they'll be fine with what you have
>if they ask for a complete do-over, tell them that adds on the price because of the work you've done
>it is their job to give you competent instruction and if they don't, then you do what you feel is best... always make that clear
>NEVER EVER redo the entire thing again for the same pay, that's wasted work

Final draft: 1-2 hours
>you do their final changes
>you're done
>the end

If they don't have a domain, get them to pay for it and tell them to set up an account. If they're too lazy, do it for them and charge a premium. It takes like 10 minutes to buy a domain and server and to upload your html/css and art assets.

It's that quick man. I'm being serious. It's only hard if you let them fuck you. If they don't do their goddamn work, you tell them that. Oh, you wanted different colors? You should have told me that earlier.
>>
>>58422345
>they gave you a test
Uh, I dunno then. Good luck? I hope it wasn't a real test about your work competency
>>
>>58422355
I should really reiterate the latter points:
>get as much instruction from your client as possible in terms of how the website looks
And:
>never redo work

You make it their responsibility to tell you how to make their website. It's their money, it's their product, ergo it's in their interest to put as much input into the conversation as possible.

One good way to get them to think of the layout of the site is to get them to grab a notebook and to literally draw the website as they want it. Have them set up margins and borders. Have them draw the navigation bar (if there is one) and make them give you an idea of how you navigate from one page to another.

You tell them straight up that you don't redo work unless they want to pay for all the work you did before. You'll make changes as they give them to you, but you can't let them come to you at the second meeting and be like:
>No no no, this won't do. I want it all redone.

Fuck that, not your problem that they're wish washy. Be confident when you tell them this at first. That's why it helps to have a blazer on with some nice dress pants and shoes when you enter meetings or do pitches. Make yourself look important and that your time should not be wasted.

Faggots that waste your time and don't pay will do so because they think they can just beg for free shit from you. Become a professional, do not let yourself get owned:

https://www.youtube.com/watch?v=jVkLVRt6c1U
>>
File: 1478041729917.jpg (33KB, 600x465px) Image search: [Google]
1478041729917.jpg
33KB, 600x465px
>>58422345
You have to understand them, job market is filled with "self taught" programmers and cs graduates who can't for the life of them use a search engine to solve their problems once they're stuck. They just want to filter the retards out, as long as you can think a bit for yourself and have a general idea on how stuff works you should be fine.
Good luck anon, pls make them hire me once you're in ~
>>
I have made responsive websites with both Skeleton and Bootstrap, and they have both been "Mobile first"

When employers want you to know about responsive design, do they mean like that, or are you expected how to create a responsive website from scratch with no framwork grid to help?
>>
>>58422911
just what it is.
if they'd ask to not use pre-existing tools already it's a red flag, you don't want to work there.
>>
>>58422355

>Most of them don't know what they want

People who don't knwo what they want are the most difficult customers. You have to come up with everything yourself. Then they critizice but won't give you any input, so you do something else until they finally think it "looks good". You also have to be subtle so they feel it's still "their" website and not a premade product. You have to make them talk and propose a lot of stuff..


>if they ask for a complete do-over, tell them that adds on the price because of the work you've done

And BOOM you're burned for your audience. John Le Hipster will tell it to all his friends and they will also tell it to their freinds..

That's the problem with your strategy, you lay all eggs in one basket. If you can't deliver good quality, people that know each other will sooner or later compare their sites and notice that every page kinda looks the same.


>NEVER EVER redo the entire thing again for the same pay, that's wasted work

This is true, but does the customer agrees with you? If not, see previous point.


>If they're too lazy, do it for them and charge a premium

Your target market are technological illiterate people. They don't understand internet tutorials, they want a shiny website on the interwebs and don't care about the details.


>>58422495

It's cool to be the unfuckable web dev, but this only works if you have enough customers so you can afford losing one or two idiot customers (and you will have one or two idiot customers).

But if you plan to make money by pajeeting sites, you have to build up a good reputation.


I'm not 100% convinced..
>>
>>58422911

Don't make it overly complicated.

They want a site that looks good on mobile, that's all.
>>
>>58421274
Best hiring periods are Janurary and February
>>
>>58422943
Hipsters are pretty forgiving. You'll have a few spoiled brats that get mad at you, but if you live near a university, you'll get more good reviews than bad reviews.

You have to be upfront about it. If they don't agree to your terms concerning work and redoing work, then tell them you're not interested. You're a designer, your time is valuable, it's their job to give as much instruction for your time as possible. After a certain point, if they want to keep nitpicking and ask you to waste more than 30 minutes to an hour changing something about the website, add that in as a fee.

If you're upfront and direct and honest, they can't really say you're fraudulent. And, quite honestly, most of them are too illiterate to even be able to critique what you give them. They will compromise at the end of the day, because they want that fucking website. I wouldn't obsessively worry about the ones that want to waste your time. It's a bluff they pull most of the time.

Never give a website over until you get paid. The second meeting you give them no code. You show them the website on your laptop or work station and you ask them what they want else done before you finish it up and you guys do the trade.

I don't know how else to convince you, I had one shitty client that screamed at me for not responding to her over a weekend (when the site wasn't due until the next week). Because of that, I did the bare minimum of what I was required to do and gave her the website for the amount agreed upon and I went ghost.

Quite honestly, those clients are bitter people that don't have any real friends in the first place because they're toxic. You will encounter literal sociopaths that will try to ruin you, but my advice is to separate and ignore them. Do not feed into their gossip, just keep providing a good service to others.
>>
>2017
>still using the term "website"
>>
im out of the loop a little bit in terms of modern web apps. Is the standard to do everything without refreshing the page now? im assuming javascript makes that possible?
>>
>>58423437
It's called SPA, I wouldn't really call it a standard, but it's used quite a bit.
>>
>>58423209

call it whatever, it confuses the normies adding to our air of tech wizardry
>>
File: 1454157066026.jpg (21KB, 354x354px) Image search: [Google]
1454157066026.jpg
21KB, 354x354px
Is it worth starting to learn web dev stuff now?

If so what should I do with my domain wavs.io?
>>
in PHP why does POST refresh the page and GET does not?
>>
>>58423804
???
submitting a form always refreshes the page.
>>
Ok I am getting somewhere with my JS code, at the moment when the user clicks or drags over cells on a table, it adds them to an array. The issue I have is when the user "Unselects" a cell, all it does is add the same info to the array again.

How do I get it to delete when a cell is unselected or unhighlighted


$(function () {
var isMouseDown = false;
$(".ranges-grid td")
.mousedown(function () {
isMouseDown = true;
$(this).toggleClass("highlighted");
userHands.push(this.innerHTML);
console.log(userHands);
return false;
})
.mouseover(function () {
if (isMouseDown) {
$(this).toggleClass("highlighted");
userHands.push(this.innerHTML);
console.log(userHands);
}
});

$(document)
.mouseup(function () {
isMouseDown = false;
});
});
>>
>>58423831

when i have my submit button open a new window the first page doesnt refresh i use GET
>>
>>58424048
neither does post.
>>
>>58415310
that's where you're wrong friendo. webassembly is going to deprecate JS when there's a native DOM API. webdev will be finally be free from the JS cucks
>>
>>58424149

is webassembly literally its own language? what does it resemble the most? will the browser interpret it?
>>
>>58411626
backend: Common Lisp
backend libs: n/a
db: Postgres
frontend: Parenscript
frontend libs: n/a
platform: n/a

get on my level fgt
>>
Should I use SQL, couchdb or mnesia with Erlang? And in general, what's the difference between SQL and noSQL databeses?
>>
>>58424271
https://www.quora.com/What-is-the-difference-between-SQL-and-NoSQL-databases
>>
>>58423746
>If so what should I do with my domain wavs.io?
Gay porn site;
World meme database;
Hookup site for underaged girls and old dudes;
Shove it up your ass.
>>
>>58423746
>Is it worth starting to learn web dev stuff now?
Yes.
>>
>>58424524

you see a lot of these type of questions. Pretty retarded sounding honestly. Should I learn x? Is is it worth to learn x?

damn people. Do you want a career or not...
>>
Launchcode anon with another update

Did a mock interview session last week, LC employee gave constructive advice and suggested it may be a few weeks before I have the opportunity to interview. Am going to a LC meetup this week and will report back. Came up with a new dev project to work on this week and at the meetup
>>
>>58424831
Try direct applying too.

I'm the guy that had their launchcode app expire and had to retake it.

I'm since on my second interview with a company.
>>
>>58424868

What are some good job sites? Somebody just told me to check out angel.co
>>
>>58422380
What do you mean?
>>
Anyone got any recommendations for text books?
Looking for something to learn the fundamentals of web technology. Tried looking up Programming for the World Wide Web but a PDF of it doesn't seem to exist.
>>
Anyone know any jquery... Have a bug that's been fucking me over for a week+...

.on("mousedown") to capture a mouse event ...
Was working and then all of a sudden it doesn't anymore. It no longer fires on a left click, only a middle and right click now. Went back a few commits that I know were working, same thing, doesn't fire on left click anymore. This is in chrome btw, it still works fine in firefox.

But even in chrome if I find some basic mousedown examples online, the demo still works with left click...

IM SO MINDFUCKED RIGHT NOW
>>
>>58426647
Need to see code.
>>
>>58424037
Keep track of the "state". When you click on it and it adds to an array, try to add a data attribute like "data-selected=1" to the table cell. Then do a check for that attribute when they click on it, and if it is 1, then ignore the code.

And that's how you add an unselect. When they select something with data-attribute=1, remove that attribute.
>>
What colour schemes does /wdg/ use?
>>
>>58426892
>>
>>58426803
simple example:

https://jsfiddle.net/Lmygnvmr/

This works for me, but the same thing doesn't work in my webapp.
>>
I dont know how to respond.

If gmail ever does the "anon is typing a message..." then I'm fucked. I've rewrote this 20 times already.
>>
Got an interview with a recruiter in two days. I guess they'll be looking to place me with some of their clients. My real issue is that I have no idea what to expect from this scenario.

Am I going to be doing white board questions? Fizzbuzz? How technical is this going to be? Will I have to do the technical stuff for their client in the future? I was thinking it was just going to be an HR style interview, but as I sit an think about things I dunno if they're going to do technical stuff too?

Anyone have some experience with recruiters and their methods? That can clue me in or give advice?
>>
>>58426910
perfect
>>
>>58427096
If it's a recruiter, it's a 90% chance that you're used as "fodder" so that they can send in real candidates later.

Basically, they send you in for the interview, then they will ask you what's how the interview is and if there's any technical questions and what they are. They will use this information to prep their real candidate.
>>
>>58427079
But what's on your web app. Is that exact code, when ran in your web app, not working?
>>
>>58427124
O-Oh seriously? That's a thing??
>>
>>58427171
Depends. You know if you're the fodder or the real candidate depending on what they tell you how the interview is going to be; and whether there's a technical test, and if there is, what's on it.

There's a chance that the client will pick you, but once the interview is over and the recruiter wants to "talk" about the interview, don't tell the, anything specific.
>>
when and why will web assembly take over?
>>
>>58427157
yes, i pasted the exact block just to test the simplest form/rule out other factors... nothing.

All my commits were working and suddenly one day left click just doesnt work on chrome anymore... it works on firefox
>>
>>58427248
What version of chrome? Is your webapp on a phone or something?
>>
>>58427214
Fucking noted. Thank you anon. This will actually give me a chance to practice interviewing then which I desperately need and give me a chance to hopefully meet their clients, maybe I can at least make some sort of an impression.
>>
>>58427263
55.0.2883.85 64bit

its for standard desktop browsers
>>
>>58406097

I feel ya. After reading this I truly understand why Trump won.

http://www.recode.net/2016/12/20/14013610/gender-diversity-women-race-age-geography-initiative
>>
I am trying to create a for loop that will start by making a table row, then make 13 <td> elements filled with the info from an array.

How do I get it to add something to the newly appended tr?

$( document ).ready(function() {
for (i = 0; i < 13; i++) {
$( "#ranges" ).append( "<tr>" );

}
});
>>
>>58427400
Why not build html inside for loop for the table?

like

var html = '';
for ( ...) {
html += '<tr><td></td>' + ... + '</tr>'
}

$("#ranges").append(html);
>>
>>58427311
Do you have any other libraries that are conflicting? If you have two different versions of jQuery being included, it can cause conflict and neither will work.
>>
>>58427400

https://jsfiddle.net/obxrak4f/
>>
>>58408811
Add php to your path, if not installed
>>
>>58426159
pls
>>
>>58427471

Sorry I don't completely understand?
>>
Having to maintain a legacy Angular app is pure unabridged suffering
Gotta love having your state disseminated in 46 nested scopes
>>
>>58421790
pls
>>
>>58420870
just use angular lmao
>>
>>58427498
illgo through and check, thanks man. its probably a library conflict... its just strange to me why it would work in firefox and not chrome, what possible causes are there
>>
>>58427703
You might have another event handler that's stopping the second one from triggering by halting the event's propagation
Open Chrome's console, select the html element and check what event listeners are attached to it, see if removing any of them makes the code work again. The bubbling might even be stopped at a lower level (ie a descendant of html, probably inside the body), so that might not solve anything
And make sure you're actually clicking on the HTML element. Depending on the page's CSS, it might not occupy the whole page but only a portion
>>
>>58426910
the nostalgia
>>
>>58427325
Eww..

I got through like 1/3 of that to the point where she was complaining about people who worked late.

If you can code, you can code. That's all there is to it. These fucking people think it's like McDonald's where you learn how to code through a poorly made 1 hour long orientation video the day before your first shift.

Bitch I've been doing this my whole life. It's the only thing I'm passionate about and they think they should get my job because their skin is a little darker and/or they have a hole instead of balls. Yeah fuck no. Take your skill-free ass to the back of tax-feeder line and fuck right off. thanks.
>>
I own sandwichartist.org for meme purposes.

What can I do with it that won't get me sued since subway owns Sandwich Artist?
>>
>>58427542
http://www.w3schools.com/ is a good place to start
>>
Anyone want to practice?

Given array #1 with values 4,3,2,1
Given array #2 with values 9,7,6,5

Reverse array #1 and alternate values with array #2 then output the result as a string with digits separated by a -

Expected result 9-1-7-2-6-3-5-4
>>
File: firefox_2017-01-11_00-38-40.png (640B, 117x37px) Image search: [Google]
firefox_2017-01-11_00-38-40.png
640B, 117x37px
>tfw it's not aligned
>>
File: 1484048297131s.jpg (11KB, 213x249px) Image search: [Google]
1484048297131s.jpg
11KB, 213x249px
Hello again lads

I'm using passport to validate a user (which works) and am now trying to authorize an admin
The database is in Mongo

User.findOne({"email": email}, function(err, user) {
console.log(user);
if (err) {
return done(err);
}
if (!user) {
return done(null, false, {message: "User doesnt exist"});
}
if (!user.platneHeslo(password)) {
return done(null, false, {message: "wrong password"});
}
if (user.mama === true) {
console.log(user);
req.session.admin = true;
console.log(req.session.admin);
return done(null, user);
}
console.log("nothing on passport fired, moving on");
return done(null, user);
});
}));

once I hit the express route that checks for an admin, the function fires, but the last route is fired (i.e.: "nothing on passport fired, moving on")

What needs to happen here is if(user.mama ===true) gets triggered

the console log returns { _id: 587549290be48ca16b4386a9,
email: '[email protected]',
password: 'pasword',
mama: true }


tl.dr = how do I trigger key: value on a mongo database call?
>>
>>58428957
vertical-align: top
>>
>>58428888
assuming both lists are the same length,
import Data.List 

alternate xs (y:ys) = y:(alternate ys xs)
alternate _ _ = []

practice a b = intercalate "-" (alternate (reverse a) b)
>>
I want to learn C# and .net

Is that good choice? I wondered between PHP and this
>>
>>58429050
I'll try it, thanks
>>
>>58429095
php is open source, so
>>
File: firefox_2017-01-11_00-55-42.png (624B, 81x34px) Image search: [Google]
firefox_2017-01-11_00-55-42.png
624B, 81x34px
>>58429050
>>58429098

:(
>>
>>58429134

isnt it better to learn language as C# so i can understand programming a bit more?
>>
>>58429141
kek
did you just edit that image ?
>>
>>58429084
Nice. I'm guessing that's python since there isn't a bracket or semicolon anywhere?
>>
>>58429155

sounds to me like you already made up your mind brah
>>
>>58429141
transform: translateY(-50%);

or 50%. One of those should work.
>>
File: Brackets_2017-01-11_01-01-41.png (3KB, 392x23px) Image search: [Google]
Brackets_2017-01-11_01-01-41.png
3KB, 392x23px
>>58429167
I'm fairly new to web dev, I used text-align: top for img{

}

That was the result.

Is pic related ok?
>>
>>58429177
it is haskell!
>>
>>58429187
>transform: translateY(-50%);

This is great, thanks a million. Just need to class that specific img.
>>
>>58429217
It will just better center the image. Most images when centered go off the top or something like that.

>>58429191
Get your CDN link here http://fontawesome.io/get-started/

Add what it gives you to your <head> and replace the <img src="img/email.png"> with <i class="fa fa-envelope" aria-hidden="true"></i>
>>
>>58429191
I meant did you edit image in paint for comedic effect ?
Anyways just try another value or somethin
http://www.w3schools.com/cssref/pr_pos_vertical-align.asp
>>
>>58429239
>http://fontawesome.io/get-started/

That's cool thanks. Bookmarked for later
>>
I don't get the Angular/React JS meme.

What exactly does it do? Why would I use these as opposed to basic jquery and html/css? Like, what's the point of these frameworks?
>>
>>58429291
mvc framework on client side, as well as less lines of code so easier to write and maintain once you know the framework
downside is you need to learn he framework + you depend on them not fucking everything up every updates or so
also old browsers compatibility
>>
>>58429291
It's for groups of coders to "be on the same page" when it comes to development. Of course, that makes you expendable, too.
>>
>>58429341
>>58429357
Okay what's the advantage of doing MVC framework? I first heard it with Ruby on Rails but I just don't get it. I guess it's for non-static html pages like Facebook and Twitter?

In other words, could you please explain how these MVC technologies enable websites like Facebook or Instagram or whatever to be more effective? Are they more inefficient with loading content and shit like that?
>>
>>58429400
mvc is ui design concept aiming at decoupling model, view and controller so you can actually update one part or the other without actually having to rewrite everything else.
you should read on it (and design patterns in general), it's important stuff
>>
>>58429024
Ident and use a code tag. Otherwise no one will help.
>>
>>58428888

https://3v4l.org/mjNVW
>>
>>58429597
Nice, anon.

I did it similar, but with foreach and reversed my array in there.

Love the shorthand conditional.

>>58429196
It looks so clean. I want to learn it.
>>
So junior level is above entry level?
>>
>>58429141
before trying to fix anything make sure to add reset.css + normalize.css before your css files
>>
This place I'm interviewing for doesn't have a single developer connected on linkedin.

There's everyone else besides developers.
>>
>>58407105
because a monkey could do front-end and back-end requires intelligence and PC understanding
probably just an apex of salary/demand for them right now since there's a surge in demand and the supply hasn't caught up
they're the ones who can generally succeed in the field market themselves because they have the audacity to grossly over represent the complexity and value of their skills and the boomers and x'ers hiring them are too computer illiterate to know the difference
Once most schools get teaching 16 year olds to do it in three semesters of light instruction and the supply stabilizes there should be serious decline in salary
>>
>>58410889
how do they have an entire course on windows server administration
>>
>>58411495
>also what text editor do you guys use?
i dont get why people use text editors and not IDEs
>>
>>58420401
>my ventrilo server?
Christ just get discord
You just described discord
How can you be both 12 and also use something as outdated as ventrillo
>>
What do I ask for when negotiating salary?

If I somehow get to that point this round.

I asked for 50. They said they could probably do that. Their site listing was 35-55. Seemed safe. I make 14k passive so I'll be fine.

Do i ask for extra vacation? Ask for more money? I imagine they will be a reverse salesman and try to get me for 40. Tips and tricks?
>>
>>58432272
>I make 14k passive
Howd you do this
>>
Styling question. How come nearly all JS code is executed after domContentLoaded? Ie:
document.addEventListener('DOMContentLoaded', function() {
....
});



Why don't most sites do something like this:
function helper_function1(...){ ... }
function helper_function2(...){ ... }
function helper_function3(...){ ... }
function helper_function4(...){ ... }

document.addEventListener('DOMContentLoaded', function() {
....
});


It would mean less waiting time for the user as all helper functions could be defined while the page loads
>>
>>58433317
I doubt it would have any significant effect, especially compared to DOM manipulation and synchronous I/O operations, which is what generally slows down page loading the most
>>
Is HTML usually written by hand, or are there design applications for it? I'm kind of confused what workflow I should be using for that since it seems like the frontend sort of gets conflated with the backend when working with PHP and templating engines.
>>
>>58435210
>php
>templating engines
>html

what year is it?
>>
/wdg/, I've got nothing but time for the nest month, maybe 2 months. I'm out of work and have two paychecks from that job coming in.

Can I realistically learn enough to secure a Junior Web Developer job in 2 months? I'm following the LearnCode.Academy flowchart, and I'm doing a little personal portfolio/CV website on the side to hone my skills.
>>
>>58435373
if by web dev u mean by wordpress monkey then sure. but full stack, no
>>
>>58435397
ignore that 2nd "by" there, thx
>>
>>58435373
You sure it's not possible for someone to learn PHP in a few months?
>>
>>58435373
Learn it well no, but enough to BS your way through or get a crap job yes.

Will you have enough time to actually get the job and get income within 2 months? can't be sure but you should work somewhere else or get some other guaranteed income so you don't have to worry about rent or other expenses like that.

Look up jobs in your area and see what there is, if you see wordpress stuff focus on looking into that. the flowchart is good for actually learning it properly but wordpress is a bit more specific.
>>
>>58435476
I can get a shitty job no problem, I just figured since I've got a bit of time, maybe it'd be enough to get my foot in the door somewhere while I've got so much more time to learn.

I don't wanna BS, I do wanna actually learn. So maybe I'll just find a job and commit a few hours a night to learning while I work.
>>
>>58435495
One of the big things i've read alot of since actually just maintaing a portfolio and stuff doesn't really keep you from doing other stuff, you might as well be applying to all the jobs you see come up near you while learning more. No real reason not too.

Ammount you can learn and how quickly really depends on your experience with coding and just motivation. I've just sort of every couple months gotten really into it for the past year and a half or so and am going to try and start applying later this month.

If you can work at it 4/8 hours a day every day you will be able to get it done pretty fast but from no experience (I already had experience with python and c++) at all I've seen people on reddit say they did it in about 6 months studying alot.

Some front end jobs will hire with very little skill though, just html and css knoweldge if they think you are good and will train you there, and that then depends on selling yourself which if you are good at then that opens up tons of stuff.

I know it's not my strong suit so I'm focusing on getting some decent knowledge/examples and selling myself with those.

I rec just searching on reddit or stackoverflow for things about junior jobs and what people did to get/hire for them (ones that explicitly say self taught especially) if you want more perspective
>>
>>58435568
I guess I'll have to commit a lot more time than I expected!

My primary concern is mostly about me as a person: I tend to get complacent with a job and stop trying to develop my skills because I feel like I don't need to. It's a fucking shit personality trait that I need to quash to be honest.

I'll probably spend the next few weeks bootcamping myself in basic front-end, then get some non-dev job while I study back-end frameworks in my spare time. I dont think it's worth applying to any dev jobs while I'm still not even done learning JS.
>>
>>58435680
Yeah that was my thought process so I'm waiting atleast till have I have a good foundation in the general stuff, good grasp on react, and maybe php.

I have a feeling actually working will be very different from self-teaching, in that you will have very direct motivation for learning and understanding more because you are being introduced actual code and problems.

Learn vanilla js before you do much with Jquery to note bento.io has some decent resources for learning the frontend stuff better which I used quite a bit (not as useful for later stuff)
>>
can jquery .load() a .php?
>>
>>58435844
you don't understand how server side languages work.
the browser accesses the php file, the server runs whatever it is and returns the output to the browser.

so yes, you can load a php file to get its output, it's like any regular file the browser could access.
>>
>>58435763
I think that was my problem at my most recent job.

My cousin is a front-end web developer and he's ALWAYS learning new stuff to get what clients want so I guess you're right on the motivation front.

I didn't know about Bento.io, I'll move on to that once I'm done with the LearnCode.Academy video series. Thanks!
>>
>>58435949
Stuff usually isn't that different so learning more once you already know a good ammount is very different from learning stuff initially.
>>
>>58411626
are you frontend libs in typescript? if so pls share, it would be interesting to see one written by a non-pajeet(react/angular/etc).
>>
File: 1483583132302.jpg (64KB, 798x567px) Image search: [Google]
1483583132302.jpg
64KB, 798x567px
What are some good web fundamentals text books?
Tried looking for Programming for the World Wide Web but that shit is nonexistent online.
>>
>>58411626
Backend language: JS/ES6+
Backend libraries: Express
Db: Redis, Mongo
Frontend language: JS/ES6+
Frontend libraries: React, Vue

I've kind of started developing a visceral hate for C# and Java backends after having to maintain a number of them for work, for personal stuff I almost always go to Express nowadays
>>
Ok I am having an issue and I am hoping that its going to be obvious for you what I have done wrong. I have a array full of data, 13 rows of 13 strings (I have only put 2 rows of 13 in here to save space). The idea is it will take the data from this array and put it into a table on my website, but at the moment, it only ever puts the last row of the array into the table.

How do I edit this code so all the arrays rows get put into tables rows.

  
var allHands = [
["A3o", "K3o", "Q3o", "J3o", "T3o", "93o", "83o", "73o", "63o", "53o", "43o", "33", "32s"],
["A2o", "K2o", "Q2o", "J2o", "T2o", "92o", "82o", "72o", "62o", "52o", "42o", "32o", "22"]
];

var handsTable = function () {

"use strict";

var table = $('<table />'),
rows = [],
row,
i,
j;

for (i = 0; i < allHands.length; i = i + 1) {
row = $('<tr />');
for (j = 0; j < allHands[i].length; j = j + 1) {
row.append($('<td />').html(allHands[i][j]));
}
}
rows.push(row);

for (i = 0; i < rows.length; i = i + 1) {
table.append(rows[i]);
}

return table;

};
>>
>>58436785
You aren't making new rows, just redefining one
>>
>>58436785
lol you overwrite your row ariable everytime you iterate in loop so at the end you only get the last row.
create and append new row inside loop instead
>>
>>58436835
>>58436814

Ahh I can't see where thats happening, what part have I got wrong. sorry
>>
You aren't pushing it until it's done looping through so you just get a row that keeps getting defined, just push after the inner for loop
>>
>>58437019
declare row variable inside first for loop,
push row to rows inside first for loop after second for loop
>>
>>58437019
see
>>58437056
>>
>tfw you finish a long tutorial for something and when you actually try and start a basic project you just stare at it and don't really know what to do

fun feel
>>
>>58435373
If you can talk about what you can do and pass a code test? Yes.

Apply everywhere on stackoverflow jobs, angel.co, and indeed.

Post a resume to Craigslist and start searching for tech startups in your closest city.

A lot of these companies use their own website for job postings, which is good since you will have less competition.

>>58435473
I created an fmylife clone in 3 months working 2 hours a day with zero php knowledge. You'll be fine.
>>
>>58435568
Hearing the stories from people on reddit is discouraging.

>start learning HTML 2 months ago
>made a website for great-aunt
>she posted it to her 9 million facebook friends saying I made it.
>I get so much business I have to turn some down!

That's a basic reddit story.
>>
>>58437227
Yeah there are a variety, it's still buisness so if you can shill good you can know nothing and make hundreds of thousands a year

thats different then what we are working towards though
>>
>tfw you prefer functional programming
>tfw they want OOP
>>
>>58437305
>functional programming
>jobs
hahahahaha how delusional are you senpai?
>>
I got an internship at a small webdev shop! I showed them some code on my github, talked a bit about myself.

Finally an end to the NEET life.
>>
File: TFAbsjetX80.jpg (111KB, 801x1200px) Image search: [Google]
TFAbsjetX80.jpg
111KB, 801x1200px
>>58437884
elaborate on the stack pls
>>
>>58437884
>I got an internship
I got too. Congratulations bro!

I'm working with Ruby on Rails here. What you will work?
>>
>>58437930
They use:
Laravel + Angular or jquery + MySQL. All on top of Windows.
>>
>>58437968
>All on top of Windows

why do people do this

i started learning on it but it got annoying so I just went to ubuntu it just works much simpler
>>
>>58437884
i'm happy for you anon
>>
>>58438048
>why do people do this
They probably have a mid-level as their senior-level.
>>
>>58437884
Did you have a portfolio site, any education/work related stuff?
how long have you been studying?

Good job though, I wish you luck!
>>
>>58437884
>I showed them some code on my github
Care to share?

I have a final, hopefully final, interview with a company tomorrow for a junior slot.

My palms are sweating thinking about talking to a room full of people. I'm currently reading through their codebase since they have it on github thankfully. I want to know it pretty well by tomorrow.
>>
>>58438099
answer
>>58438090
and stack pls
>>
>>58438090
I showed them
- a simple TODO App, that uses a REST API. Made with Node, Express, React and MySQL.
- Project Euler solutions (65 solved)
- Sudoku solver in Python
- and some other small things purely for demonstration

Also talked a bit about how I followed a free online course, CS50 on edx.

I was lucky, this isn't Silicon Valley but some small village in west europe. I don't think I could replicate this success in America.
>>
>>58438090
I've been studying programming for a long time, many years. But webdev stuff for the last 5 months or so.
>>
>>58438048
Here they use:

Ruby on Rails + PostgreSQL + Redis + Docker on Ubuntu
>>
>>58438255

how come you needed an api to make a to do app? also, did you store the to do list entries in a database? im starting to make one myself and want a good idea of how the back end would work
>>
>>58438179
No, no, 15 years.

LAMP/LEMP/MEAN

I am a good example of why networking is important.
>>
>>58438327
The react frontend talks to the api. And everything is stored in a mysql db.
>>
>>58438347

sorry still a bit confused, what api did you use? is that the same as a server side language?
>>
>>58438426
an API is just an endpoint you can talk to on a server where any backend language runs.
you can have your helloworld.php be your API.
>>
>>58438426
The API allows you to decouple the client from the server.

For example, if I send a HTTP POST request to your-domain.com/api/add, using parameters "text=get milk", then I want a new TODO item in the database.

If I instead send a GET request to /api/get/all then the server should give me a list of all items.

Express makes routing really easy so use that, build a hipster frontend on top and done. Make it simple enough to explain in 1 minute.
>>
>>58438500
>>58438508

i see. So if you've built CRUD apps with php then you've built your own api? kinda?
>>
>>58438602
an API just returns data, there's no markup.
>>
Is yum the apple version of apt-get?

I know nothing about apple.
>>
>>58438675
there's no package manager from apple.
you can install brew if you want one.
>>
2 months into a job where I'm a single back-end dev (my first job), they just fired the front-end so this week I'm doing both and I want to strangle these people..

Is surviving this for 6-9 months worth it?
>>
>>58438787
so you are doing two peoples jobs in the time of one or have minimum twice more time to do your stuff now?
>>
>>58438787
On the plus side if you leave they're fucked so you might get away with asking for a raise
Hiring costs money and the new developper would need to familiarize himself with the existing codebase not to mention learn whatever tools you use he doesn't have experience with so he wouldn't be productive before sometime depending on project complexity.
Depending on how much the company depends on your project, you might just have them by the balls
>>
>>58438787

why did the fire the front end? front end is the easy part
>>
>learn webdev
>thinking im actually pretty good at this
>few years pass by
>"you know, i can probably get a pretty decent job as a webdev, im quite confident in my skills"
>watches https://www.youtube.com/watch?v=XKu_SEDAykw
>wat
>anxiety overload
>nvm i should just work at Mc Donalds

Is that just google or are all places expecting you to do that kind of stuff? Fuck me every time i think im getting a little bit good i end up being depressed when i realize i actually dont know SHIT. Impostor syndrome anyone?
>>
>>58438868

ive seen that before and actually guessed the first few solutions he had but got lost at the final solution. But thats software engineering stuff anyway. Web dev is a bit different. I doubt a web dev interview will ask you to write complex algorithms. They want you to be full stack.
>>
>>58438818

The deadlines here are a thing of a nightmare and depend on whether the management had a good sleep.
Often times I will be told about a deadline, stress myself to the point of jazz hands and by the time deadline hits and the project isn't done, we just move on and continue working the next day. Once they didn't even mention the deadline till the day after...

It's surreal here. It's me and 2 non-tech people that think they know something about webdev.
I will often be busy in the back-end but asked to correct a button cos it's more important.
The management consists of one person who thinks they're always right, even when they don't know a thing about what's being discussed. They also keep interrupting everyone but when you don't let that, they throw a tantrum about how now they're being interrupted.


>>58438854
Management wouldn't agree. I just pointed out a huge security issue in one project and in order for me to do that, I had to go through a 20 minute-long argument because management... I doubt they'd agree on a raise..
Ha, funny story about "familiarizing" myself. Day 1 I got thrown into a 6 months-in-development project and was told to change and fix some stuff. Deadline was that day. I still don't know how I managed to survive that week.

>>58438857
Because management cannot manage and doesn't know what they want 90% of the time.

The only positive thing is that I'm learning very quickly...
>>
>>58429141
oh fucky sides

I literally burst out laughing in the company bathroom thanks anon
>>
>>58438868
Most companies are not Google and actually have supremely shitty devs that write slow code but it "works".

You'll be fine.
>>
File: 1478664140823.png (864KB, 769x592px) Image search: [Google]
1478664140823.png
864KB, 769x592px
>>58438984
>Management wouldn't agree
Think about it tho.
It's way cheaper that way than hiring a new front-end. If you're junior lvl it's not like you cost them a lot anyways.
You now have more responsibilities than when they hired you, makes sense to renegotiate salary imo.
Also if they ended up agreing with you on security issue it means they aknowledged your educated opinion. It's like they whined a bit because you're young new dev and they're not used to getting told what to do but you put your balls on the table sayin "ayo listen fggt your site is insecure shit heres how we fixit" and they wre like "fine since you actually know webdev i have to agree with you altho i'm an utter fagget" (dramatization)
Maybe wait a few months first so they see how much they rely on you i dunno
>>
>>58439199
There's an evaluation coming in few months. I guess I will wait till then.
Like.. I love stress, I love that it makes me fell alive and such but having to argue with management every day about some stupid shit is exhausting and not even stress, just plain annoyance.
I might just swallow my pride or whatever for a few months and agree on majority of what they want. Simply default to "you told me to do it this way" and focus on getting better.
>>
>>58438868
That video is really helpful.

I imagine in a web dev whiteboard they might ask you how to do things not necessarily faster but different. They would want to gauge your ability to consider alternative solutions and weigh the disadvantages of each.

This video probably saved me. I would have thought if they were asking for clarification or asking about alternatives then that would mean I was wrong and spaghetti would spill promptly. Now I know that's not the case.

Anyways, what's your issue with it?
>>
Anyways, new thread

>>58439466
>>58439466
>>58439466
>>
>>58439375
They're probably as stressed as you are and have poor communication skills
If you're good they might end up valuing your input
good luck
>>
>>58439375
i mean your job is to be an advocate for the code, you should push back on whatever you think is wrong. im not saying argue with mngment but you need to give them your side so they can make an informed decision.
imagine if you never fixed the security hole and they got hacked they'd be furious you didnt tell them about it. you're the man with the knowledge so you need to start acting like an expert.
>>
File: 1472981328579.jpg (116KB, 540x534px) Image search: [Google]
1472981328579.jpg
116KB, 540x534px
Trying to learn ruby, i made this with sinatra and all it should do is check if a param is wrong or not, no matter which paramater/pass i use with this, i always get the same result: "hallo, your pass is ok i guess"

how can i compare and check if the string is correct then?

require 'sinatra'
require 'rubygems'

get '/auth/:pass' do
"hallo, your pass is #{auth(params[:pass])}"
end

def auth (try)
guess = try
truth = 'nigger'
if (try == truth)
return "wrong"
else
return "ok i guess"
end
end
Thread posts: 330
Thread images: 23


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