[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: 341
Thread images: 32

File: 1456449140972.png (868KB, 822x552px) Image search: [Google]
1456449140972.png
868KB, 822x552px
> 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/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
backendDevelopmentBookmarks.md

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/
>How to get started
> [YouTube] 2016/2017 MUST-KNOW WEB DEVELOPMENT TECH - Watch this if you want to be a web developer
https://www.youtube.com/watch?v=sBzRwzY7G-k
> [YouTube] Javascript is Easy - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.
https://www.youtube.com/watch?v=zf_cb_Nw5zY

>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
https://www.openshift.com
>>
tfwnogf.com

I just sent this to a recruiter as my work sample ;_;
>>
File: 1329594913055.jpg (50KB, 480x291px) Image search: [Google]
1329594913055.jpg
50KB, 480x291px
>>56114278
I tried phpmailer with my gmail account and the mail account that comes with my shared hosting account.

Neither worked out. I'm running out of ideas and suspect that even with a local mail server I'd be unable to get things working.
>>
File: webdev-general.png (969KB, 1200x630px) Image search: [Google]
webdev-general.png
969KB, 1200x630px
>>
React.js problem:

I have two React components. One is a container component that handles the state and logic. It encapsulates the second component, which is just a stateless functional component that renders UI.

The stateless component is going to render an accordion div to the page. When one accordion element is expanded, the others need to be closed. What's the best way to go about dynamically adding classes to elements in a situation like this, or in React in general.

I want to keep my styles separate from the components if possible (i.e. no inline styling, just my single external stylesheet).
>>
>>56128734
Why didn't it work? Did you try to debug?
>>
>>56129562
Somewhat. It told me I needed to activate support for insecure apps in gmail. I did that. Still getting the same error message.
>>
File: multiplefacepalm.gif (2MB, 250x214px) Image search: [Google]
multiplefacepalm.gif
2MB, 250x214px
>>56128634
Need your advice dear /g/entooman.

>be front-end developer fresh out of college
>currently doing my internship in a company as a jr. front-end developer
>hate all task I had to do (newsletters, basic responsive design, layout testing, legacy css/sass optimization, etc...)
>realise that I pretty much hate all tasks I have to perform

I'm considering to go balls deep back-end but not sure what stack/language to choose.
Have some experience with PHP but don't really liked it that much during my education period.

What would you advice dear /g/entlemen?

Ruby/ROR
PHP/Laravel
JavaScript/Node etc...
Somethingelse ???
>>
>>56130194
>Ruby/ROR
>PHP/Laravel
>JavaScript/Node
start with those, I'm waiting for this procastination to end to finally make a portfolio, probalby a VPS with different backend languages showing the same frontend.

is this stupid??
>>
>>56130315
I am planing to learn all 3 in the end but which should I concentrate on to get me some nice job as, at least, jr back-end developer?
>>
>>56129447
1. Make a default accordion class that starts with each element closed
2. Make an 'accordion-open' or somesuch class that overrides the default one and displays the content
3. Add a click handler to the accordion
4. When one of the accordion panels is clicked, detect whether or not it has the 'accordion-open' class. If it does, remove it, if it doesn't add it. If you're a jQueryfag, there's a .toggleClass function that does pretty much what you'd expect.

Your accordion's "state" is handled with css, so it can remain a stateless component.
>>
>>56130361
Aim for the one with most use I guess:

php
javascript
ruby

but there are good jobs (but few) for ruby since is not very popular in my country.
ymmv so do your homework, spend 1 week for each while you decide, js and php mostly
>>
>>56130361
>>56130315
>>56130194
If you're already familiar with javascript, start with node. Git gud with express, and you should have a pretty solid grasp of the fundamentals of handling http requests and whatnot. After that, you should be able to jump into any other backend framework a lot easier.

If you're not already decent with javascript, I would either still use node, or try a few other languages and stick with whatever one you like the best. You should probably start with a minimal framework before you go for something full-featured like rails, as it does a lot of 'magic' for you: >Ruby - Sinatra,
>Python - Flask,
>NodeJS - Express,
are all good options. Unlike some anons here, I don't think PHP is necessarily a bad option, but you should be aware that (IMO) the way you do things in PHP doesn't always map well to other languages, so you might have trouble migrating to other things if you learn the 'PHP' way first.

Also, there's no reason to learn all of them. What most companies want is someone good with one language, not someone that barely knows a lot of them. Learn one of them first, get good with it, then try to learn another one to help cement the language-agnostic components of backend in your mind. After that, you should be pretty well equipped to learn whatever weird framework you want within a couple weeks or so.
>>
File: cooper_thumbs_up.webm (2MB, 1440x1080px) Image search: [Google]
cooper_thumbs_up.webm
2MB, 1440x1080px
>>56130771
Finally a solid advice.
Thank you anon!
>>
What format should I use for a site's logo?

Typically I'd use a PNG, but is support for SVG etc decent now? I want it to look good on high DPI screens too.
>>
>>56130194
Another option to consider is Java with Play or Spring framework.

Personally I'd look at back-end job adverts, see which languages/frameworks pay the most, and pick that.
>>
What kind of projects should I put on my github page?
>>
>>56128640

You're not going to get hired.

>>56130194

PHP/Phalcon 3

Phalcon isn't babby's first framework tier like Laravel, but it's very flexible and fast as shit. I just got done rebuilding some piece of shit that pajeets built in Laravel and saw an 8x speed improvement. But you've got to know what you're doing to use it.
>>
>>56130837
>Personally I'd look at back-end job adverts, see which languages/frameworks pay the most, and pick that.

This

>Java with Play or Spring framework

Ehh...
>>
My non-production webpack bundles are 2Mb and take 9 seconds to render, am I right in thinking something is off? Here's my config:

var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
var path = require('path');

module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./index",
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015', 'stage-0'],
plugins: ['react-html-attrs', 'transform-class-properties', 'transform-decorators-legacy']
}
}
]
},
output: {
path: __dirname,
filename: "scripts.min.js"
},
plugins: debug ? [] : [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
],
};
>>
File: back-end.gif (971KB, 270x252px) Image search: [Google]
back-end.gif
971KB, 270x252px
>>56130837
>Personally I'd look at back-end job adverts, see which languages/frameworks pay the most, and pick that.

Where I live it's .NET central and I really don't feel like becoming confined in MS cage.
I do, however, like what MS did with TypeScript, this is some next level shit right there.

>>56130884
>Phalcon isn't babby's first framework tier like Laravel

I'll take this into consideration for sure but I don't think I'm ready for this kind of high level framework.

I think I'll go with NodeJS - Express for now as this anon suggested >>56130771
My goal right now is to get my foot in the door somewhere for back-end position.
And since I'm semi-decent in JS already I think it will be next logical step for me.

What do you guys think?
>>
>>56130985
welcome to node.js
>>
>>56129447
This is part of the reason I'm skeptical of React. Handling something like adding a class to an element should be trivial. The fact that you have to think this much about the allocation of state for something this menial is ridiculous

The suggested answer is not "The React Way (TM)" of doing this either >>56130465
>>
>>56131041

I know JS like the back of my hand, but I have a feeling that node will fade in popularity except for niche applications.
>>
>>56131409

Node is a good quick way to serve static files, and for dynamic stuff, it's no worse than C#, Java or PHP. What's more, NodeJS is still home to one of the quickest Web Socket implementations (if you avoid Suckit IO). Some of the stuff you can do if you apply some thought is very cool. Especially URL redirects and Rewrites. That shit's a pain when using Apache.
>>
>send resume
>they dont even send me a simple "no"
>>
>>56131529
Javascript is a disgusting franken-language though. Node is only good for concurrency, and there are better alternatives.

Redirects or rewrites aren't difficult in Apache. Though generally you just handle redirects at the application level.
>>
File: Abbie(5)-Feet-2297985.jpg (689KB, 1335x2000px) Image search: [Google]
Abbie(5)-Feet-2297985.jpg
689KB, 1335x2000px
>>56130814
No-one knows this?
>>
>>56131619

Javascript's data structures alone justify the existence of the language. JSON's probably more common than XML now. And the language it popularised functional programming tenets like lambdas and closures, which the C#, Java and PHP language designers are taking shafts up the ass to include in their work.

Javascript's account for numerical types is fucked, and at a certain level, the OOP model is confusing. But there are very few languages that are as flexible. Lua perhaps... and no one complains about that. Even though it's best interpreter is slower than the best JS one, and they're so close semantically.
>>
>>56130194
Wordpress on PHP is probably quickest way to get job but you will hate yourself. PHP with some framework is fine tho. Java or .NET will get you real job. Python for startup tier. Keep away from Node - javascript is shit and it's a lot less popular on backend than people think. Golang looks nice but not many jobs yet.
>>
File: revolver.jpg (17KB, 300x225px) Image search: [Google]
revolver.jpg
17KB, 300x225px
> trying to use decorators with eslint
>>
Is there a backend job for somone who knows only a little dev but a lot about networks?
>>
>>56131227
>>56130465 here. I mentioned doing it that way because anon specifically said they wanted it to be a stateless component (and also because of the .toggleClass thing). You could easily do it "The React Way (TM)" by either making the accordion a stateful component and storing the open/closed value there, or storing the open/closed value for all accordion panels in the container component (probably the most recommended way). It would be fine to do it any of those ways, really.
>>
>>56131889
png unless you don't plan on supporting old browsers. You could have the svg fallback to png, but then you might as well save yourself the trouble and just go png.
>>
>>56132172
>Keep away from Node - javascript is shit and it's a lot less popular on backend than people think.
[citation needed]
>>
I'm never getting a job.
>>
>>56131889
pure css
>>
Whats the best way to start developing web apps with a 2-man team? Im thinking learning laravel + js but any suggetions are welcome.
I want a change from my job working for literally pajeets using legacy oracle forms shit.
>>
>>56135209
Come here bro, give me a hug.
>>
>>56135773
Use Docker.
>>
>>56135941
I showed the recruiter my samples and he cut contact immediately.
>>
Thoughts on isomorphic development? What frameworks are good for this?
>>
>>56136100

Same thing happened to me a while back. I applied for a job and emailed a guy my application + resume and he got in touch. He asked me what have I created that I'm most proud of - I sent him a link to a project on my Git. Haven't heard from him since and that was 6 weeks ago.
>>
>>56136320
I wonder what they are looking for.

My site sucks, but 1000s of unique visits a week and it shows I know PHP.

Must I really do a parallax scrolling webpage with an HTML5 video of a hipster drinking coffee and typing on a macbook pro? "This man can HTML! - Mom's other son, Tyree" animate.css
"His github is a wall of green dots! - not myself"

Should I contribute to the most meme frameworks known to man just so my github looks better?

I fucking hate the current year.
>>
>>56136795
I can understand why I got overlooked. My code was messy, I didn't use a framework, and my last commit was some time last year.
Seems like you were in a much better position to get hired though, and you most likely will long before I do.

I've been trying to branch out these days. I'm making a mobile app with Angular that fees off a PHP API that I'm creating, hopefully someone out there will see that as being worthy of at least a phone interview.
>>
>>56137082
I'm hoping that the recruiter is just waiting for a response back from the company. More likely I just got dumped.

>I'm making a mobile app with Angular that fees off a PHP API that I'm creating
That sounds familiar. Not sure if you were the person I was talking to about Cordova a week or so ago.

I'm the one doing the same thing through Cordova but with JQM.
Post some code sometime. I'd like to see how you do things with Angular.
>>
>>56137244
You should try sending them a follow-up email if you haven't already done so. Let them know you're still available and still interested. I did the same but they didn't reply to that either so I gave up.

And yeah, I'm the same guy. For the past few weeks I've been fucking around with Cordova on and off. I started out by making the interface because I figured the API would be the easy part, wrote everything in HTML/CSS and JS - I basically wasted a lot of time. I only started learning Angular today so it might take me another few days before I have anything worthwhile to show. Right now I'm learning the basics of it before I start using http://mobileangularui.com/
For the first time in a long while I'm actually motivated to code continuously for hours on end.
>>
>>56137424
>I'm actually motivated to code continuously for hours on end.
Good stuff. Those times are the best. What's your app about?

>wrote everything in HTML/CSS and JS - I basically wasted a lot of time.
Is that a bad thing with Angular? That's how I did it. AJAX to PHP pages for whatever I need post_picture, login, register, retrieve_pictures etc.
>>
>>56137424
>http://mobileangularui.com/
I just checked this out and now I'm switching to it.

The drag features are perfect.
>>
why does this site reject my login? I feel like I've done everything perfectly, including the referrers and everything but it just won't budge

    import urllib.parse as parse

c=requests.Session()

tmp_headers='Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'
headers={'User-Agent':tmp_headers}

inbox='https://mail.aol.com/webmail-std/en-us/suite'

#we can set params! params=payload
get=c.get(inbox,headers=headers)

authKeys=getSessionKey(get.content) #<--tuple of session auth key and user id

print(authKeys)

print(get)
print(get.url)
# print(get.text)

f=open('out.html','w+')
f.write(str(get.content))
f.close()

f=open('key.txt','w+')
f.write(str(get.url))
f.close()

#SECOND_STEP
login_post_link='https://my.screenname.aol.com/_cqr/login/login.psp'

dictionary=dict(

sitedomain='sns.mail.aol.com',
lang='en',
locale='US',
authLev=0,

siteState=authKeys[0],

isSiteStateBase64=True,
isSiteStateEncoded=True,
mcState='initialized',

uitype='std',
use_aam=0,
offerId='newmail-en-us-v2',
seamless='novl',
xchk=False,
regPromoCode='',
doSSL='',
redirType='',
usrd=authKeys[1],
lsoDP='',
loginId='[login]',
password='[password]',

rememberMe='off'
)

post=c.post(login_post_link,data=dictionary,headers={'User-Agent':tmp_headers,'Referer':get.url})

print(post)
print(post.headers)

f=open('post.html','w+')
f.write(str(post.content))
f.close()


#now we check if we're logged in

get=c.get('http://www.aol.com',headers=headers)
print(get)

f=open('out2.html','w+')
f.write(str(get.content))
f.close()
>>
>>56130884
Holy shit, finally someone else who uses phalcon. Thats what we are using where i work. We are developing web based solutions aimed at enterprise only. Phalcon is a beast
>>
File: Capture.png (138KB, 1366x728px) Image search: [Google]
Capture.png
138KB, 1366x728px
>>56138733
fuck forgot my picture, should help clarify things a bit
>>
File: 1374061776765.jpg (62KB, 600x480px) Image search: [Google]
1374061776765.jpg
62KB, 600x480px
In the case of someone who wants to freelance web dev their way into a real job quickly...
Is it smart to go from knowing html/css and basic js to learning to create wordpress templates or should one pick a framework and learn the whole backend?
Is wordpress the best cms?
>>
>>56134473
About what- javascript being shit or less jobs? For former there is enough info in net and frankly every good dev should understand it by himself. For later search for node in any job listing and then compare it to Java or PHP or anything else big.
>>
>>56138937
Wordpress is one of the worst but also most popular. Take it off you want easy job. Take framework if you want real work and future.
>>
>tfw need to write airbnb styleguide lint at work

The ; are killing me. Just when I got so comfy skipping unnececary ;

at least plugins make it quick to fix it
>>
>>56128634
I cannot fucking figure out how to asynchronously upload a file using a XMLHttpRequest object. I can't fucking do it.

I've been doing this for like weeks, using blobs, encoded strings, arr buffers who the fuck knows.

Is it an issue with my web host? Why can I post a text file but not a small image, when both are read as binary string? Am I a fucking idiort?

Should I just give in and learn jQuery?

Fuck this Gay Earth
>>
Is there any way to have vuejs play nicely with complex objects? I've noticed it automatically creates getters and setters for data in Vue instances which is kinda screwing me over right now.

Should I just give up? Vuejs can do some really neat things with simple data but it just seems like whenever you add a touch of complexity, things fall apart with it and the only way to make it work is restructuring your entire project around it.
>>
What do you reckon is a good backend framework to learn, if you you're a "junior" in Ember.js?

I'm thinking the standard node+express, but how about sails?
>>
>>56131529
Why would you serve static files in node when Nginx exists?
>>
>>56141434
post code
>>
>>56138762

It really is. Actually I have invested in phalcon's development heavily and pay the developer a full time salary so he can continue development. Spread the word. Phalcon stronk.
>>
>>56136795
>I fucking hate the current year.
there's your problem. a 2 minute phone conversation reveals your eq (emotional quotient) is rock bottom and they move on.
>>
>>56141906
Why would you ask these dirtbags?
>>
File: 1458778874899.png (14KB, 160x157px) Image search: [Google]
1458778874899.png
14KB, 160x157px
Currently buying a domain for a close friend's company website. Who's information should I put in the whois?
>>
>>56142182
Gee I don't know, what do you think?
>>
>>56142218
Of his company.
>>
>>56142235
Gotcha. Should I put his name as well?
>>
>>56137790
Haven't decided what to make the app about yet. Doing basic login and CRUD operations for now.

>Is that a bad thing with Angular?
Nope, not a bad thing at all. I was just saying I wasted a lot of time doing nothing but fucking around with those instead of making something worthwhile.

>>56138011
Yeah, it really is good. Much better than using JQM imo.
>>
I've been making an imageboard with ASP.NET WebForms and I've somehow fucked up my Oledb drivers for my database

How 2 fix?
>>
>>56142561
>2016
>webforms

no way anon, why the fuck.
>>
>>56141434
just use fetch
>>
>>56142561
>webforms
What is wrong with you? Did you find 10 year old programming book?
>>
>>56142561
is this bait?
>>
File: from_beyond_the_grave.jpg (26KB, 460x343px) Image search: [Google]
from_beyond_the_grave.jpg
26KB, 460x343px
Make a replacement webpage for a family businesses. Will replace it more fully in like half a year. Just want to make a single long page with info on it and have each little section folded up so they can expand if they click on it. Stuck with wordpress cause its already set up and I dont want to have to yank it.

Any tips? Also what size should I make my pictures I have a couple hundred in lightroom and need a recommendations for a couple sizes. One for body pics and one for a couple pics at the top.
>>
>>56143270
>wordpress
>single page
>half a year
lmao what the fuck?
>>
>>56143331

Will make a new website in half a year. And do a real job of it then. For now I have a shitty wordpress site. Would like to replace it with a single page to sit there until I do something more.

Honestly I will still want a single page in half a year just a long well done one with wordpress completely yanked this thing sucks I dont have a blog.

Are there standard picture size conventions? I was looking on google for average phone resolutions and the only thing they is dependable is most people have low ass resolutions on their phones.
>>
>Front-end development

Fuck me. Why is the first image displaying, but the second one isnt? The only difference in jade is the src is a variable in the second one. Where does this ::after thing appear and why does it not show the picture.
>>
>>56143400
>standard picture size conventions
just use bootstrap and responsive images
>>
>>56143402
Scr != src
>>
>>56143402
>>56143457
this is why you use a proper text editor
>>
>>56143270
>>56143400

If you're just making a single page site, there's literally no reason to use WP. I have a sneaking suspicion you're doing something fractally wrong here.

>standard picture size conventions
Just make sure the file size isn't huge and use css to size them responsively.
>>
>>56143457
oh man

brb killing myself
>>
>>56143511

Im trying to make a temp page in place of the wordpress thing that is here so I can ignore it for 6 months until the off season when I actually want to spend time on it.

Well the images come off my camera into lightroom at 6016x4016. What should I use as image size when I prepare them to be used on the web?
>>
>>56143576
>What should I use as image size when I prepare them to be used on the web?

It depends on how much detail users need to get out of the image, but in general, you want them as small as possible without giving up image quality.

If you intend the image be quite large, you could probably cut them down to around 1000px longest axis without sacrificing much quality.
>>
What's a web service for c# and is it possible to connect it to a standard web pages?
>>
>>56143707

Thanks.
>>
>>56143729
Web api project template in Visual studio is standard REST api.
>>
>>56143729
dont do that

use your brain
>>
File: 1453815258001.jpg (59KB, 377x561px) Image search: [Google]
1453815258001.jpg
59KB, 377x561px
help me /wdg/,

i want to get into .NET MVC but cant find a decent tutorial. I've been watching a youtube tutorial with a ATM Application, but stopped after 30 minutes because it just felt rushed and all over the place.

are there any good books, tutorials or videos out there?
>>
>>56144014
Don't learn .net stay as far away from ms products as possible. If you want to do back end learn nodejs and or golang. .net market is oversaturated and all .net devs hate themselves
>>
>>56141131
Fuck off semicolon hater
>>
>>56144208
lol good luck finding a nodejs or golang job
>>
>>56136205
Bumb
>>
>>56144014
Try https://docs.asp.net/en/latest/tutorials/first-mvc-app/ . Also i hope you are using Visual Studio.
>>56144208
I am .NET dev and i am happy with myself. Mainly because i can use god tier language that is C# instead of shit that is javascript.
>>
>>56144244
I make 350k writing js. Sure there are a lot of .net jobs if you don't mind working for slave wages. 35k a year in the bay area won't even be enough money to live in a ghetto.
>>
Any lads familiar with any ecommerce platforms, such as hybris, ecommercetools etc. ?
>>
>>56144298
>I make 350k writing js

lol

I bet you also have a mathematics degree and your dad works at Nintendo.
>>
File: ROmXBXa.png (61KB, 571x472px) Image search: [Google]
ROmXBXa.png
61KB, 571x472px
Is this code shit? Should I change it to a switch?
>>
>>56144728
yeah it's shit.
you should change it to not hardcoded strings.
>>
>>56144728
Why do you have function sort() ?????????
>>
>>56143400
>half a year
>single page

I'm pretty confused. This is like a day of work.
>>
>>56142130
It's not. Getting a job in web development is the only thing I look forward to and have passion for.

It's the one thing I want...besides a gf ;_;
>>
Anyone know if I can get webpack-dev-server to reload my page when I make changes to a linked css file? It's only reloading when I make changes to the js, which makes sense, but I'd like it to do it on css also
>>
>>56145028
one after the other anon, you'll get a gf when your confidence is up from getting a job and having money
>>
>>56145056
I don't doubt you.

Heavily considering having my boss fire me, getting on temporary assistance, and working on my portfolio 12 hours a day.

It's a shitbag move, but at least it's not permanent gubment money.
>>
Giving it another shot at connecting phpmailer to my gmail account.

Do I understand correctly that xoauth2 is an optional alternative to logging in with username and password, or is it actually required to connect with phpmailer?
>>
Best frontend-technology?

I am thining GWT. Clean, fast, efficient.
>>
>>56145213
Wait, what are you trying to do?

PHPmailer like postfix or sendmail?
>>
>>56145220

Fuck off you GWT salesman.
>>
>>56145489
Why so mad though? Has anyone been shilling GWT or what?

Name better options and why.
>>
>>56145239
Trying to use it as a null client, so basically sending mails from my scripts by using my gmail account.

It's just a test scenario to see if it's possible or if there's something wrong with my server config that conflicts with using a null client. When it works I want to try it with another mail provider. Gmail just seems like a common usage so I thought it's easier to make sure with.
>>
>>56145101
>Heavily considering having my boss fire me
This might sound crazy, but why not just quit?
>>
>>56145633
fucking retard gwt is fucking 10 years old are you fucked in the head man? no one uses that shit anymore
>>
>>56145651
Severance pay, or if they dont offer that but you live in a European country you will most likey get atleast 10 months 80% salary from government.
>>
>>56145673
Right, Java is even older, C EVEN OLDER LOL. Who the fuck uses that shit.

Have you ever developed web-applications? Have you ever had a complex business logic with sometimes huge data to be displayed in the frontend?
>>
any tips on how to get better at making database tables. What i mean is that I would like to make smarter relations and tables.
>>
>>56146019
Just because they are used in legacy projects doesn't mean you should use them for new projects.

Anyway if you want to use Java so much use Spring Boot for REST and for front end use Typescript with Angular 2 or React, that's the modern approach for large projects
>>
>>56146092
Are you trying to say Java is only used in legacy web projects?

React is actually an option is discussion. We have competent people with GWT though that have developed modern shops with it. Solid and clean.

What are the advantages of React?
>>
Is it important that in ajax calls the send() request be last in code? I mean that the order should be
>create xmlhttp object
>open()
>send()
>and lastly check the status after sending and handle the response

Shouldnt this be logical order?
>>
>>56142941
>>56142912
>>56142568
It's not bait. I guess I didn't do any research when I started to learn about ASP.NET/WebForms but I've managed so far.

Is MVC faster?
>>
>>56145651
Unemployment requires you to be fired or let go, right?
>>
>>56147644
>>56142912
And oh, I originally started learning C# about two years ago and the last chapter of textbook (2012 edition) actually provided lessons on ASP.NET/WebForms. It was a textbook by Barbara Doyle.

I remember vividly how she referred to curly brackets as (and I am not shitting you) "curly braces."
>>
>>56128634

This has probably been asked a few thousand times before, but can you give me a quick hint what I should use:

Angular, React or Ember?

Are they equal in terms of learning curve, what are their pros, cons.. Any help would be appreciated.
>>
I am about to move into backend and I am being way to fussy picking which one to learn. I work at a web company atm doing some frontend / hacking wordpress themes. Every job I look at in the the north of the UK is PHP.

I was going to go down the route of learning ruby and then rails but the lack of rails jobs up north worries me I have not been to uni either I got my job straight from college. I think I may just be looking on the wrong job boards to be honest.
>>
>>56147772
Angular.
>>
>>56147772
india tier: ember

/g/ approved trendy tier: Angular

best current modern framework: React
>>
File: Face-Curly_Brace_r.png (2KB, 96x96px) Image search: [Google]
Face-Curly_Brace_r.png
2KB, 96x96px
>>56147717
>she referred to curly brackets as (and I am not shitting you) "curly braces."
Yes, and?

That's not even slightly unusual.
>>
>>56147313
nobody can answer your question until you explain that you are married to meme tier vanilla js
>>
>>56147997

What's wrong with ember?
>>
Looking at angular code for the first time. Pretty turned on.
>>
>>56147644
Webforms is legacy this point and was shit anyways. MVC is current thing and actually good. Also ASP.NET core was recently released that is serious update so try to look into it.
>>
>>56147717

>tfw when he doesn't realize that curly brackets is just plain wrong

That fucking reminds me of my grandparents always calling their fucking computer a modem, and the monitor a computer.

Parentheses (
Bracket [
Brace {
>>
My website is starting to look beautiful
http://echoz.rocks/
>>
my rails server isnt working

every time i type in 'rails s' it will start listing off all the files for this app but then it stops and just shows my root path.

i think it might be my gemfile that might be messed up but i tried it with a different project and its giving me the same issue.

can someone help me out or point me in the right direction?
>>
Going to apply for a Comp Sci with Web Dev course at Uni, I'm using Win10 currently and cannot afford a new OSX laptop, should I VM linux on my Win10? Any particular Linux distro or would it be worth just having a lightweight headless one with Vagrant to sync files?
>>
How do I select all elements with the positioning "float" in CSS?
>>
If I know mySQL could I apply for a junior SQL DBA role and not look retarded?
>>
>>56149856
Depends on what you're doing. A VM or Vagrant would probably be fine. As for distros, if you have to ask you should probably go with ubuntu/debian/mint or something similarly beginner-friendly.

Docker is also good, but there's a bit of a learning curve.
>>
>>56145028
you sound like a sad sack of shit and I would bet anything that you freak out if you come face to face with a woman or minority lets be real...
>>
>>56149683

Are you using the rails from the bin directory?

Otherwise it might be the wrong rails version (if you hava more than one installed)..


>>56149886

Depends on the company..

For a big company some SQL is not enough for a DBA. You should at least know you theory (normalisations), and stuff like PL/SQL.

For a small web-related company you should know various databases like SQL and Mongo and also when to use which language (pros/cons).
>>
>>56149885
>select all elements with the positioning "float"
select all elements? Like to assign attributes in CSS?
[positioning˜="float"] {
attribute:value;
attribute2:value2;
}


If that works for you cool otherwise use jquery bro.
>>
>>56149856
they will have you do everything in a unix terminal to do your homework because colleges are literal memes
>>
>>56150116
>let's be wrong
ftfy
>>
>>56150275
Real talk, what kind of people say they hate the time we live in? Outgoing people with friends? Do you think a normie would ever type that on a ching chong caligraphy board?

I thought this thread was about honesty.
>>
>>56150243
Turns out this is what I was looking for - the correct term was fixed, not float:

p[style^="position: fixed"]
{
...
}


Though this only works if "position: fixed" is the first thing in the style.
>>
>>56150342
Someone who made websites in the 90s.

You only had to know 3 things.
>>
>>56150134

>>56149683
here,

it looks like i am, last line terminal is giving me is

>from bin/rails:3ln 'load'
>from bin/rails:3ln '<main>'
>>
Where do I host nodejs stuff?
>>
>>56150753

updated spring, did a bundle install/update, commented spring out entirely, used spring stop.

idk what else to do and im not entirely sure whats happening but this is twice ive ran into this problem. and the first time, the person just kinda plugged away without walking me through what they were doing but im pretty sure it had something to do with homebrew and reinstalling a bunch of shit.
>>
>>56148193
Too stable, no guaranteed job security like you get with Angular when breaking changes get dropped and entire systems have to be converted to remain current.
>>
>>56151119
is this really what Angular is about?
I was thinking webdev is a big scam... guess I'm not wrong
>>
This question isn't precisely related to web development per se, but it is related to service providers that are *used* by many web developers.

I got $50 in Digital Ocean credit through the GitHub Student Developer Pack. I only became eligible for that pack after DO changed the credit from "$100 in non-expiring credits", so my credits expire in February of 2017 if I don't use them.

What are some other ways to get free DO credits? I've been thinking about writing tutorials ($50 in credit for updating existing tutorials, $100 for 800+ word tutorials, $200 for 1500+ words), but that requires an application and approval isn't guaranteed. Plus, I don't think I'm enough of a Linux power user to be knowledgeable enough such that I could write tutorials on stuff that hasn't been done before. I do have some knowledge of BitTorrent through the Linux kernel environment (e.g. rTorrent, Deluge, etc.) but I'm wary because DO is very strict on piracy and any BitTorrent-related tutorials might be seen as facilitating piracy. Maybe I'll do a DO tutorial on PowerShell on Linux in the future, since it's being opensourced.

Really, the only idea that's popped into my head is to scrape DO referral links from Youtube, Reddit and various /g/ threads.

Sorry if this is an inappropriate question for this thread.
>>
>>56151430
I got my $100 DO credit (yeah, they used to give $100...) with $5 in my (unverified) paypal account

>What are some other ways to get free DO credits?
they usually (or used to?? no idea) give $5/$10 coupons that you can find in the usual coupon sites.
>>
Best npm package for decryption?
>>
>>56150852
Heroku, Openshift, AWS, Azure, Google Cloud, any VPS provider. Depends on how much juice you need and how much cash you want to spend.
>>
>>56151514
"Decryption" is pretty broad and vague. Node has a built-in crypto module and there are tons of packages on npm.
>>
File: bot-traffic.jpg (63KB, 600x400px) Image search: [Google]
bot-traffic.jpg
63KB, 600x400px
I want to do a bot who can automatically add to cart an item in a specific time but I know nothing about programming except some Ruby basics

What do you advice me to do/learn ?
>>
>>56151497
> I got my $100 DO credit (yeah, they used to give $100...) with $5 in my (unverified) paypal account.

I found out about the Student Developer Pack after Github cut the credits to $50 and made them expirable.
>>
>>56151865
Go (golang): https://tour.golang.org
>>
>>56151865
What site? If they have a REST API you can use, you can do it with Ruby or pretty much any other language you want.
>>
>>56151497
Also, the coupons (like the ones on Retailmenot.com) are valid for new customers only. My DO account is 6 months old; I don't qualify for most of the coupons.
>>
>>56152480
Make a new acc every moth lol
>>
>>56152524
For some reason I feel like that method will either get unwieldy, or DO will figure out that I'm making accounts every month to mooch off their promo codes.
>>
How do I pick a good domain for my reddit image gallery/porn site?
>>
>>56152480
weird, they used to work for me... guess DO got tired of the abuse, or they just don't need shitty "promos" anymore, since everyone uses and recommends them.
>>
Anyone know what happened to openshift? I can't create an acc. It says I need to be approved for a beta
>>
>>56152820
so, >>56152780 same for openshift? ... fuck
>>
>>56151865
VB. NET
Unbelievably easy. I made a bot that was able to do exactly what you're looking to do in less than 3 hours with no knowledge.
>>
>inb4 404
bump
>>
Yo, any of you available to hire to make something on something like Ghost?
>>
Greetings, /wdg/.

When you look for jobs, where do you look? I am thinking of hiring a web developer, and I want to know if I am limiting myself by posting to just Monster/Jobstreet.

Thanks!
>>
>give website sample to recruiter
>website user started posting about mass murdering black people

There goes that interview.
>>
>>56154575
link please
>>
>>56144014
They are once per customer meaning old customers can use them too but only one.
>>
>>56153176
Vb is long deprecated and was shit language anyway.
>>
>>56154414
What's Ghost?
>>
>>56154749
https://ghost.org
>>
>>56154450
I check golangprojects first. It's the go-to place for the Go community. Look for a job board or community relevant to your niche.

Guru is a remote-oriented site with lots of jobs, and lots of developers.
>>
>>56154908
If I were looking for a blog or a site similar to www.vinesauce.com would Guru be a good place to look?
>>
I currently work with Django + knockout.js, and this new company that's offering me a job uses Django REST + angular.js. I've heard bad things about angular, am I fucked?
>>
>>56155017
Just another meme js framework. You'll get used to it.
>>
>>56155108
Thank fuck, I can deal with memes
>>
>>56154975
What's your budget?
>>
>>56154908
Cool. Is there is a similar place for other languages?
>>
>>56155267
google "remote jobs <language>"

Some languages have several. Python.org runs their own, for example.
>>
>be done with that portfolio website
>11 MB to load on initial visit
welp
>>
>>56155929
how the fuck did you manage that?
>>
>>56155940
client wanted all those fancy effects and high res pictures in a one page kind of style.
going to cut some corners now without telling him otherwise he wont stop bugging me to fix his pile of crap next week.
>>
Finally killed my Atom process. Never going back.
>>
>>56155959
Screencast a webm of it doing it's fancy shit and replace the whole site with it
>>
>>56129654

You have 2 factor auth on your google account?
If so, you have to generate a password for your server to use.
>>
>>56155929
Is there a tool that lets you check how much mb were loaded when visitng a website, or did you do the math with your files' sizes?
>>
>>56156153
Nope, I don't think I ever set that up.

Still looks like I need XO auth 2 in any case. Which is not worth it for a test scenario. I did all the stuff in the phpmailer troubleshooting guide that lets you check if you're trying to connect to a mail server and if your server is capable of connecting, and that stuff seems to be working fine.

Guess I'll ask my webhost if they're not allowing access from a nullclient.
>>
>>56156289
the dev console?
>>
>>56156435
Never used the network tool before. Thanks for the hint.
>>
File: 1298663787504.png (618KB, 800x800px) Image search: [Google]
1298663787504.png
618KB, 800x800px
Finally managed to send a mail from my vps through an email account on another server.
>>
I need to create a working offline copy of this site
http://hearingtest.online/
To use it on any machine with a browser, How do I set wget/curl for this?
>>
>>56155974
Also tired of Atom's bullshit. Looking into VSCode. Have you had any experience with it?
>>
File: logo.png (18KB, 160x120px) Image search: [Google]
logo.png
18KB, 160x120px
>>56130194
>I'm considering to go balls deep back-end but not sure what stack/language to choose.

C++/CppCMS
>>
VS Code is pretty sweet. For one It's not painfully slow like Atom and their TypeScript support is actually configurable.
>>
Would it be possible to make a /wdg/ linkedin network but not go full autism and still be anonymous?

That way we have a whole wed dev network but we don't look like russian anti-christ neonazi hackers?
>>
>>56158692
Any anonymity would still be looked on as crazed nazi communist behavior.
>>
>>56152345
Supreme (shop reopens next week)
>>
>>56158692
Personally, I love all of you motherfuckers, but I would never in a million years want to associate with any of you in real life or any non-anonymous platform.
>>
>>56160024

var unArray = ["mktt"];  
var pwArray = ["2415"];


Why even have a /admin if you're just going to store the username and password in plaintext?
>>
>>56154414
message me: [email protected]
>>
>>56155995
This is a hilariously viable option.
>>
>>56139194
Are u Russian?
>>
Anyone know much about seo? Is there a good book or website to learn?
>>
https://www.youtube.com/watch?v=ZGHayRYh5nA

I am bruce x
>>
From /wdg/'s point of view, which websites have the best frontend design?
>>
>>56162354
https://www.stallman.org/
>>
It might be a retarded question, but I want to know. If I learn front end things like html+css, what benefits can give me the knowledge of the python? What are examples of python programmer's tasks?
>>
>>56162668
python is generally used for scripting and other programming tasks, for example: https://github.com/jjangsangy/ExplainToMe
you could also use it to power your backend with a framework like django (https://www.djangoproject.com/) or flask (http://flask.pocoo.org/), which can work with other python code you already have or plan on writing to create all sizes of sites/programs
>>
>>56162668
> what benefits can give me the knowledge of the python?

Are you asking what benefits there are to knowing Python?

It's a general-purpose programming language. You can use it for lots of things.

>What are examples of python programmer's tasks?

- Web scraping

- Miscellaneous number/text crunching

- Machine learning

- Academic and engineering stuff

- A "glue" language to get different systems to talk to each other. (Maybe you have an old COBOL program you want to use for some reason, so you write a Python wrapper that lets you communicate with it using JSON)

- What most web developers would use it for would probably be the Django and Flask web frameworks.
>>
>>56162668
you can use python (with flask, django,...) as the backend for your webapp
>>
Change my view on "web apps". They're fucking dumb when native auto updating software exists (for PC and phones) , that runs far better than a JavaScript heavy browser web app.
>>
>>56162668
python is for non programmers. its specifically intended for hyper-arrogant math and science people
>>
>>56163181
>native compiled is best
the industry agrees with you. have fun making shitty iphone/lagdroid apps that are just as bad.
>>
>>56161778
https://moz.com/learn/seo

also you gotta learn the google console which isnt really learning it explains itself


It helps a ton (in my experience) if you have an existing quality domain, you buy one, or you have some sort of gimmick like paying indians to write 14,000 virtual blogs for you
>>
>>56163208
Man what an amazing answer with a valid reason.
>>
>>56163181
from what I've read, it solves the problem of having to push updates client side, which is a terrible and tedious problem. browsers "just work", and if you find bugs, you can fix it in the server, there is no need to have the retarded users touch the program
>>
>>56163181
A web app allows you to target all major platforms with one code-base so you can spend your time working on core functionality instead of trying to maintain 3+ completely separate apps on 3+ completely separate platforms, each with their own bugs, quirks, and security concerns to deal with.

Besides, a good portion of the "native auto updating software" you probably use is actually just a ported "JavaScript heave browser web app" anyway.
>>
File: Untitled-1.jpg (46KB, 750x750px) Image search: [Google]
Untitled-1.jpg
46KB, 750x750px
Ok, I feel like a fucking idiot and need help.
Think of the most rudimentary code you know.

What I got:
Couple of squares, 4 in a row - 2 rows total.
They are inside a centered 960px width parent.
Once the window goes below 960 width it breaks down to standard responsive breakpoints with 1 less square per column on each breakpoint.

All works fine, execpt its glued to the top of the page.

I need it to be vertically centered as shown in the image, but how do I do that?

None of the tricks have worked that I found.

HTML/CSS only.
>>
Going back to vanilla DOM manipulation is a bit weird when working with React. To be honest, I'd never really had any hands-on time with the vanilla DOM before this, I just used jQuery instead to paper over it. The API for this is a bit of a pain in the ass in terms of how verbose it is

Anyone else feel the same way, or is there something I might be missing?
>>
>>56163736
On a parent element:

position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
>>
>>56163821
>in terms of how verbose it is
That's pretty much why jquery got popular
>>
>>56163916
I know, yeah. Three key strokes gets you to the point at which you're typing the ID of the DOM node you want to target in jQuery. You're literally not even halfway through the first property access ('document') in the vanilla DOM. Shit's bananas
>>
>>56149676
>http://echoz.rocks/
>>
>>56163884
Okay this doesn't work, or I don't know how to do it properly.
I am beginner obv. learning basics here.

https://jsfiddle.net/xwvnhmj8/1/
I quickly fiddled everything inside here.
>>
>>56163736
>I need it to be vertically centered
No you don't. Websites aren't made to be vertically centered
>>
rate my gay FTP-ish front end thing i made only with jekyll and github pages
>>
>>56164161
anime/10
>>
>>56164188
arigatouu
>>
>>56164136
yeah well, true. It and the vertically centered content stops to be vertically centered once the minium heigh is reached and it breaks up into full screen responsiveness.

Aslong as the window is higher than the 2 rows of squares at their maximum size they whole thing should stay vertically centered.
Why is this such a bad thing?

I guess I could arange it being a set pixels off the top, but how would that work when scaling down the window? wouldn't that require tons of breakpoints as its not fluid?

Somehow I feel like I missing a vital piece of the puzzle and I dont get it.
>>
>What are your salary expectations (rate per hour)?

How do you answer this when applying for a job? I don't want to lowball it and as for $12 and have them think I'm a pajeet with no redeemable qualities, neither do I want to ask for $70 and have them laugh at it and chuck my application.

Keep in mind that it's a standard web-dev position btw, and I have no experience beyond 1 complete website that I have built for a client and 1 personal project. I'm thinking $30 all things considered.
>>
>>56162560
kek
>>
>>56144728
>if order === "fresh"
>else if order === "hot"

idk why senpai but that made me lol hard
>>
>>56160983
No, altough not native english speaker.
>>
>>56163821
It becomes bearable with querySelector and some of the new DOM Level 4 APIs. Mind native is still several thousand times faster than jQuery and you can always build your own lightweight abstractions over native functions.
>>
>>56164049
What's that supposed to be when it's done?
>>
So what are the current memes in the web dev world? JS? Python?

I'm kind of stuck in my own world because I use Perl at work and we have no plans on modernizing our code so I don't really follow the trends.
>>
>>56165340
>I use Perl at work

You poor thing. I feel like hugging you.
>>
>learn node + express
>literally have no idea what to build with it

please someone where do I get ideas?
>>
I always get stuck on little fucking things late at night.
>>
>>56165394

it's sad really. it's one of my countries biggest ecommerce provider and it still uses this shit.

apparently the codebase is from like 1996, and up until 2008 or something everything was in one giant file with hundreds of thousands of lines. It's very poorly written since it started as the CEO's hobby project while in high school. It's just ifs after ifs after ifs, and they can easily span over thousands of lines.

Do you think debugging this shit is easy? There's also no MVC whatsover. All the perl code is riddled and mixed with html and js everywhere.

It's so far gone that we don't have the resources to change now. We're basically stuck forever unless we double our developing team. The only thing we can do is to slowly improve the code that we already have and implent our own mvc.
>>
>>56128640
Should I send https://nigge.rs
>>
File: help.png (61KB, 834x499px) Image search: [Google]
help.png
61KB, 834x499px
MySqli wizards, help me.

I cannot, for the love of god, get the query insertion working.

It is supposed to insert a query [username, password, email] into the server database table. Error check returns jack shit and script finishes neatly, with all the echoes being displayed on page. But nothing is entered into the database table.

database is called - game
table is called - user

table should look like this after insertion

---------------------------------------------------------------
/ id / username / password / email /
----------------------------------------------------------------
/ 0 / dude / 123 / [email protected] /
----------------------------------------------------------------

"id" is incremental

Help me out.
[spoiler]Yea, I know, my code is not injection proof. I don't care. I want to get something working before I delve into autism land.[/spoiler]
>>
>>56128634
Hey /wdg/ I'm a new HTML fucker here, I'm having a problem trying to style the content in my template.

In my HTML template, I have this
<div class="content">
{% block content %}
<!-- content goes here -->
{% endblock %}
</div>

And in a separate CSS file, I have this
.content {
background-color: antiquewhite;
}

But the style will not apply.

If I do internal CSS though within the HTML template,
<style>
.content {
background-color: antiquewhite;
}
</style>

This works fine.

I have the navbar in my template and the CSS file works fine with that, how come it doesn't work with this?
>>
>>56165664
learn Go: https://tour.golang.org
>>
I hate to ask you guys this, but I'm wasting time on this project and I feel like someone here might have a better answer for me.

I want to transition a hamburger icon to an "X" by fading them in and out, and vice versa. What's the simplest way to do this? Google results are nauseating from all the clickbait "TEN AMAZING NAVBARS YOU MUST SEE" results. I really don't want to use a plugin for it either. All suggestions are helpful, thanks.
>>
If I'm using windows as my host with 16gb RAM, how much should I ideally allocate to a linux VM for beginner web dev stuff? Never really tried linux before so I'll start with Ubuntu.
>>
>>56165671
Yea boi.
>>
>>56165748
It's CURRENT_YEAR, just use PDO.

>>56165765
Are you absolutely sure you're linking everything up correctly and there aren't any typos?

>>56165947
CSS animation or jQueery.

>>56166096
If you're running the server version of ubuntu and just running a simple web server, 512MB should be plenty. For the full desktop version, 1-2GB or so should work. If you want to be extra sure, the specs are on the ubuntu site. You should also look into Vagrant, which does all the VM setup for you using a simple config file. Docker is also good, but with a higher learning curve and probably overkill for whatever you're doing.
>>
>>56166407
Was thinking about installing the desktop version of Ubuntu, I had a breif look at Vagrant but I thought that was only for the web server. I'm not sure if it's better for me to do all the coding and everything through the linux desktop or maybe use Vagrant for the file sync and just have linux as the server.
>>
>>56166407
mysqli_actual_real_escape_string_v2_PDO ();
?
>>
Guys, I'll be going away for a few weeks, and I'll not have interwebs, but while I'm gone, I still want to study HTML5, javascript and css, so I was wondering if you guys could point me to some good and complete reference material.

I'm not looking for manuals here, since I know the languages, I'm just looking for a complete list of functions/tags/properties for these three languages.

Thank you in advance.
>>
>>56166096
If you're on Windows 10, you can install Ubuntu to run natively on it.
>>56166608
Download MDN.
>>
>>56166096
2 GB or even less, although it depends a lot on what you will be devving. if java, then you need > 2GB, I'd say.
you don't need Ubuntu with cool graphics stuff, you only need the server/dev parts, so use xubuntu, lubuntu or something like that.
>>
>>56166523

>I'm not sure if it's better for me to do all the coding and everything through the linux desktop

You'd just be adding the extra headache of configuring a new dev environment inside the VM.

>use Vagrant for the file sync and just have linux as the server

The entire point of using Vagrant is to have it build and configure a clean VM for you to use as a web server. If you just want to share files between the VM and Host, you can do that directly with VirtualBox (or whatever you're using).
>>
>>56130985
try transform-runtime
>>
>>56165748
Use the MySQLi class instead, or a subclass from github.
>>56165765
Inspect the element with the browser developer tools, and check if there are CSS precedence conflicts.
>>
>>56165748
Oh, and check for error messages after every query.
>>
>>56166596
Hoo boy

http://php.net/manual/en/book.pdo.php

http://code.tutsplus.com/tutorials/why-you-should-be-using-phps-pdo-for-database-access--net-12059
>>
>>56166407
Well the project itself is extremely small. I'm wondering if I'm just doing inheritance completely incorrectly and that's why it's not working but I'm sure that I have it all spelled correctly.

>>56167354
Will do
>>
>>56167521
Oh ok I got it.

I had to clear the cache for the CSS to update. RIP.
>>
>>56130194
JS/Node has a hype right now and startups are looking for node people, but that hype will wear off at some point.

I'd say go with Ruby or Python. Both are fine choices. Both have fine web frameworks.

Ruby:
- Ruby on Rails is still the king of web frameworks. It has a huge community, addons (gems) for anything you can imagine.

Python:
- Django is okay-ish but still is weaks compared to rails (not dev/test/production setup out of the box, no asset compilation out of the box etc,)
- Flask is much more minimal than Rails/Django, but it is awesome for making APIs or lightweight applications. Combine it with SQLAlchemy and WTForms and you have a powerful tool.
- Python has more usecases outside of webdev. There are a ton of high quality libraries available for all kind of stuff.
>>
What's the best javascript code pattern for front end?
>>
>>56155198
I'm late but would $400 or so be acceptable for something like that?
>>
>>56168345
>code pattern
Be more specific.
>>
>>56169631
That could purchase a site comparable to vinesauce. Heck, I'd take the job.
>>
>>56171182
Send me portfolio?
>>
Actually, I'll throw down my throwaway email here incase anyone is interested in a ~$400 job for a site comparable to vinesauce. Shoot me your portfolio and we can speak.

[email protected]
>>
>>56169631
Not him, but not really.

$300 would get you the layout. About $400 more for the twitch embeds with the streamer strip showing who is online and what they are doing/streaming/hosting.
If the stuff below the stream is editable then that's probably at least a grand because you now need a login system to edit everything with a custom CMS that's styled. You could skip that last part and just have an About section that doesn't have to change often.

I would round up to a grand, honestly. With the editable panels below the stream I would use twitch auth for the login and it would be another grand. So 2 grand.

However, my portfolio needs something fresh so I can do it for 400, minus the editable panels.

portfolio: >>56128640
>>
>>56172249
Presuming you built it on an existing CMS such as Ghost?
>>
>>56172262
If I were to have to template a CMS then that would be a separate quote, so no I wouldn't use any CMS.
>>
Any links to learn AngularJS? I just applied to a job that requires it and I have no experience with this meme library.
>>
>>56172860
documentation
>>
is it worth getting into it? Are the jobs really that stressful and boring?
>>
>>56174090
Nah, it's better to become a hair dresser so you won't get stressed and bored.
>>
>>56128634
How do i access a server running on a WM on my machine? Do i just type my local IP outside of the VM?

I want to test some webdev shit and was thinking about installing WAMP on a VM
>>
>>56174109
you use the VMs IP address.
>>
>>56174100
I want to make big cash but I'm afraid if there's one thing I can't program I'm gonna get fired. why the fuck was I born to like IT
>>
>>56174140
There isn't anything you can't program though. Because Google will help you out.
>>
I'm starting in two weeks a new apprenticeship in web development Php ( Laravel ) .What's the best the course( free) to have basic knowledge in php, Mysql and laravel.
>>
>>56174154
yeah but if the boss sees you asking questions at stack overflow he's gonna know you don't know shit :/
>>
File: Clipboard01.jpg (152KB, 1914x1036px) Image search: [Google]
Clipboard01.jpg
152KB, 1914x1036px
Rate pls.
>>
>>56174197
Are you applying for a job at Walt Disney?
>>
>>56169644
Module pattern, reveal module pattern, etc
>>
>>56174090
It depends. There are a lot of boring bad jobs and also interesting good jobs. Also if you don't like programming every job is gonna suck.
>>
File: responseive.png (404KB, 603x1121px) Image search: [Google]
responseive.png
404KB, 603x1121px
>>56174197
it's responsive!
>>
>>56174215
The colorscheme is terrible, i know. It seemed better in my head.

I'll try some other themes.
>>
>>56174197
If you are retarded enough to think that that shit is good idea nothing will get you hired.
>>
File: help.png (1MB, 1913x1062px) Image search: [Google]
help.png
1MB, 1913x1062px
my first webpage please give me any tips on why is it so horrible
>>
>>56141906
Go for Trails js instead of sails
Sails is easy and very popular but the framework itself has lots of bugs and uses shit Waterline ORM as default. Global variables are messed up.

In trails you can choose between express and hapi and has many supported ORM
>>
>>56174268
Which part are you talking about?
>>
>>56174222
All module patterns are deprecated in face of System aka ES6 modules, which are part of the language proper and awaiting native browser implementation. As for structuring code, generally the sanest thing to do is use the class keyword and apply mixins to their prototypes, where needed. Observers/push-subscribe are situational and mostly good for decoupling state and logic. Useful in case of dynamic M:N relationships. You might also use Proxies for some metaprogramming, if need be.
>>
>>56174305
shouldve used bootstrap stuff
>>
>>56174649
>Not learning from scratch
>>
File: Clipboard01.jpg (89KB, 1897x1041px) Image search: [Google]
Clipboard01.jpg
89KB, 1897x1041px
I believe this looks good enough.

What do you guys think?
>>
>>56174167
Laracasts
>>
>>56174809
make the red icons smaller, are you a gaffot?
>>
>>56174850
Thanks for the advice.

The icon set kinda don't go well with each other.

I'll size them properly so it looks nice.
>>
>>56174366
For something to show to potential employer show some professionalism. That color scheme is horrible and putting some meme there is just plain stupid.
>>
>>56174195
You know nothing about this field, don't you?
>>
>>56174992
>what are placeholders
>>
>>56174992
I agree with the colorscheme part but the pepe was just a placeholder. I ain't posting my real face here lol.

Anyways how do you like this one >>56174809
?
>>
File: aASK73.gif (1MB, 320x180px) Image search: [Google]
aASK73.gif
1MB, 320x180px
hey guys what in your opinion is a good and stable domain provider or web host service ?

I was looking online and I found godaddy (strange name) that seems surprisingly good.
I always wanted to have a "professional" space online, I don't really need top notch services, but really something that can "scale", for example starting from simple static webpage to becoming a backend of some application.
>>
>>56175087
godaddy is cancer, avoid it at all costs.
I'm running with gandi after getting screwed 2 years from godaddy.
>>
File: 1464595353379.jpg (74KB, 1000x1000px) Image search: [Google]
1464595353379.jpg
74KB, 1000x1000px
Hello,
Is there any free hosting solution you would recommend?

I need a server for learning purpose and and some simple testing.
>>
>>56175122
run on your local computer
>>
>>56175137
Yeah but i really want it to be accessible from the outside
>>
>>56175114
>godaddy is cancer
Why everybody says that?
>>
>>56175114
wow really?
Thanks for telling me anon, why however ?
>>
>>56175180
because they take every advantage to shove ads into your face so you buy more services from them.
you want to administrate your DNS records? prepare to have at least 5 banners around why you should by some premium feature that every other registrar gives you for free.
>>
>>56175122
Openshift, heroku.
Github pages for front-end only.
>>
>>56174994
correct that's why I'm asking
>>
>>56175202
can't I just ad-block or ignore them?

what troubles me is that they will make you pay extra for domain migration or something like that
>>
>>56175087
>>56175180
>>56175200
also, avoid hosters that do not support letsencrypt.
https://community.letsencrypt.org/t/web-hosting-who-support-lets-encrypt/6920
>>
>>56175298
Oh shit i was gonna use lets encrypt but i already bought the domain from godaddy
>>
>>56175318
if you host anywhere else it doesn't matter.
but I'd generally not advise giving money to a company that does not fully support it.

when letsencrypt started godaddy was very against it, because they want to sell you their own overpriced ssl certs.
>>
Any experiences where to rent a server?
Do I just putty in there after I rented it?
Can I choose the distro?
Can I access the full file system?
>>
>>56175340
I have a digital ocean droplet. Will that work?

Domain from godaddy points to that.
>>
>>56175171
why cant it be accessible from the outside if you run it on ur local computer?
>>
>>56175368
yes. but shame on you for supporting that company.
>>
Anyone know how I could write this as a single line?

    
this.columns.forEach(column => {
column.populations.forEach(population => {
let border = population[1];
if (border > this.canvasDimensions.height) this.canvasDimensions.height = border;
})
});


I need to get the highest value from this.columns[x].populations[x][1]
>>
>>56175363
>Any experiences where to rent a server?
In the OP

>Do I just putty in there after I rented it?
If it's a VPS, yes. For shared hosing, you would use FTP or the cPanel (don't use cPanel)

>Can I choose the distro?
Depends on the provider, but generally yes (if it's a VPS)

>Can I access the full file system?
If it's a VPS, yes, you get full access to the VM. For shared hosting, you typically only get access to ~/
>>
>>56175502
>(don't use cPanel)
You'll need to use cPanel at some point whether you like it or not.

Damn this thread has come alive right when its about to die.
>>
>>56175502
Thanks!
>>
>>56175445
For readability, I wouldn't try to put it on one line, but you can clean up your code a bit by using .map() and .reduce()
>>
>>56175386
I didn't know about the horrors of godaddy when i bought it..
>>
File: 1357423304537s.jpg (7KB, 250x250px) Image search: [Google]
1357423304537s.jpg
7KB, 250x250px
>>56175521
>You'll need to use cPanel at some point whether you like it or not

I doubt it. But in any case a cPanel is designed to be used by people with no skills whatsoever

Learn SSH and the terminal and just rent a VPS for $5 per month.
>>
>>56176162
It's easier to manage stuff like certificates, DNS, databases etc through cPanel though.

What's fucked up in my case is that I have Namecheap shared hosting and I can only manage the database users and create new databases through cPanel.
>>
>>56176162
>VPS for $5 per month.
There's none
>>
>>56175085
Sorry about my mistake. Second one looks much better.
>>
>>56175171
If you *need* it to be accessible from outside you really should start thinking about real hosting.
>>
>>56175180
Because they are one of those that focus on advertising itself as "professional" service while being worse and more expensive that alternatives. I fell for it and now i have domain there :(.
>>
>>56176265
What about digital ocean?
>>
new thread when?
this thread hasn't been bumping for a while..
>>
>>56176726
>>56176794
Thread posts: 341
Thread images: 32


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