[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Development General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 30
File: php03.png (41 KB, 800x531) Image search: [Google]
php03.png
41 KB, 800x531
Death to PHPajeets!

Previous thread: >>54839165

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

> Discord
https://discord.gg/0qLTzz5potDFXfdT

>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/
https://www.youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB - "Crockford on JavaScript" lecture series.

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

>Backend development
https://en.m.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
https://www.youtube.com/watch?v=pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.

>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
>>
HEIL PHP
>>
What's some non-botnet Google Analytics I can use?
>>
if you want to know what's so bad about php then all you have to do is look at wordpress
>>
File: phpoo.jpg (318 KB, 1920x1080) Image search: [Google]
phpoo.jpg
318 KB, 1920x1080
>>
File: phpoo-2.jpg (65 KB, 639x345) Image search: [Google]
phpoo-2.jpg
65 KB, 639x345
>>
>>54882862
Don't use analytics at all.

Or make your own. That way you can make sure it's not a botnet.
>>
>>54882862
piwik
>>
>>54883002
This. Not to mention, that way your users won't block them.
>>
>>54882862
Open Analytics
>>
tfw everyone is sleeping and thread is about to die
>>
>>54885298
Not me. I'm preparing things for work tomorrow.

Gotta test those Redux stores. It's my first week and I need to overtime to look competent.
>>
Long live php
>>
File: pepe bombs himself.jpg (87 KB, 901x883) Image search: [Google]
pepe bombs himself.jpg
87 KB, 901x883
>debugging for 2 days
>nothing fucking works
>turns out my browser was reattaining an old session cookie
>>
>>54886026
When in doubt, Cmd + Shift + R
>>
File: stallman.jpg (156 KB, 700x466) Image search: [Google]
stallman.jpg
156 KB, 700x466
>>54886057
>cmd
>>
>>54886074
I actually have Ctrl, but I assumed most web developers use Mac
>>
>>54885891
don't do overtime for free, if you start off working more than you have to they will think start expecting it from you and you will inevitably burn out. this is absolutely retarded.

also react+redux is a shitty meme.
>>
>>54886141
I get what you say, but I'll do this only for the first week.

In fact, I only do it because it's also beneficial to me, I'm learning a new stack and all.
>>
>>54886026
I haven't studied anything formally and I make 15$ an hour writing php.

Did I do okay?
>>
>>54886243
As freelance?
>>
>>54886251
I'm working for a company writing intranet sites with controls and reports. Doing both front-end and backend, I'm the only web dev in the whole place.
>>
>>54886243
You're doing fine. But don't stay there for more than 1.5 years, keep studying and move out when the time is right.
>>
>>54886311
Yeah, it's very easy to become complacent and *poof* suddenly you're fired and no one wants to hire you.
>>
>>54886262
that's a fear i have.
>>
how good is wicket?
>>
File: 1464853787456.jpg (46 KB, 540x438) Image search: [Google]
1464853787456.jpg
46 KB, 540x438
>build professional looking website featuring fully deployed portfolio that uses almost a dozen separate technologies
>send carefully manicured resume along with thoughtful tailor-made cover letter to junior developer openings
>do this at least 50 times a week
>finish technical exercises with complete and well-documented answers within the same day as receiving them
>go on interviews, dressed business-casual with tasteful ironed blazer, smile and firm handshake, friendly, relaxed, confident
>hit it off with interviewers while solving all their code challenges and brain teasers
>joke with HR as they walk you out of the office and assure you they'll be in touch within the week
>send polite follow-up thank you notes to every person you met there later in the day
>never, ever hear back from a single one of them, not even to say no

So what is it?

Do I have something on my face?
>>
>>54886262
>>54886243
You're being underpaid to do a job someone else could do better. Gj anon. However you should fight for a better wage if you're the only web dev guy.
>>
>>54887690
If you have social media purge it. Read your resume and make sure it doesn't say something stupid.

Make sure that you give them the right contact info too.
>>
>>54887690
Wow man, no idea.

>business-casual
>smile and firm handshake, friendly, relaxed, confident
>hit it off with interviewers
>joke with HR as they walk you out

In posts like this, I would definitely say it's something about your personality, but you seem to get the hang of it quite well.

There must be something else about you, I don't know. I got my first junior job on my first interview by doing just what you did.
>>
>>54887690
There's something inside you, it's hard to explain.
They're talking about you, boy, but you're still the same.
>>
>>54887690
>half ass the exams
>sperg out
>a "yeah, maybe" personality
>still get hired

happened 3 times. they were shit companies though.
point is, never give up.
>>
>>54887786
never let down
>>
>>54887732
Just normiebook and there's nothing incriminating on there. I've been over my resume endlessly.

>>54887749
I can usually get along with people when I make the effort and I'm sober. Especially when we're talking about a mutual interest like this.

>>54887761
I wanna give them a nightcall to tell them how I feel

>>54887786
Maybe this is what they expect from developer candidates and my efforts to be sociable put them off. I'll go to the next one with some food stuck in my beard.

Anyway yeah, giving up isn't an option. It's just fucking frustrating when I feel like there's some red flag I'm not aware of
>>
>>54887849
mayhaps you ask for too much $ ?
>>
>>54887849
Maybe you should try to act like you don't care that much. Just like you would when hitting on the ladies.
>>
>>54887895
I look at the salaries listed for the company on Glassdoor and pick something on the low end. They usally seem to respond like I'm lowballing them. One guy even said "nah, we'd pay you more than that".

>>54887911
I'm starting to think that might be the trick. I hate that kind of game playing but I guess that's show business.
>>
>>54887943
That's not only show business, that's how people work. Get used to it.

It's not nice, but it's the best system we have. You have to not want shit to get shit.
>>
>>54887849
>I feel like there's some red flag I'm not aware of
Have you tried asking them? Most of the time they'll tell you what's going on, but only if you ask them.

As a side story, I once landed a job only because, a month after being rejected, I send them an email with something along the lines of "hey man I know I didn't get the job. I would like to know what happened or what did I do wrong, I would really appreciate the feedback so I don't make the same mistake on my next interview". Casual, unprofessional tone. A week later he called me for another interview, and boom I was employed.
>>
>>54887943
>They usally seem to respond like I'm lowballing them
Ask for more then. It's easy to interpret that as not having any confidence in your abilities.
>>
>>54887943
How much do you ask for and where do U live?
>>
>>54888001
That doesn't make any sense to me at all but I'm going to try it.

>>54888048
I live in NYC metro area and usually ask for $65-70K, which is about $10K lower than average for a junior position and really the bare minimum you'd need to live in this filthy rat trap town.
>>
>>54888123
I figure. You shouldn't be asking anything less than the average if you live in fucking NYC.
>>
add openshift to op, free servers with scaling useful for small projects or development
>>
File: 1464734345071.jpg (101 KB, 1280x720) Image search: [Google]
1464734345071.jpg
101 KB, 1280x720
What are the biggest memes in web dev? I don't mean career related me-me s, rather language and praxis related pitfalls. Learning front end for my project and probably need backend people on board too- what are some noobtraps here? bluepill me on memes

pic unrelated
>>
I'm trying to make a web game with socket.io and was wondering about how I should send data to clients. Should I emit events to clients as they happen or accumulate all events in an array that I emit/empty every X amount of time? I don't know what's better bandwidth/performance-wise.
>>
>>54888246
MEAN stack. Only the N part is actually good.
>>54888250
How realtime is your game? Multiplayer?
>>
>>54882866
This is a terrible example of a php codebase. WordPress is infamously clunky. Look at laravel for a good example of modern php. It's very pleasant to work with and php7 improved performance substantially.
>>
>>54888672
Yes, realtime multiplayer. It's not agar.io/slither.io but I'll use that as an example game for what I'm asking.
>>
>>54887690
Get 3rd party to check out your resume and for mock interview. Friend should be enough.
>>
In React:
className="NameOfClass"

Works, and:
className={NameOfClass}

Works, but how can I give the element resulting from the component two classes, one of which is fixed, and the other of which comes from data passed to the component?
>>
>>54888764
Don't buffer at all. Let the kernel optimise that for you. You also might want to use raw websockets, instead of socket.io, which comes with significant overhead.
>>
>>54888956
>Let the kernel optimise that for you
I'm not sure what that means. So if, for example I was emitting on average 500 messages with 8 bytes of data each a second to clients, there'd be no benefit to buffering them and sending out an array of ~17 messages every 0.03 seconds for a total of 30 messages a second instead? Is this already optimized behind the scenes?
>>
>>54889062
If you are sending it all to different clients, no. You are actually more likely to create lag. There could be some difference with per-client buffering, but that needs to be benchmarked in your specific use case.
>>
>>54889102
>If you are sending it all to different clients
Depending on the game, I'd probably be sending it to either every client or try to optimize it by, for example, only sending movement updates to players who can actually see the object that's moving (especially in any large-scale game).
>>
>>54889158
What language?
>>
>>54888924
Pass a variable that is calculated before, bro
>>
Is error handling important for web dev? Should you remove the error handling before minifiying the code?
>>
>>54888924
>trying to learn React before learning how to program
>>
>>54889181
nodejs backend and the frontend is just javascript manipulating canvas

only started learning webdev a few days ago
>>
>>54889241
That will likely run into CPU bottlenecks and GC pauses soon enough, though maybe it will work out somehow. Node is just generally a silly choice for game servers.
>>
>>54889208
The react library does just that, for example. It removes error handling for production.
>>
>>54889266
I'll make it anyway and see how it goes, I don't want to get caught up learning a bunch of different things.

What would you suggest instead?
>>
>>54889290
C++ is the default choice. Erlang is king in scalability, stability and availability. Go could work, but it's hard to tell right now. The GC needs a few more releases to mature.
>>
File: 1461082929678.png (311 KB, 652x669) Image search: [Google]
1461082929678.png
311 KB, 652x669
Hey, boys, rate my code ;P #GirlsWhoCode
>>
>>54889478
How do you find the product without multiplying them?
>>
>>54889994
How about

for(int i = 0; i < b; i++)
a+=a

or something. Derpmaster
>>
>>54889994
https://www.ixl.com/math/grade-3/relate-addition-and-multiplication

First google hit. 3rd Grade btw.
>>
>>54889994
you must be a cs student
>>
>>54890098
>b-but CS requires so much math! It's a really mathy, sciency kinda degree anon.
>>
Superior:

function no_mult(a, b){
var i = 0;
while ((i/b) != a){
i++;
}
console.log(i);
}

no_mult(5,2);
>>
File: 1462495326570.gif (263 KB, 480x479) Image search: [Google]
1462495326570.gif
263 KB, 480x479
>>54882866
>go to job seminar
>This lone chick employer with a hastily hand written name tag is sitting by herself
>inquire
>wants a business partner and "friend" (she mentioned friend about eight times during our talk)
>will heavily use WordPress but that's as detailed as it gets, doesn't even explain business purpose
>walk away wondering if I'd even see any code or just die alone in a basement surrounded by cats
>my sole experience with WordPress
>>
Post you web dev resume for critique. Also if you have a job, it would be nice if you posted your resume for inspiration
>>
How do I go about making a login session if the front-end is Angular2? Can't think of a secure way to ajax to a page securely.
>>
>>54890942
Dude, read this 2 good articles about it:
https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
https://auth0.com/blog/2015/04/09/adding-authentication-to-your-react-flux-app/

Sure, they don't exactly use Angular 2, but they explain the big picture, if you need more than that then google
>>
>>54890942
You would use token-based authentication over https, same as anything else. The fact that it's angular 2 is irrelevant.
>>
>>54891159
>>54891163
tokenmind
>>
>>54891163
>>54891159
Thanks
>>
>>54890432
Plz
(a, b) => new Array(a).fill(b).reduce((c,p) => c+p)
>>
I'm about to sign up for my first vps, going with Linode after a little research, people seem to find it more stable than others. What sort of plan should I go with for a nodejs dev portfolio website? There's not going to be much traffic to the site, nor high bandwidth, but the apps might be a little cpu intensive if lots of people are hitting it at once. It's either $10 for 1core/1gb or $20 for 2core/2gb
>>
You have to dynamically draw a tabular form based on three tables, rows, columns and number of tables come from each one. Data is loaded from and saved to an oracle database.

How do you do it?
>>
>>54892214
I'd just pick the $3.5 plan on ramnode. They have the best prices and my personal experience with them has been fine.
>>
>>54893063
you forgot the pic anon
>>
>>54890942
Hold up, does AJAX pose a security threat in itself? Not using Angular or any other front end framework, just wondering.
>>
How bad is this design? I don't know if I like the 3D motif I'm going with.

I'm also not sure about that "+" button to add a reference image. I'm not sure if it's clear enough that you need to click the button.

I also just realized this screenshot has me using the wrong icon for the "remove" button on images, which I can fix pretty easily.

(Note: the stuff on top isn't styled yet, which should partially explain why it looks so bad)

>>54893082
Yeah, I'm an idiot.
>>
>>54893107
Over https it's fine. Avoid using http, especially with any sensitive info, and avoid JSONP as much as you can and it should be fine.
>>
>>54893108
Without seeing the rest of the page and general site look, some quick things I would try are:

- The Remove button on the right should get a box shadow like the cards.

- Reference Images button should look like Add Another, and it and the Description textarea should be inside a card.

- All the Description labels should be bigger

- Price and submit buttons at the bottom left should be bigger.

- Is that the full width of the window? If so, I would add a bit of gutter space on either side of the page.
>>
File: 1464800288908.webm (269 KB, 512x384) Image search: [Google]
1464800288908.webm
269 KB, 512x384
>>54887690
>tfw the only thing I'm proud of and want to put into my portfolio is a barebones website I made for my wannabe neonazi friend as a joke for our group of friends where I combined his name and a bunch of ben garrisson meme nicknames and styled those into a swastika.
>can't put that in my portfolio
>>
>>54893108
more padding between elements, it's really tight
>>
>>54893239
What if you have to jsonp because you ate authenticating from a packaged app like through Cordova?

No other way to authenticate that I know of.
>>
>>54893344
I think one of the main problems is that the rest of the site uses a mostly-flat design. We barely have shadows anywhere.

I think I need to just use borders or something, this 3D shit clashes with everything else. Shit.

I'll hack on it some more and try to fix it.
>>
>>54890931
This.

I'm tired of day trading stock/crypto, working a low wage job, and freelancing.

Actually I'm not, but I would love to get a web dev job.

Still waiting on the launchcode interview.
>>
>>54893427
You would generally AJAX POST the login credentials to the server, which would check them, and send back a token, which the client then sends with every future request. The token expires after some period of time, or if the server invalidates it. There's really no reason to ever need JSONP anymore.
>>
>>54890520
That's one motivated ideaperson.

Bothers me that they don't learn to dev.
>>
>>54893635
Well the server is "cross-domain" technically since Cordova is local to the phone. Does that not matter?

Somewhat new to AJAX.
>>
>>54893670
You would need to implement CORS on the server and "preflight" the request. That's the current standard way to do things.

https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
>>
Okay, I tried to make it look cleaner/space stuff out more.

Unfortunately, I couldn't get firefox's fucking
screenshot --fullpage
command to work, so I can't post the full page. Still, I think this already looks a lot better. I'm not sure on the borders to separate different characters, unfortunately—would something else look better? I realized I didn't need anything to separate the reference images, but I think I needed something to separate the reference subjects. Maybe I could use different background colors instead, or something?
>>
On my website homepage I want to have a services section that shows the 8 main services my company offers. Everywhere I look for inspiration looks fucking boring and is just a 4x2 grid with small picture and text.

Has anyone seen any "Services" pages on websites that they think looks nice and isn't so boring?
>>
>>54894152
The border stands out quite a bit. Try making it a lighter gray or something. Also, all your text, buttons, and textareas need to be like...twice as big, those will be impossible to hit on small screens. The shading checkbox should probably go somewhere else if there aren't going to be more options, and the Description textarea at the top should be taller and/or narrower.
>>
>>54894363
Will they be links to more details about the services, or just a list? And how related are the services? Can you group them together at all, or are they 8 totally unrelated things?
>>
>>54894514

It would be nice to be picture and a descriptive text (a paragraph or 2) about the services.

4 are specialist cleaning methods
Engineering and repair services
Painting and Powder Coating
Metal Polishing
Delivery
>>
File: sparde.png (4 KB, 438x247) Image search: [Google]
sparde.png
4 KB, 438x247
Halp /wdg/
I've been hired to create an intranet for a medium sized business.
How fast can I learn this shit and what should I learn
>>
>>54894654
You learn as you build it. And when it's done you realize you should have done everything differently.

Just start now. html > css >javascript > php
>>
>>54894842
Would it not be better for me to make it in Adobe Memeweaver or Serif Page and just learn php to hook it up?
>>
>>54894447
There's the potential to have more than one option. In this case there's only one, but users can add as many as they want.

I'll make things larger.
>>
>>54893718
Cool. Thanks for the help.
>>
Am I a fucking idiot for learning Ruby and Rails?
>>
>>54894842
>You learn as you build it. And when it's done you realize you should have done everything differently.

Most accurate description I've ever read.
>>
>>54895147
No there's demand for it.
>>
>>54895234
But would it be a smarter choice to learn the MEAN stack instead?
>>
>>54895311
Learn both.
>>
why would i sometimes get an incomplete json object(like a missing field or attribute) and other times is complete?
>>
>>54895147
I'd start with Sinatra if I were you.
>>
File: Untitled.png (86 KB, 1561x1021) Image search: [Google]
Untitled.png
86 KB, 1561x1021
Me again, sorry guys.

I can't get my ubuntu server to serve anything but my landing page, all the routes I ahve defined in my routes.php for laravel aren't working like in my homestead virtual machine.

Maybe apache2 config? I'm really new to this
>>
>>54896879
Were you the one talking about that fashion social network a month ago?

Just asking because that domain name.
>>
>>54896879
do you have a virtualhost with www configured?
>>
>>54887690
I would hire you. You seem competent based on what you said in the post.

If you don't find a job...

>build professional looking website featuring fully deployed portfolio that uses almost a dozen separate technologies

Start building something and sell it. You can be your own boss. Find a part time job or do freelance work to pay the bills. Eventually, you can be the one hiring people who have something on their face.
>>
I'm trying to make a programming based news aggregator but I'm having trouble with the logic

Here's what I have planned for now; if anyone has any advice or feedback please let me know

>List of sites
>Collect titles from every article
>Check every article for terms (python, html, css, etc.)
>If it meets the criteria, add the article to a list for that subject

Does that make sense?
>>
Requesting pic of Rasmus quotes, similar to >>54890022 but more text and white background. Much appreciated.
>>
>>
>>54897718
>>54897893
>>
>>54897587
That makes sense. How will you collect the titles from the sites? Crawler, API, something else?
>>
>>54886096
macs have ctrl..
>>
>>54887786
always

never seem too desperate, I never give a fuck if I get a job & always do.. my work contracted 99% of the time
>>
>>54887849
>beard
there's your problem.
>>
>>54888250
bandwidth is always scheduled outputs every x amount of time

but performance is async and all over the place
>>
>>54889290
node shit is single threaded, too
>>
File: Capture.png (75 KB, 276x229) Image search: [Google]
Capture.png
75 KB, 276x229
Guys, I need your help. I'm looking for the picture of the PHP creator surrounded by quotes of him saying he is a terrible programmer and similar stuff. There was a lot in that image and I can't recreate it. Thanks!
>>
>>54897587
Have an array like kotaku js-entry_link and search the content for those keywords.

Most of the stuff I used to scrape had IDs so I could get element by id and search the innerhtml.
>>
if I want to make both front end and back end in JS what do I have to learn? This is confusing. Would node and angular do the job?
>>
>>54897979

Yeah most of the have an api (hacker news is the main one) and the rest have rss feeds - for the few other ones I'll just write a script to crawl the site every 24h.

>>54898587

Yeah that's what I'm going to have to do more times than I'd like and it'll be way too intensive but fuck it.

Thanks guys I just wanted to make sure I wasn't being retarded and overlooking an obvious solution thats less intense
>>
>>54898147
Rasmus didnt create the PHP programming language, PHP was originally just some Perl scripts, then some isreali guys turned it into its own language
>>
>>54882795
>Death to PHPajeets!

https://github.com/tylerhall/simple-php-framework
https://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
PHP is great actually.

>>54886096
A good developer operative systems that don't restrict his/her freedomsâ„¢. Also Macs for fags. And I'm homosexual. Seriously almost all the good devs I know do their shit mainly on GNU/Linux.

>>54889478
10/10

>>54896879
Setting up your own server is only useful if you have specific needs, which probably you don't. Stick with homestead or some vagrant vm.
https://laravel.com/docs/master/homestead
>>
>>54899058
>https://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
This looks like a clusterfucking mess, might as well use a framework.
>>
what's a good and easy css framework for responsive design?
>>
>>54899973
https://milligram.github.io/
>>
I'm testing out my new linode site right now. anyone know why the first style sheet wouldn't be loading? It just changes the color of p to red as a test

<html>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<head>
<title>Page</title>
</head>
<body class="container">
<div class="jumbotron text-center">
<h1>Welcome to my page!</h1>
<p>More content soon to come<br>Built with Node.js</p>
</div>
</body>
</html>
>>
What are most web dev salaries like? What languages are essential besides HTML5/JavaScript/CSS?

basically fucked up and after being broke as fuck at a shit minimum wage job I'm just gonna push hard to get a career going but just wondering if I should go the programming route or web dev. Just trying to make north of 50K a year and manage to pick up a job after a year or so of 35hour study weeks.
>>
>>54901348

A year wont be nearly long enough to become a programming - not even close.

junior web dev is in the low 40s in most areas in north america, but again 1 year is pretty optimistic because in that time you'll not only need to become very proficient a number of different technologies but also create an extensive portfolio.

It's still better than a piece of shit min. wage job, but just be realistic about it; even if it takes 3 years it's still the better option.
>>
PHP + Laravel managed by composer, providing routes for a simple API for dynamic content, for requesting resources compiled by grunt/bower

AngularJS frontend exposed by laravel, connects to local laravel API for dynamic content and to load resources compiled by grunt/bower via laravel

Front and back-end as well as grunt/bower/composer config files stored in git

Server config hiera/manifest stored in git

Using foreman to provision the server, puppet/r10k/hiera pull and apply server config, mcollective call to jenkins to run grunt/bower/composer
>>
What's the thinkpad/Gentoo of backends?
>>
>>54901464
>but also create an extensive portfolio.
not him, but this is where I've failed.

I intend to launch all of my projects, so I rarely have anything to show.
>>
>>54887690
post your resume
>>
>>54887690
>send polite follow-up thank you notes to every person you met there later in the day
Laughing_HR_Sluts.jpeg
>>
>>54887732
>tfw resume links a website that can be tracked to my social media

My account is nothing but pro-trump, anti-socialism and anti-3rd wave feminism.

Pretty sure all modern web devs are democrats which is funny considering how much they make.
>>
>>54901544
This sounds like a person attempted to portray themselves as smart.

Nothing is worse in web dev because it makes things confusing. Simplicity is always the smarter option. Sounding like an autistic robot is sure to lose your coworker's faith.
>>
any nopCommerce devs here?
>>
>>54901637
Go/Erlang
>>
>>54901544
overengineered bullshit, kys senpai
>>
>>54901637
Elixir
>>
File: servicesSection.png (24 KB, 1152x648) Image search: [Google]
servicesSection.png
24 KB, 1152x648
I am new to webdev and I would like to make what is in my image for my services section. Just a round area where the center is a large image of the service being hovered over with text underneath, and the 8 services all bordering the circle.

I have no idea what the best way to go about designing and implementing this is though, and how to make it mobile friendly, does anyone have any suggestions?
>>
>>54903596
JS image maps.
>>
>>54882862
do your own
>>
>>54886243
I don't know, that's pretty much minimal wage where I'm from. Writing code is harder than waiting tables.
>>
>>54888246
angular
>>
>>54888924
fucks sake
className={'fixedName ' + variableName}
>>
>>54889994
just leave
>>
>>54901348
I'm on 110k usd, doing mostly front end dev. but been doing it for 8 years.

you need to know a backend language, db stuff, and just be really good as javascript. frameworks come and go. it all clicked for me when I learned scheme
>>
>>54901544
terrible choices on every part of the stack
>>
Pajeet is intellect dripping down at every second. I doubt there is anyone smarter or wiser than him in the world. He is the epitome of intelligence. I think he is the greatest Indian of last 10-25 years. Maybe greatest Indian since independence, maybe greatest human since Gautam Buddha.
>>
>>54903596
use svg
>>
>>54896969
Definetly me! Thanks guys for helping out
>>54897014
since my landing page is being served yeah
>>54899058
I know but I'm moving in to remote deployment now.
>>
Anyone have any recommended EBOOKS for learning HTML5/CSS/etc? Suitable for a total beginner. I really despise using the websites for learning and would much prefer an ebook. Also, is there a reason to learn XML?
>>
>>54905112
PS: I can find plenty of HTML learning resources but I don't like feeling that I'm learning non-updated stuff
>>
>>54903987
hey git works fine man
>>
>>54903596
maybe this can help you
works only on desktop
http://www.europlaner.sportschau.de
>>
Has anyone here ever worked with sails.js?
I have to do a project for uni and my prof suggested using it.
>>
>>54905112
XML is easy so you might as well learn the basics. It's just a simple data management thing like JSON or SQL.
>>
File: trip2011 182.jpg (220 KB, 1067x1600) Image search: [Google]
trip2011 182.jpg
220 KB, 1067x1600
why is this Redux shit so fucking complicated, jesus christ im going to slit my fucking wrists
>>
>>54906698
You can't deal with Redux? It's even supposed to be easy, bro
>>
>>54906791
im dum
>>
-1 == true // is false

if (-1) true // is true
>>
Php is shit. Perl is the only good cgi language.
>>
>>54906837
when you do (-1 == true) it casts the true to 1 which is not the same as -1
when you do (-1) it casts the -1 to true
>>
>>54888246
CSS
JavaScript
>>
what are alternatives to JQuery?
>>
>>54906951
document.querySelector
>>
>>54906951
Coffeescript, Truescript.

Not exactly an alternative to Jquery but an alternative to javascript
>>
>>54906951
javascript is just a collection of little helpers, the alternative is just to not use it.
>>
>>54906984
jquery of course, not javascript.
>>
>>54889478
        int res = 0;
if (b >= 0) {
for (int i = 0; i < b; i++) {
res += a;
}
} else {
for (int i = 0; i < -b; i++) {
res -= a;
}
}
return res;


Did I get it?
>>
>>54906951
zepto.js
>>
>>54907017
Isn't that just jquery without IE9 and older support?
>>
yo, I got an image, and I need to put a div in the exact middle of it (the div contains an a tag, that is a button that plays a sound/preview) responsively.

I can't find a way to do it using display flex, absolute positioning, etc etc, any tips?
>>
>>54900796
can you access the stylesheet on the site through your browser?

404 or 500 or what
>>
>>54906951
DOM4
>>
>>54907112
put image and div in another div, make it relative, position second div absolute 50% top and left and translate it -50%.
>>
>>54907112
out of the blue I would say float, relative positioning and proper z order.
>>
>>54905211
>non-updated
Lmfao, html hasn't changed much in years. You'll almost never use more than the basics.
>>
>>54907107
what are you asking for exactly? whatever you're using in lieu of jquery is going to depend on the project/problem being solved. A lot of JS frameworks don't have you manipulating the DOM directly via selectors anyway
>>
>>54907193
I'm a different anon, just wanted to point it out.
>>
>>54907137
this, ghetto-center shit all day long with absolute positioning and css transform translation.
>>
>>54901637
Spray/Akka
>>
>>54907137
>>54907139
thanks famalams, I am gonna try this right now.
>>
>>54899389
It is designed to do small projects where you don't need something like Laravel or Smfony at all.

>All the web frameworks in the world won't turn a shitty programmer into a good one.
Alan Turing
>>
>>54906698
That literally looks like a store you'd find in Colombia, Peru, Ecuador or Venezuela in some non urban town.
>>
does anybody else think that Angular 2's returning of observables by default for simple HTTP requests is retarded? I get the benefits, it just doesn't seem like an appropriate abstraction for the majority of use cases
>>
>>54907777
No clue bro. But then again, what are you doing around Angular 2? Come to the React
>>
>>54906951
use plain dom anon
https://developer.mozilla.org/en-US/docs/Web/API/Document

jquery is like an all in one hammer with a hex key, a spanner and a wrench
it may help you with probably all you need, just make sure you don't go bashing everything around with it and always carry the specific tools for the specific job
>>
>>54907777
>Wasted quads
you are supposed to give the abstractions
mvw = model view whatever works for you
>>
>>54907815
eh I'm stuck on Angular 1 for a while, we started building our application a couple years ago and the codebase is too large to migrate at this point.

Honestly I don't have any real issues with angular, it's just easy to write poorly-performing stuff if you don't have a very good understanding of how angular works
>>
can i use php for a mmorpg?
>>
File: 1464950798326.jpg (77 KB, 1280x720) Image search: [Google]
1464950798326.jpg
77 KB, 1280x720
What's the flat-out simplest way to implement a password wall that loads in a few small bits of content from a back-end without reloading the page?
>>
>>54906951
Dreamweaver dot jay-ess

>>54907890
probably you can, but if you can't into AI use java or python

>>54907923
ajax?
>>
>>54907017
>>54907225
>>54907139
>>54907137
aight, the goold old position relative, top 50%, translateY -50% isnt working,

As an example, I am trying to center the circle, which is a div with an a tag that is an icon, inside these squares, which are images and have img-responsive (from bootstrap)!

thanks for the suggestions still, if you got more I am all ears bc this is harder than it looks for me
>>
>>54907879
I mean the abstraction provided for handling the response to an HTTP request. It's a one-time thing, why return an observable by default?
>>
>>54907942
How's AI linked to java or python?
>>
File: idiot.jpg (257 KB, 652x669) Image search: [Google]
idiot.jpg
257 KB, 652x669
>>54907013
hahahahahahhahahahaha
>>
>>54907945
post a jsfiddle example
>>
File: trying.jpg (25 KB, 800x600) Image search: [Google]
trying.jpg
25 KB, 800x600
>>54907945
forgot image
>>54907977
ok, will do, thanks!
>>
>>54907972
shitloads of libraries which give you a motorcycle with training wheels
you can also use lua, processing or lisp
>>
>>54907973
Thanks for the (You) m8, now show your own solution that works for negative values of b. Which >>54890432 doesn't
>>
>>54889478
return a(b);
>>
>>54890432
well shit nigger if we're using floats why not just do
function no_mult(a, b){
return (a / (1 / b))
}
>>
>>54908108
function product(a, b) {
if (b === 0) return 0;

for (p = i = 0; i < Math.abs(b); i++) {
p += (b > 0) ? a : -a;
}

return p;
}
>>
>>54907945
it's
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
>>
>>54908238
Bretty good m8. I thought of using sign(b), but a ternary operator keeps things neat.
>>
>>54907977
This is a very barebone version of it, but it is basically what I am trying to achieve. The play button should be centered on the img at all point in responsive. Maybe javascript is required?
>>
>>54908365
https://jsfiddle.net/b30gqLvq/
>>
>>54908365
>>54908390
https://jsfiddle.net/z8hhhfx2/
>>
Ok I'm refactoring code for one of my projects and wondered if there is a common standard to which code should generally be laid out? Usually I just do my own thing which comes out okay, but I'm wondering what everyone else does.
>>
>>54907977
>>54908365
https://jsfiddle.net/b30gqLvq/1/

the problem being that if you resize anything, shit gets fucked. I think JS will be required, but any ideas what's an elegant method for this?
>>
>>54908365
>>54908390
>>54908488
actually this is better
https://jsfiddle.net/6g3kbxo2/
>>
>>54908552
You are a beast, thank you! Good stuff. Can you explain your trick. How come this works so well? Thanks again.
>>
>>54908587
you wrap the image and position the button in the center based on the wrap.
it's that simple.

also I'd probably use background images instead of img elements.
>>
>>54908552
I'm guessing he means to center the images inside of their bootstrap column, so here's my stab at it:

https://jsfiddle.net/eh1e6t9g/
>>
I need to leave town. Is there some place where devs are in high demand? I'll go anywhere except some nigger country.
>>
>>54908862
Bay Area, Austin, Research Triangle, most major cities
>>
What should i use for so i can see the changes i made live?
I'm new to this so what should i use so it auto refreshes when i make change?
>>
How do I into database credentials security?
The plan was to store a config file outside of the web root, then just mark permissions so Apache can't read it.

Is that right? Is there a better way?
>>
>>54909195
just store them in a directory your webserver can't serve.
if someone has access to your server files then your database password is meaningless anyway.
>>
File: reaction.png (659 KB, 802x802) Image search: [Google]
reaction.png
659 KB, 802x802
>not using elm
lel stay behind the times javascripajeets
>>
>>54908305
Your implementation(in javascript at least) is 4 times faster than mine tho xD
>>
>>54909085
Atom or Brackets.
>>
>>54909272
I prefer TypeScript. q
>>
>>54909449
>implying you tried elm, talentless LCD javascrub
>>
>>54909542
TypeScript is a superset of ES6/7. Elm is another language you or anyone else on your project would have to learn. The hispterPoints++ is not worth it and never was.
>>
>>54882866
But 4chan runs php, and it runs fucking great.
>>
>>54909085
Meteor does that
>>
>>54909655
>great
lol no, it just works
>>
>>54909655
Yeah but the imageboard code is like 20 years old. If it were built today it would be in node.
>>
>>54909637
>Elm is another language you or anyone else on your project would have to learn
Yes, why have three talented functional programmers make a maintainable system when you can throw nine JS monkeys at it
>>
>>54909741
Nice projection. I see you suck at JS.
>>
>>54909655
I don't think you understand how much of a mess 4chan's code is
you should take a look at the leaked code and see for yourself
>>
why do all of you bully us PHP users so much All we want to do is make cools stuff on the world wide web.
>>
>>54882795
I have some friendly advice. Don't test your backend on mac(lol) or linux. Feel free to code on them, but don't use them for testing. Instead, use an old ass laptop running windows XP, and a tablet/smart phone.
>>
>>54909919
Explain, faggot.
>>
>>54909933
Im guessing he means for reverse compatibility.
>>
>>54909853
I'm not talking about how it works from a developer standpoint. I'm talking about how well it works for the end user. 4chan loads really quick, and it never lags, even on older computers.
>>
>>54909994
Because it was made for old phones around the turn of the millenium.
>>
>>54882795
If I want to learn webdev I should start with JS, right? The I was thinking of learning Node after I got the grasp of JS.
Currently studying Informatics(or CS as you call it in the states).
Also what is the best place to start?
FreeBootcamp?
Eloquent JavaScript?
Somewhere else?
>>
>>54910102
did you try reading the OP
>>
>>54910118
Yes, many times.
Codeacademy is really shit, so I am a bit skeptical of the recommendations.
I wondering what is "the best", at least for semi-competent people, to learning JS.
>>
>>54910102
Learn HTML first.
>>
>>54909736
>it would be in node.

For what reason? We have many choices for backends. Being that 4chan is such a popular website I would argue that the backend should be built in a language that has a high response time *and* isn't a major memory hog. Node doesn't really fit that picture as it leaks memory all over the damn place. If 4chan were being rebuilt languages like Go or C++ would be better suited than Node.js.
>>
>>54910342
Scala, even?
Thread replies: 255
Thread images: 30

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.