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

File: php.jpg (36KB, 598x425px) Image search: [Google]
php.jpg
36KB, 598x425px
> 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 [Embed] [Embed]
> [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 [Embed] [Embed]

>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/
https://scaleway.com/
>>
Haven't been in one of these threads in some time. What are you guys up to?
>>
>>56036739
[Embed] [Embed] [Embed]
>>
The more I work on complex SPAs at work, the more I want to just make and use simple sites. Anyone feel this way? I've been challenging myself to keep bundle size as small as possible and speed as fast (while trying to keep experience similar).
>>
>>56036739
Previous >>55990541 because OP is a faggot
>>
File: Untitled.png (17KB, 256x79px) Image search: [Google]
Untitled.png
17KB, 256x79px
>>56036739
How do you pick good highlight and default underline colors? Any tips?
>>
>>56037334
1. Pick a color
2. Make the thing that color
3. If you don't like the color, see step 1.
>>
>>56037371
Uncaught RangeError: Maximum call stack size exceeded(…)
>>
What are the advantages of using firebug? How to inspect an element while hovering?
>>
File: 2016-08-11_22-44-06.webm (68KB, 320x146px) Image search: [Google]
2016-08-11_22-44-06.webm
68KB, 320x146px
>>56037527
>chrome
>>
File: classeswereamistake.png (49KB, 639x520px) Image search: [Google]
classeswereamistake.png
49KB, 639x520px
So yesterday I learned how to use "class" keyword with the help of /wdg/

BUT

When I tried to use it in a node module, I had no end of trouble.

Turns out node already does a bunch of scope protection as part of their module concept.

https://nodejs.org/api/modules.html#modules_modules

So I ditched the class sugar and it just works.

Are classes and node modules not meant to be together ?
>>
If you inspect post divs on 4chan, you can see that the margin-top of of the bottom post overlaps the margin-bottom of the top post. How can one achieve this effect with CSS?
>>
I have become very proficient at full stack development. What should I build to make money?
>>
>>56038229
What ever the company is paying you to make
>>
hey guys i have 2 pages made with flask, one that acts as the frontpage and the other one that works as some kind of admin or extranet for the first one.

the pages use their own views and models but they share the same database and this is starting to mess things up when i try to do changes to the schema.

so how could i merge these 2 pages into 1 database, 1 sqlalchemy model and 1 or 2 views files?
>>
>>56036784
We can and will go further.
>>
I love openshift but so many of their cartridges are out of date. I can't even get my Python app up and running because they're still using v2.7 instead of ~3.5
>>
>>56039094
Do they have a free db tier, if so what do you get?
>>
Anyone upgraded to Angular 2 RC 5? Breaking changes all over the place!
>>
>>56039094
Then use thirdparty ones
https://github.com/Praisebetoscience/openshift-cartridge-python-3.5

>>56039114
They offer a lot for free.
>>
what's a simple, performant (in the server side), retard proof shopping cart?
>>
>>56039141
>RC
>breaking changes
Jesus.
Won't adopt that meme until it's final.
I'm hugging my Angular 1 as long as I can ;_; it's too comfy
>>
What do I do for responsive image resizing on the client-side?
>>
So im not front end dev and i need some "nice looking" quick and dirty ui (preferably small i really dont need huge frameworks), any ideas?
>>
Ruby on rails is fucking ugly and coffeescript is even worse.
>CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
Holy shit, fuck web developers
>>
Is it important to be validated?
https://validator.w3.org/
>>
why is it called web development is the is decidedly crappier than 20 years ago?
>>
>>56041174
its still web development just shitty one... Something doesnt need to be good or better to be called web dev
>>
>>56037680
>Are classes and node modules not meant to be together ?

Works for me. Are you sure you're following this pattern?


// foo.js

class Foo {
constructor (name) {
this.name = name;
}

sayName () {
console.log(this.name);
}
}

module.exports = Foo;




// bar.js

let Foo = require('./foo');

let jimmy = new Foo('Jimmy');

jimmy.sayName(); // prints 'Jimmy'



You could also instantiate the class as a singleton and then export that I guess, but there's really no reason to do that over just exporting a function or object literal, etc unless OOP gives you a hard-on or something.
>>
>>56041006
Most browsers will render *something* even if you manage to fuck up the html pretty bad. That *something* will probably be something other than you intended though, and different browsers will try to fix your mistakes differently.

>>56040823
Who the fuck still uses coffescript? We typescript now.

>>56040812
>>56040124
Bootstrap?
>>
>>56042105
>Who the fuck still uses coffescript? We typescript now.
both turned redundant by ecmascript
>>
For a browser game with multiplayer should I just use codeigniter or a different language/framework? I'm pretty bad at javascript.
>>
>>56042130
ECMAscript is literally just the official name for JavaScript. Typescript is a strongly typed superset that transpiles to JS. So no.
>>
>>56037371
Paletton.com
>>
File: nicholas-cage-you-dont-say.jpg (126KB, 540x305px) Image search: [Google]
nicholas-cage-you-dont-say.jpg
126KB, 540x305px
>>56042232
>ECMAscript is literally just the official name for JavaScript
picrelated

I meant ES7 or even ES6
>>
>>56042261
>being this dense
Again, the entire point of of TS is that it's strongly typed and transpiles to JS. It is also a superset of ECMAscript, meaning all valid ES is valid TS. Neither ES6 nor ES7 support strong typing out of the box. So...still no.
>>
>>56042171

>should I just use codeigniter or a different language/framework?

depends on the game, but if it's real-time multiplayer, you'll probably want to use websockets, which I don't think codeigniter supports. Node would be good, or maybe Go.

>I'm pretty bad at javascript.

If you're making a browser game you pretty much don't have a choice but to use JS for the frontend.
>>
>>56042420
It's turn based, not multiplayer. I've heard really good things about websockets but it seems like a huge jump, I've really only used rails and bare php for web devving before (I'm a student).
>>
>>56037680
You are not limited to one class per module.
>>
>>56042429
If you expect to refresh the page after each turn and not even use AJAX/Websockets, find a different idea.
>>
>>56042025
Fucking with webpack took way too long.

// foo.js

class Foo {
name: string;
constructor (name: string) {
this.name = name;
}

sayName () {
console.log(this.name);
}
}

// bar.js

import {Foo} from "./foo";

let jimmy = new Foo('Jimmy');

jimmy.sayName(); // prints 'Jimmy'
>>
/dpt/ here

Your threads are a joke and you will never get high paid jobs

Lmfao
>>
>>56042866
you think refreshing the page after each turn is bad?
>>
>>56043223
Jokes on you, I browse both /wdg/ and /dpt/.
>>
>>56043226
Yes. Not only will it introduce additional latency on each move, but also FoIC and persisting any UI state will become much more problematic.
>>
>>56043369
hmm I guess I should use ajax, unless you have any beginner-style websockets resources you could give me. I've never used ajax though, that might be more useful to learn.
>>
>>56043223
Like Haskell will get you anything other than a grad student stipend if you're lucky.
>>
>>56043417
Use AJAX as a start, but reading up on Websockets will come handy in the future. Note PHP is the shitiest choice for a Websocket backend, because it pretty much requires a stateful server, not a oneshot script.
>>
>>56043451
what's the best choice for one then?
>>
>>56043461
node
>>
>>56043461
Go or Node are good picks. Each has its plusses and minuses.
>>
>>56043480
I think I might use go because a friend of mine won't shut up about it and I've heard .js are memes.
>>
>>56043485
Node is good for JSON APIs, which is a substantial part of all web backends. Not much else though.
>>
If you're not using LAMP, you're a hipster.
>>
>>56043505
>Not much else though.

Ehh, it's pretty good generally at I/O-heavy/CPU-light operations.

It's also pretty fantastic as a glue language since there's a library to support pretty much any weird database or peripheral out there.
>>
>>56043600
What the fuck is a Webpack? Is that like a GRUNT?
>>
>>56043614
There is hardly a need for a glue language these days with good statically-typed multithreaded alternatives like Go. Node's main advantage is JSON being native.
>>
>>56043598
If anything makes you a hipster, it's using dusty old bullshit and parading it around like that somehow makes you better than everyone else.
>>
I'm working on a shitty game simulator and I don't really know much about efficiency with JS prototypes, should I be concerned with nesting over and over?

e.g., in Typescript:
class GameManager {
Ally: GameTeam;
Enemy: GameTeam;
// constructor creates both the above
}

class GameTeam {
units: GameUnit[];
// constructor fills units[] with placeholder units
}

class GameUnit {
// blah blah, unit-specific stuff
}
>>
What's the best php ide? No memes please.
>>
Is it bad that my code is making me hungry? It looks like spaghetti
>>
>>56044137
Vim

>>56044057
It should be fine unless you're making a huge number of units. And if you're making a huge number of units, you're using the wrong language.
>>
good go frameworks to go with websockets?
>>
>>56044137
phpstorm probably
>>
>>56044807
net/http and github.com/gorilla/websocket
>>
in how much time can you master angular.js?

t. knows javascript, jquery and PHP
>>
>>56045271
>master
>>
Trying to livestream music to a webpage through my server and also create a live visuliser based of of the music, can anyone point me in the right direction
>>
I'm using react and redux. Would it be a bad idea to update the browser's url from a reducer?
>>
>>56046047
Just use react-router

>>56045370
Do you want to LIVEstream it or just stream it? If you just want to stream an mp3 or something, that's easy. Doing it live is a bit more complicated.
>>
>>56045370
I'd start with node.js streams. But that's because I know and like node.js best.

I suggest you start with Google, since I'm not sure what you want to accomplish
>>
>>56036739
Anyone with WordPress experience can help me with some problems with the comment section on a custom theme I am working on ?
>>
File: why.jpg (23KB, 288x499px) Image search: [Google]
why.jpg
23KB, 288x499px
>>56046827
>installs wordpress
>puts effort into it instead of just using off-the-shelf plugins and themes
>>
>cheap vps hosting in most western locations
everything listed under that is either shit, expensive, or both. i wouldn't trust 9/10 of the crap posted to lowendbox.com. the european vps dealers are probably the worst though.
>>
>>56047134
You either haven't used any of those services or are just pissy
>>
>>56047134
>Digital Ocean
>shit
>expensive

Pick one.
>>
>>56036765
currently following FastRecord's node.js tutorial series, apparently it's a straight rip from the udemy course
I like it so far (only 3 projects in) but sometimes I feel like I have no idea what I'm doing
>>
>>56047258
>I feel like I have no idea what I'm doing

This is normal in programming and in life.
>>
I'm starting to hate coding because of my job.

Anyone else with a shit job? How do you cope with it?
>>
Anyone that uses javascript as a backend for anything besides browser games should kill themselves on the spot.
>>
>>56047084
who are you quoting?
>>
>>56047295
I do.
I'm a software developer for 7 years now, I hate it.

But all the money. So easy money.
>>
File: speed.png (55KB, 1145x833px) Image search: [Google]
speed.png
55KB, 1145x833px
>>56047406
k
>>
>>56047506
How long until it gets easy tho? I got a new job about a month ago and it's been fucking me up. They keep asking me shit that I'm not good at, or have me dive into legacy code of 1 million lines. I feel like a complete fucking retard. In my previous job I could get shit done easily enough.
>>
>>56047651
>less than 30k
>good
ha
>>
>>56047421
You must be new here.
>>
>>56047697
no u. it was an [s4s] maymay.
>>
>>56047295
Its entirely possible that you just work in a shitty place.

I've been in my job for about 6 months and I still like it and the people I'm working with.

What is it specifically that you don't like?
>>
Noob here.
Can somebody maybe link me a good tutorial to help me better understand the firefox developer tools.
(Console, etc)

Also:
Do I need to include the "keyword" -webkit into the .css file when I want to use something like:
-webkit-transition:

(For different browsers there are different keywords and it is a pain in the ass to do it for everything)
>>
>>56047713
Oh right. I don't subscribe to that subreddit.
>>
File: 1440450209438.jpg (18KB, 500x500px) Image search: [Google]
1440450209438.jpg
18KB, 500x500px
>>56047737
>subreddit
>>
>>56047723
>>56047671
>They keep asking me shit that I'm not good at, or have me dive into legacy code of 1 million lines. I feel like a complete fucking retard. In my previous job I could get shit done easily enough.

The codebase I have to work with is a clusterfuck.
>>
>>56047773
What makes a codebase a clusterfuck or a pain in the ass to work with?
(Honest question)
>>
>>56047728
>Can somebody maybe link me a good tutorial to help me better understand the firefox developer tools.

I dunno. Google it? Look on youtube. There's probably something.

>Do I need to include the "keyword" -webkit

https://developer.mozilla.org/en-US/docs/Web/CSS/transition#Browser_compatibility

That is MDN, its basically documentation for CSS and Javascript.

Under the browser compatibility you'll see if you need to include a flag or not. You usually do if its an "experimental" feature.

http://caniuse.com/#feat=css-transitions

This is another useful site, which will tell you which versions of which browsers support which features, and whether or not they need you to include the browser prefix. So for example Andorid Browser 4.3 requires the -webkit prefix.

Generally you might as well just include it for max compatibility.
Or you could use a CSS precompiler like SASS to make that process easier.
>>
File: you.jpg (85KB, 544x437px) Image search: [Google]
you.jpg
85KB, 544x437px
>>56047752
Thanks for the (You) upvote, friend :^)
>>
>>56047795
>no standards
>no tests at all
>no dependency injection
>400+ lines methods
>5k lines "helper" classes
>1000k lines views with mixed JS (JQuery) and HTML
>ViewModels in the backend with fucking methods in them, instead of just being, you know, ViewModels
>Controller folders with a fuckton of them instead of using submodules
>"custom" css framework, because surely those fags at bootstrap don't know what they are doing
>no css columns framework
I can probably come up with more shit, but those are some of the issues.

Right now I'm doing a stupid attempt to contact a third party API that requires me to attach a certificate on the request (I'm a complete retard when it comes to security) instead of using API keys, secret, etc. so I'm running in circles.
>>
>>56047888
Forgot the most important one. No patterns, at all. Anywhere. There are no clear layers, the viewmodels contain business logic and sometimes data access too.
>>
>>56047773
>>56047888

Okay well is there anything other than the code? Shitty non-technical managers? A shitty culture that expects you to stay late to make up for unrealistic arbitrary deadlines promised by those retarded non-technical managers? The expectation to answer emails out of hours and effectively be on-call all the time? Stupid office politics etc?

If its just a shitty codebase then it might be good old Dunning Kruger effect, and that'll wear off in time.

How long have you been there?
>>
>>56047938
People are nice, really nice, but there are no working hours so to say. On paper that sounds great. In practice I see people working more than 8 hours, so I've been having to work much more just to keep up. This can also mean that once I git gud I could work just as much as I need I suppose, but I can't see the light at the end of the tunnel yet. I know some of the other programmers have stayed at stupid late hours at times.

So far there have been no real deadlines, I was told to get something for this past Monday and I sort of did, but didn't get time to write up the test suite.

>If its just a shitty codebase then it might be good old Dunning Kruger effect, and that'll wear off in time.
I fucking hope so, anon. This is as good as it will get as far as pay goes for me. My previous job was 1/3 the pay, but the codebase was a joy to work with 80% of the time.

I've only been her for about a month and a half so I'm trying to go for at least 4-6 months before I consider killing myself or bailing.
>>
>hate non mobile friendly sites
>hate js
wat do?
>>
File: mm.png (570KB, 647x457px) Image search: [Google]
mm.png
570KB, 647x457px
Ask a PHP developer anything
>>
>>56048044
use media queries like everyone else?
you don't need js to be mobile friendly.
>>
>>56036739
just made a ctags generator for javascript files krogank9.github.io/esprima.html
it's not perfect but it works for my purposes. i use it in geany. just submitted a pull request too adding scoped function hints for large libraries.
>>
>>56048010
Yeah I think you'll have a clearer picture after 6 months.

Also no fixed hours is nice. My boss is considering switching to that because as it is now we're contracted for 9 to 5:30, and he knows that our brains could turn off at 4:30 and its stupid to make us sit there for another hour.

But going home on time and enforcing your boundaries is your responsibility. Don't just stay late so you can look like you're busy when you're really just trying to impress people who probably won't appreciate it or reward you in any way.

Go home on time, do your work, enjoy your life. Try to talk to your boss about the paralyzing assfuck of a codebase you have to work with.
>>
>>56048054
why are you superior to asp.net?
>>
>>56048054
Why can't you just poo in loo?
>>
File: 1402047571675.jpg (44KB, 617x627px) Image search: [Google]
1402047571675.jpg
44KB, 617x627px
So I can write good python and SQL, and can use django.

Now what
>>
>>56048198
>But going home on time and enforcing your boundaries is your responsibility. Don't just stay late so you can look like you're busy when you're really just trying to impress people who probably won't appreciate it or reward you in any way.
Good point. I'm just trying to keep the job and do a decent work, but I'm pushing myself for it.

They do know the codebase is a fucking mess at least.
>>
>>56048352
JS and Angular.
>>
File: 1408944618111.jpg (11KB, 244x242px) Image search: [Google]
1408944618111.jpg
11KB, 244x242px
>>56048360
>Angular
>>
>>56048523
What would your choice be?
>>
>>56048556
Server-side templating, because I'm not a memelord.
>>
>>56048597
So you just don't want to touch JS? Then yeah, that's ok. But server side templates take you like 60 minutes to learn, it's not really something to "study".

If you want to stay on the backend I'd go for caching technology.
>>
File: a.png (2MB, 1068x1208px) Image search: [Google]
a.png
2MB, 1068x1208px
When are thumbnails appropriate? I am making an image gallary (pic related)
If I use thumbnails then the page is less laggy, but when an image is selected and displayed fully, it takes time to load. I don't like seeing the image loading. I can't preload the image because I don't know what image a user will click.

Should I use thumbnails?
Should I preload every image at full res?
>>
>>56048666
Just to clarify

>>56048597 != >>56048352

Different guys
>>
>>56048010
Pay ain't everything my man. I learned this the tough way.

I feel you, you are in the same financial situation I was. In this current job I started earning double what I earned before.

I am working from home but it's full of pressure, a clusterfuck codebase, and having your boss up your ass most of the time since he has to make sure you are doing something.
True nazis to give you vacations too. And being isolated has made me socially inept and retarded. More than I was already.
There are zero chances of growth and we are critically understaffed. The pay is good relatively speaking, it's good because it's tax free but you get zero benefits and have to almost beg for a bonus.

I am going to drop it and go back to a regular office job, I will earn less money but will have medical insurance, retirement fund, much more vacations and a more relaxed atmosphere.
Sure I'll have to drive again for an hour and won't be able to shitpost in work (gon miss u bois ;_;) but it's gonna be a step up in quality of life.

Since your pay ceiling has raised, you can use that as leverage in your next interviews. Hopefully you'll land some nice job thanks to your current one.
>>
>>56048672
Use thumbnails, and start ajaxing in all the full images once the initial document is ready.
>>
File: mvc.png (80KB, 1024x512px) Image search: [Google]
mvc.png
80KB, 1024x512px
>>56048666
JS is fine. Ajax for loading specific content is fine. An entire web application in JS doing what HTML and CSS can do is not fine.

You should always write your pages to function without Javascript enabled at all, not for the autists who use Noscript, but because everyone has JS disabled while the page is still loading. Time to first render is going to be significantly faster with the HTML being sent down by the server, rather than client-side JS trying to construct it after receiving JSON data.

If you're making something special like Google Maps then fine, have a fully-rendered Javascript application. But for 99% of what you're ever going to do, server-side templating and HTML is fine. Plus it means you don't have to design and build 2 separate independent web applications, doubling your work for no real reason just because you fell for the REST meme and you think that one day you'll need it for a mobile app, which you fucking won't.

>But server side templates take you like 60 minutes to learn, it's not really something to "study".
Yeah no shit.

>If you want to stay on the backend I'd go for caching technology.
I stay on ur mum's backend.
>>
>>56036739
Is voip with discord more stable than skype? What about quality?
>>
I recently got job offers from several local businesses to design/develop their websites, but I have no idea how to suggest an appropriate price. If anybody could answer so I can get a feel how it should be:

1) What kind of websites have you designed?
2) How much money did you get paid (apiece?) for them?
3) How many years of experience / what kind of degree do you have?
4) How long did it take you to make them?
5) How is your price justified?
6) (If relevant to answer) Where do you live?
>>
>>56049392
> I have no idea how to suggest an appropriate price

1. Come up with an hourly rate you're comfortable with.

2. Approximate how many hours the project will take you, 1.5x-2x that number as padding for any complications (and you will have complications), and then multiply by your rate.

3. Add any extra costs you'll need to pay, like hosting, licenses, etc.

Congrats, you now have a price estimate.
>>
>>56049578
I was asking from your experience. As in; what kind have YOU made and, having made that, what did you get paid, etc.
>>
>>56049392
>1) What kind of websites have you designed?
Business listing website (yellow pages, basically). Did both back-end (PHP+SQL) and fron-end.

>2) How much money did you get paid (apiece?) for them?
$600

>3) How many years of experience / what kind of degree do you have?
Started freelancing in January this year. Just got a CS degree this month.

>4) How long did it take you to make them?
8 weeks on and off. Had classes at the time so I was only able to do this part-time.

>5) How is your price justified?
Might turn out to be a relatively small website overall. It's not very unique so I don't expect it to get too much traffic, if it ends up being popular in a few years they'll probably redesign it anyway. Price was justified since I had nothing but personal projects in my portfolio.
>>
>>56049606
>I have no idea how to suggest an appropriate price

And now you do. What's the problem?
>>
>>56049694
>>And now you do. What's the problem?
Fair enough
>>
>>56049392
>how to suggest an appropriate price
1. Calculate how much you need to not starve.
2. Ask for that
>>
>>56049276
I would like to have an answer to this question.
>>
File: PANIC.gif (347KB, 255x255px) Image search: [Google]
PANIC.gif
347KB, 255x255px
I can't decide what language/framework to do the backend for my website in.
>>
>>56050170
Whichever one you like the most.
>>
>>56050212
I don't know which one I like the most, they all look like shit.
>>
>>56049983
I haven't used it a huge amount, but I've never had any problems.

>>56050214
COBOL on wheelchair
>>
>>56050214
use anything but php and u're good
>>
>>56050214
Then maybe you should find something else to do with your free time.
>>
>>56050244
I think that anon already decided to watch anime and shitpost instead of dev
>>
>web dev
>40k/year

Life is suffering bros. I wish I was a real programmer. But not smart enough.
>>
File: 1452311757665.png (821KB, 865x807px) Image search: [Google]
1452311757665.png
821KB, 865x807px
>>56050341
Back to >>>/g/dpt with you, neet.
>>
>>56050265
That's what most people in this thread do.
>>
>>56050214
Obviously you haven't tried Perl.
>>
>>56038479
any type of help, guide or direction with this, will be much appreciated.
>>
Help me understand JWTs correctly /wdg/: users can't actually see what's inside of a JWT right? The copy they authenticate with is encrypted if I understand correctly

I'm asking because I'm trying to figure out a criteria to reject JWTs by, and by IP isn't an option. I was thinking user agent or something like a phone's IMEI, but even if an attacker can't just pull that info out of the encrypted JWT, if they had access to said encrypted JWT, shouldn't I assume they have access to the user's UA or IMEI in one way or another? Maybe generating an identifier upon login is the way to go? Then again what stops an attacker from accessing it?
>>
>>56050710
Perl looks great to whoever wrote it for a short period after they wrote it. It just looks like shit to anyone else/you a year or two later
>>
>>56051418
Alternative question: should I not bother and just pass the JWT itself back and forth and blame the user for getting their cookies stolen in the event a hacker gets their hands on it?
>>
>>56043223
Starting @ Intuit on the 22nd. $120k.
>>
>>56043223
enjoy your foobar trash
>>
>>56051441
Pretty much this, but you can take measures to protect the JWT token by storing it in a cookie with HttpOnly and Secure flags set. That will mitigate plain text transmission and XSS vulnerabilities. Also use an expiry time in the JWT token so even if it does get hijacked the damage is mitigated. Basically you can treat a JWT token the same as you would treat any other session token, with the same session hijacking mitigation techniques. Auth0 has a pretty good JWT+Angular tutorial btw, it assumes you use their SDK but you don't have to.
>>
>>56051418

>users can't actually see what's inside of a JWT right?
That's correct

>>56051441
>should I not bother and just pass the JWT itself back and forth and blame the user for getting their cookies stolen in the event a hacker gets their hands on it?

Yes. And you can POST it instead of setting a cookie if you're worried about that. It should be fine though. It's encrypted and signed, so it should be safe unless your server is compromised, and if that's the case you have bigger problems.
>>
>>56038229
>>56038280
reads almost like a radio yerevan joke
>>
>>56051631
>HttpOnly
How do I make ajax requests with it then? Is throwing it in localstorage or sessionstorage opening me up to any more damage?
>expiry time
Definitely an option, but I'd like a way to "refresh" said token without the user needing to re-authenticate. How do mobile apps do this safely?
>>
>>56051632
Well the JWT needs storing somewhere, whether that be a cookie, local/session storage, some secure data store provided by a mobile OS, etc.
>>
>>56051814
>Well the JWT needs storing somewhere
Right, I mean store it in a place that isn't a cookie.
>>
>>56038229
Get a job before you build a useless meme app
>>
>>56053504
Apparently you need a portfolio to get a job.
>>
File: deis.png (141KB, 1613x1271px) Image search: [Google]
deis.png
141KB, 1613x1271px
What's /wdg/'s opinion on Dokku and Deis? I'm thinking of setting up one of my Linode 8192s to be a Dokku host to run my personal sites, and setting up a 3-4 machine local Deis cluster to run staging/testing environments for client work, and some other services I expose from my home.

They sound like a pretty sweet kind of set-up, but y'all are usually good at redpilling people about stuff that's just hype.
>>
>>56042025
>You could also instantiate the class as a singleton and then export that I guess, but there's really no reason to do that over just exporting a function or object literal, etc unless OOP gives you a hard-on or something.

You have hit the nail on the head anon. I think I'm trying to make a singleton be a multi-instance when there's no reason for it.

Cheers.
>>
The internet told me that I should test each method in a Django class based view in isolation. I've been trying to do this for an embarrassing amount of time for a form_invalid() method for a while now, and it just doesn't seem to be working.
Is it absolutely essential to test methods in isolation? isn't it sufficient to test the results of the methods with Django's test client?
>>
>>56049392
Professional companies will usually charge around $100-$200 per development hour. Those developers aren't really any better than you, but if there is graphic design and/or business logic involved, they may be better than you. Also keep in mind when these professionals quote those hours, they add a 20% PM amount on top of everything.

If it is just a website and you have someone doing the design for you, then just do what >>56049578 said. If not... well I hope you are REALLY good at design.
>>
Just started a link aggregate site and realized that I have no way to share links to it, because it's all links.

How the fuck to I generate traffic?
>>
does anyone know where I can find a good react native tutorial that will help me create a nav bar?
>>
>>56054605
SEO
Keywords/Post unique content
Social Media
Buy referrals
>>
I'm trying to host a second website on my VPS/apache.

I haven't set up virtual hosts yet. The first website is inside the /var/www/html/ folder - should I just make a new folder at /var/www/newfolder/ and cp the files from /html/ to /newfolder/ and change the httpd.conf?
>>
I'm looking for the most basic CMS system possible which allows me to design my own database/design site etc without being bloating with modules/plugins etc.

Any recommendations?
>>
>tfw some stupid as fuck site is parked on a desired domain name
Fuck these cunts who take great names and just sit there for a decade showing how to cure small dicks.
>>
>>56056062
I wouldn't bother with anything besides Drupal, Joomla and Wordpress.
>>
>>56056086
Ugh, I just find them so clunky when I want a basic web app that shows text based content.
>>
>>56056104
if you are okay wasting your time on learning the ins and outs of a cms nobody uses for you tiny personal project go ahead.
Otherwise choose a CMS a company might use to gather more expertise.
>>
>>56056127
Yeah, this is true, but in this situation it's for a hobby project I want to use while I teach highschool.

I suppose it is about time I learned Drupal.
>>
>>56056082
he might use it for other services besides http.
My domain name no page on it too, but I run several applications on subdomains and services like ftp/rtmp/mail servers.
>>
>>56056062
any blog whatsoever? sorry, I don't know the definition of CMS, but blogs are simple, some don't even need DBs
>>
What would be the best way to make content in a page change from mySQL output, but not have to reload the header/html page?

jQuery?
>>
>>56057188
ajax is the only way.
>>
Who is payed more on average, and by how much - web developers or programmers?

I also wonder in what position are people who are technically "software devs" but work on backend of web apps, doing REST and what not.
>>
Hello web professionals, for a college course related project we are makig a web application using jsps and servlets.
We are doing the usual MVC thing, jsps are our view, servlets do control, model is basically beans/database stuff, and we have a filter intercepting requests to check if the user is logged in.
As of now we have about 20 different servlets, every servlet has its own url to be contacted from and checks if the parameters are present or correct (i.e. exepecting it to be a number but its just text).
I was wondering if having all these raw servlets was ok or was considered bad practise and if so if there is some kind of pattern to simply translate our architecture into something nicer that might give us a better result.
I've read about the front controller but it doesn't seem to maky any sense to me, perhaps because i haven't understood it well enough.

tldr fuckload of servlets, leave it be or implement some meme pattern to arouse my professor?
>>
>>56058524
pajeet, we don't care.
>>
>>56058868
pretty sure any web "developer" is pajeet tier, don't fool yourself
>>
>>56058048
>Who is payed more on average, and by how much - web developers or programmers?

That's oversimplifying things quite a bit. Web development is a subset of programming, and is a wide-ranging field itself. Salary varies widely based on location, experience, and skillset.

>I also wonder in what position are people who are technically "software devs" but work on backend of web apps, doing REST and what not.

Those are backend web developers. They are also programmers. This is exactly why it's pedantic and meaningless to compare such things.
>>
File: image.jpg (61KB, 408x439px) Image search: [Google]
image.jpg
61KB, 408x439px
>>56048054
>>56048209
Ha, good one.

Ask an asp.net webforms dev anything.

Also, can't wake up
>>
>>56058901
Keep telling yourself that.
>>
>>56051795
XHR requests can send cookies but frameworks like jquery, angular, won't by default. In angular for example you can enable cookie sending with $httpProvider.defaults.withCredentials = true;

Refreshing a JWT token is the responsibility of the authentication server, e.g. an OAuth2 server can send a JWT token as the bearer token response and the usual mechanism for refreshing applies, i.e. using a refresh token. This does mean that the auth server is _not_ stateless since it must keep track of issued tokens, but the app servers which trust the JWT token _are_ (or can be) stateless.
>>
>>56055257
Yep
>>
Are any of you self taught and if so how much do you make?
>>
Just got my 129124039th rejection email, wew lads.
>>
>>56060543
post your resume/examples you submitted and I'll tell you if I'd have hired you.
>>
>>56037313
Test
>>
>>56060419
Yes.
None.
>feelsbadman.jpg
>>
>>56060419
Yes
£30,000. Northern England. Would probably be more in London, but I don't speak Arabic.
>>
>>56060956
I'm guessing working in London is the equivalent of working in San Francisco or NY? You get paid more but your cost of living is much higher so it cancels itself out.
>>
>>56061126
Ya
>>
File: 1336817271410.jpg (180KB, 823x646px) Image search: [Google]
1336817271410.jpg
180KB, 823x646px
How do I become one of those hipster web developers you see parading themselves in money showers around the conference circuit with a swanky blog that regularly gets linked to on hacker news?
>>
1.Buy a beany
2.Become one with your inner fag
3.Never do anything someone is else is
>>
>>56061537
Be a non-cishet poc lgbtq++ hijab-wearing muslim dev and go around telling everyone how hard it is to one of those.

Or make something cool that a lot of people like and find interesting.
>>
Should I use react on all pages of my site? It's useful for one of my pages but does it make sense to use it if the html never changes? ie about page
>>
>>56062089
yes always, html is deprecated and jsx is the future
>>
>>56062089
If you already have react loaded, the footprint of additional stateless components is tiny, so you might as well.
>>
how would you redesign this website? http://nask.co

I think the site is a good idea, but my implementation is terrible because of the UI and the voices.

I'm thinking about rebuilding the UI from scratch. but I suck at UIs... for example, I think practically no one noticed the videos feature, which means I completely failed at highlighting it.

also, I think I'll change the domain name, add some things and remove other things.

suggestions?
>>
>>56047277

I always feel like I know what I'm doing, except when I'm working in node, which, ironically, looks like OP's pic.
>>
>>56048672

>Progressive JPEG
>>
>>56036739
Anyone use yeoman? Is it worth it to learn it?
>>
>>56062867
no
>>
>>56036739
Has anyone here tried both Vue.js and React?

React looks like overengineered shit to me and Vue.js looks succinct and pleasant to use. The docs are certainly better and the author claims it is even faster in most relevant situations. Am I missing something about React or it used just because "muh corporate backing" and momentum?
>>
Is there any free software/app/website where I can practice developing a test website instead of buying the domain first? Something that'll let me see the finished product of the test
>>
>>56064164
you don't need a domain name to do that.
you seem to be confusing a few things at the same time, what are you trying to do?
>>
>>56048672
use thumbnails, show the thumbnail in place of the full image (with the same dimensions of the full image) until the full image has loaded
>>
>>56064225
I started doing tutorials recently, but I'd like a chance to build my own website for practice. Starting my own project and building from scratch for free or at a low cost
>>
>>56064543
when you develop something you run it locally anyway, you don't need to upload it anywhere to preview it.
>>
>>56056181
Use wordpress. What's the project?
>>
>>56064543
Use a virtualbox server, wamp/xampp/lamp and run it through that.

You can also use webmatrix but that's kind of rookie mode.

I would recommend a virtualbox or wamp. Pretty easy to set up.
>>
>>56064842
It's basically for creative writing; a website students can use to post stories 'to the internet' so their classmates can read them.

It's super basic but obviously I'm time constrained. I'm seriously considering paying someone to make it for me but it's actually relatively simple to make.
>>
>check out vue.js website
>check out her creator (Vue is a she, deal with it)
>some chinaman with a bunch of followers
>check out some of his code on github
>check out vue.js code on github
>realize I will never make something even remotely complicated
>get intimidated with 300 LOC already

I can't. Hold me.
>>
File: Creepy-Condescending-Wonka.jpg (45KB, 550x545px) Image search: [Google]
Creepy-Condescending-Wonka.jpg
45KB, 550x545px
>>56056475
You're telling someone who doesn't know how to code to run a flat file CMS? Let me know how that works. Yeah sure, everyone knows how to use jekyll, flask, hugo, but there's no way in hell it's suitable for this guy's hobby project.

He should just use wordpress or drupal or joomla! or whatever
>>
>>56062606
>http://nask.co
It's going to hook into SMS? I don't get what you're doing unless it's an IP trap
>>
Has anyone here used https://www.npmjs.com/package/glob ?

I'm trying to glob for an image in specific folder, in my case its a folder for an album and the file is the cover art of an album. The cover will can be called cover.jpg/jpeg/png.

at the moment I'm using this code

function setCoverFile(songPath){
//songPath is the absolute path the file of the song
var songDir = path.dirname(songPath);
var globPath = path.join(songDir, 'cover.+(jpg|jpeg|png)');

glob(globPath, function(err, files){
if(err)
console.log(err);

if(files.length > 0)
setImage(files[0]);
else
setDefaultImage();
});
}


This works fine unless there is a space somewhere in the path and then it just finds nothing and I'm not sure how to fix that. I tried escaping the spaces in the globPath like so '/path/to\ a/file' but is still didn't work. I also tried wrapping the string in ' and " so it would be "/path/to a/file" and it still didn't work.

I also tried to change the working directory in the options like so

function setCoverFile(songPath){
var songDir = path.dirname(songPath);
var pattern = 'cover.+(jpg|jpeg|png)';

var options = {
cwd: songDir,
}

glob(pattern, options, function(err, files){
if(err)
console.log(err);
if(files.length > 0)
setImage(files[0]);
else
setDefaultImage();
});
}


and I still get nothing

Any ideas??
>>
>>56064907
Once you've written a lot of code, a few hundreds of lines is "easy".
>>
>>56064903
You're an idiot. Use moodle.

https://moodle.org/

Source: I'm a former educator.
>>
>>56064903
I really should have charged you $300 for a site and given you a moodle one a week later.

You owe me lunch

Srs question how much would you have paid a developer to do that?
>>
>>56065189
>>56065147
Moodle doesn't do what I want to do, I don't think.
>>
>>56065035
>It's going to hook into SMS? I don't get what you're doing unless it's an IP trap
what do you mean? nask.co is my website, and I want to make it more attractive
desu, I'm not sure if it's worth to keep wasting my time in the website. no one uses it, and it's been running for almost a year
>>
File: Dolphin.png (9KB, 160x160px) Image search: [Google]
Dolphin.png
9KB, 160x160px
>>56065254
I think it's probably the solution to your problem. Look in activities. I have used this software in my own classes. There are also plugins and lots of other stuff. This is the best CMS for you, IMO. It's expressly designed for educators. It's free, too.

Regarding price I'm curious, because it's probably a service I can start offering that I'd never thought to. I figured most educators were aware of it. I'm not going to try to charge you for advice I gave you for free if that's what you think.

Consumer pricing tends to be very difficult for small business e.g. mine so input is often helpful, so I would appreciate if you'd tell me, it helps to gauge the market.
>>
File: 1437450750432.jpg (560KB, 1000x1502px) Image search: [Google]
1437450750432.jpg
560KB, 1000x1502px
>>56049659
So you are a professional freelancer now? How much are you really making, per month (if you don't mind answering,) and how do you find work?

I want to do this but I don't see it being possible / worthwhile while living in the States. The sites I've looked at seemed to be flooded with foreigners who are willing to work for pennies. And they can do that because it costs next to nothing to live in Poland or India or Thailand.

I'm pulling in $75k in a 40 hour / week office job. I'd take less to work fully remote, and I'd love to be self-employed, but it seems extremely difficult with the foreign competition.

I mean $600 won't even pay a third of a month's rent for a 1BR apartment where I'm living right now. I'd have to do three websites / month (at your rate) just to cover rent alone. Throw in food expenses, mobile, Internet, car insurance, health insurance, etc. and you're looking at at least 5 websites a month. And that is probably only doable with static websites pages or with dynamic sites that can almost entirely done within a framework. So obviously I'd have to move somewhere cheaper to make this at all worthwhile.

Freelancing seems like a total shitshow to be honest.
>>
I've never touched anything outside apache/php for web development.

I want to do a multi-page but very simple multiplayer browser game. Think of stuff like two players attacking a monster, the database keeping track of each player's hp, etc etc.

What framework should I do? I'm a student so doing everything from scratch would be extremely painful
>>
>>56065648
Oh I thought it was a proof of concept to read out loud text messages from phones. There are services that read out loud text messages or alternately record voicemails as text. Figured that was what you were going for..
>>
>>56065711
I was previously aware of moodle, but admittedly I forgot about it because it wasn't what I was looking for.

As for price; I didn't want a moodle site so I couldn't give an indication of it...with that said I'm sure teachers would enjoy a cheap service which implements a moodle site for them. Most will be able to claim the price back on tax in my country.
>>
>>56065725
If you have a 75k/yr 40hr job DO NOT LEAVE TO FREELANCE

Freelance Web design is a dead end. People in low cost of living countries are churning out bad WP and now BS3 sites by the hundred using pirated templates at $50/each.

In the US, some successful "web designers" are ad agencies that come up with flashy designs, use no-code tools and are borderline incompetent programmers. They usually toss in the site design with the other services. It's what was behind that whole hideous parallax phenomenon.

Back-end people can do front-end now too thanks to Bootstrap and other frameworks that make it easier than ever to make nice sites without any graphic design.

There are also people that through dumb luck just catch on due to social networking (IRL) know the right people etc. Usually they're borderline incompetent, but social proof will have the locals claiming this guy is the best "computer programmer" on earth. And the best way to be popular is to be popular.

Some of these people outsource everything. The ones that don't, make a living by racking up hours on complicated things like Magento, Penetration testing, customizing various obscure or out-of-date technologies or software or various back-end.
>>
>>56065748
I could do that but there is no point in using my website for that t-b-h... unless I wanted to collect data

the website was a random idea I had, about making a web interface for some linux programs. I thought it could take off, but it didn't, and I couldn't find an area in which people would use it, so...
>>
>>56065725
Oh FYI, stock market bro. put money in an index fund and DCA, esp next major dip. Keep working your job, get some coin on the side. 10% is real easy. 20-30% is not that hard.
>>
Can anyone recommend a good reliable mobile nav that slides out from the left and pushes the page to the right?

I have found one or 2 tutorials but people complain about it not working on some phones, was just wondering if there was a proper tried and tested one?
>>
File: 1452493980585.jpg (197KB, 960x720px) Image search: [Google]
1452493980585.jpg
197KB, 960x720px
>>56066010
>If you have a 75k/yr 40hr job DO NOT LEAVE TO FREELANCE
That's what it seems like. I read these freelancing blogs, I check the subreddit and other forums, and there seems to be three types of people I see:
1. People who aren't actually making any real money, and are honest about it.
2. People who just seem scammy as fuck, or appear to be obviously lying about how much they are making. And that's if they mention their income at all. Most don't, and if they do, they don't go into specifics beyond their hourly rate. An hourly rate doesn't tell you anything, without knowing how many hours you're charging per project or how many projects you're doing per year.
3. People living in fucking India who can do just fine making literally one-tenth my salary.

The whole thing seems like a total fucking shitshow. I can go on Upwork right now and 95% of the projects seem like a total fucking mess, specs written by people who are clueless, and they pay dogshit. These people are asking for complicated web services for like, $500, and I'm thinking what the fuck? To do the same amount of work at my current gig I'd make something like one hundred times that much money, and that's not hyperbole. One hundred times. And I'm not a senior developer, I'm only a few years out of school.

When you actually crunch the numbers the entire thing seems like a fucking pile of shit, and that's why I think all these guys read like textbook scammers.
>>
>>56066186
>was just wondering if there was a proper tried and tested one?

There is. Pay me $2000 and I'll make your website for you.
>>
>>56066059
Well regardless, might want to keep the domain. It's a 4 letter .co that's cvcc. Easy to pronounce too.
>>
>>56066268
yeah, I'll keep it. thanks
>>
File: Screenshot_76.jpg (86KB, 721x428px) Image search: [Google]
Screenshot_76.jpg
86KB, 721x428px
>>56066249
If you want to freelance you build it on top of a successful career. You don't go on fucking Upwork.

Have you considered contracting? Do a 6 month stint and then basically spend the rest of the year wanking off.
>>
Beginner here.
Learning basics atm.
Check this out: https://jsfiddle.net/fwLxhdkz/

Ignore the header, fine for now.
I want the grey main content as it is. Ranging from header to footer, with 960witdh, scaling responsively.
The red box inside stays at a fixed size, centered withing the grey box at all times.

The problem:
I want the footer glued to the bottom but not fixed. As in, when the content is larger than the viewport the footer goes offscreen.

Also, when scaling it down, the red box should push the footer offscreen and not be affected by an additional scrollbar.

Hope that makes any sense.
Thanks in advance.
>>
>>56065800
"/g/ is NOT your personal tech support team or personal consumer review site. For tech support/issues with computers, use /wsr/ - Worksafe Requests"

You're a customer, not a designer. No more free advice.

Post in /wsr/ or buy a book on wordpress or hire a wordpress expert for $25 on fiverr from Yemen, which I assume is your price range. Let me know how that goes. Or don't. I know already.

Cheers and good luck.
>>
>>56066621
Well... turnes out I made the centered box red after I saved the link.
Light-grey it is then. Should be self explanatory which one I mean anyway.
>>
File: chrome_2016-08-13_18-27-14.png (121KB, 902x255px) Image search: [Google]
chrome_2016-08-13_18-27-14.png
121KB, 902x255px
How do you get rid of the ulgy blue highlight on the selected option tag when you focus a select tag?
>>
File: 1431812991388.png (189KB, 296x306px) Image search: [Google]
1431812991388.png
189KB, 296x306px
>>56066393
>Have you considered contracting? Do a 6 month stint and then basically spend the rest of the year wanking off.
Sure. I work through a contractor right now. One thing I've noticed is most people (as in, over 90%) want their prime to be a senior dev (and by senior, they often mean a decade of experience.) So it seems to me that is largely not happening -reliably- for someone at my level of experience. Which is okay, I mean that's not surprising at all, and I don't disagree with that practice. Makes sense.

I see the chart, people claiming they are charging 400 GBP / day (comes out to about $500.) Using an 8 hour day we're talking ~$60 an hour. This brings me back to my previous point that, that tells me nothing at all. How many hours or days are these people billing per year? Where are they finding work? Are they working 70 hour weeks? Why the obtuse rate, why can't any of these people provide a simple annual salary for their typical year?

Just saying, every time I read posts by these claimed freelancers they seem scammy as fuck. Or you find the rare guy who's honest that he's not actually making money, or the guy in Bangalor.
>>
File: chrome_2016-08-13_18-26-48.png (119KB, 917x247px) Image search: [Google]
chrome_2016-08-13_18-26-48.png
119KB, 917x247px
>>56066713
>>
>>56066621
>https://jsfiddle.net/fwLxhdkz/

1) media queries
2) Learn Bootstrap

OK, here's what you should do to remedy that:

go here:
http://www.w3schools.com/
1) read on HTML5/CSS3
2) read about bootstrap

This will make more sense then. You're welcome.
>>
>>56066637
I wasn't asking for someone to do it. I was responding to a question.
>>
>>56066393
Or better "whilework". Some people I know used to run their own side businesses while at work.
>>
>>56066793
Well that would be nice wouldn't it.

https://news.ycombinator.com/item?id=8844083
>>
>>56066769
MDN is better than W3 imo, but that works too.
>>
Man, I thought Edge would have fixed IE's shitty font rendering but apparently that was too much to ask for.
>>
>>56036739
I'm working on my first site and I'm having a program with coming up with good anti-spam systems.

I was going to put a limit on how many files an ip can upload at once, but I didn't think about universities on a shared connection.

How does 4chan do its IP bans without banning entire college campuses etc?
>>
>>56068944
If you're worried about ddosing attacks, they're usually done through UDP not TCP. So just firewall any UDP trafic off from your server.
>>
>>56068944
Spam is a good problem. It means you made it. Worry about it later because there is a 95% chance your site will fail.
>>
Does anyone know if Amazon Web Services charge you per month?

I'm considering using Amazon S3 to host a simple low traffic web site and I estimate it'll only cost a few cents per month. But what happens if I only use 1 cent for that month? Is Amazon really going to charge my credit card for that? Because they still have to pay credit card transaction fees, right? Won't they end up losing money instead?
Are they going to bundle the payments or something?
>>
>>56069169
I thought amazon had a free VPS service?

Does amazon have an add credit option?
>>
>>56037393
use goto, doesn't cost you stackspace
>>
>>56069118
I'm not trying to make some big epic site to make shit tons of money though, jerkdick. I'm trying to make something just for the sake of doing something, and for putting something on a resume.
>>
How do I open the chrome development console (that let's you inspect elements and such) on Android chrome?
>>
>>56047277
Only in wdg. Real programmers know what they're doing. And they hate it.
>>
>>56065725
Small projects are a waste of time.

You should be charging like 60$ an hour minimum if you want to make the equivalent of 20$ an hour and some profit.. This is business 101.

Also go for larger 10-40k projects.
>>
>>56051418
>users can't actually see what's inside of a JWT right?
Wrong, users can see the data, it's just base64 encoded, try pasting on jwt.io
>The copy they authenticate with is encrypted if I understand correctly
No, it is signed so we know the server made it and not somebody else
>>
>>56071599
As somebody said, you gotta be on the spectrum to enjoy this shit.
>>
>>56072598
you can have it encrypted too, so the client can't read it.
>>
Is React only useful with Node.JS? I wouldn't mind learning how to use it but would prefer having my server on an nginx/php backend.
>>
>>56073677
no, react is client side, it doesn't matter what your backend is written in.
>>
why wordpress' theme docs are stuck on "coming soon" since more than a fucking year? is there any alternative book or online docs on how to code a theme or do i have to go with their shit outdated theme cookbook?
>>
Someone redpill me on eval being dangerous/evil/a security risk. Why do people say javascript's eval can be a security risk? How can it be one when it's all frontend?

I mean, it obviously has its problems and should be avoided if possible (annoying to debug, IDE might not pick up on it, easy to misuse, etc), but I'm not sure if it's just dumbass retards over exaggarting it because they read some article about eval being bad.
>>
>>56074375
It's not a security risk if the code you feed it does not contain user input.
If it does, the risks should be obvious unless you know nothing about webdev
>>
Pronouncable 4 letter (not char) .coms worth much these days? Out of the loop for a decade or so.
>>
I'm maintaining a HTTP site that deals with logins.

Is it logical requiring the use of javascript so that I can hash it with something like SHA512 and unsetting the password field before sending through HTTP?
>>
>>56074446
I don't know but I have .work and .link domains that costed me literally nothing so yeah
>>
>>56074456
what difference would it make?
if someone intercepts the traffic he can just send you the hash then and login anyway.
use https.
>>
>>56074375
It's obvious security risk when contains user input, it's string not code and using it indicates serious problems with your code structure. Basically if you use it theb you are shitty dev and if some other program forces you to use eval then it's shitty program. Interestingly i have seen later case with wordpress.
>>
>>56074309
Youtube tutorials exist. There are some quite good ones. If you hear some child's voice then you stumbled upon a series I watched, and unironically, they are great.
>>
where can i get cheap yet decent web hosting? does not need to be any special, just hosting a blog and a podcast
asking here because i can't find unshilled reviews on google
>>
>>56075703
have you tried to bind the function directly in the constructor?
>>
>>56075849
I figured it out, a misplaced bracket.

Thanks for offering to help though
>>
>>56050170
java with http://www.pippo.ro/
>>
>>56075867
if you find yourself often forget to add brackets, or other syntax error, using a linter like eslint / jshint / standard might help.
>>
>>56076079
cool beans, thanks for the tip
>>
>>56075870
>using java with anything besides Spring
>>
>>56076159
I don't think you really need it for most applications.
>>
>>56060956
Where abouts are you? Manchester here, only on £25,000. I do browser-based things that aren't traditional websites (touch screen kiosks, interactive screens for events, wireless sensor displays etc.). I'd like to be earning more, especially since you can get this much for pumping out CMS shit.
>>
>>56066186
Jasny bootstrap offcanvas
Used to be a part of bootstrap some time ago i think
>>
Why are your salaries so low? That's worrying. I rarely see a good web dev salary and that is only for senior positions with 10+ years of exp.
>>
>>56075497
thanks, do you have a link tho?
>>
http://www.dropwizard.io/

Never see this framework mentioned but it looks decent
>>
>>56077271
https://youtu.be/8OBfr46Y0cQ

I think this is it.
>>
Every day I learn about at least a couple of new frameworks. Shittiest industry in the world.
>>
>>56077354
>Shittiest
Things are improving for the better, life is getting easier for developers, it's an interesting field to be in right now.
>>
>JWT
what is this? new meme? why?
also, it claims to be used for security, and already has vulnerabilities, lols
>>
>>56078036
To be fair everything has vulnerabilities.
>>
>>56078974
yeah, but some are much worse than other ones. and you'd expect real security from a library that is going to be used for security.
>>
File: capture20160814232052241.png (10KB, 402x182px) Image search: [Google]
capture20160814232052241.png
10KB, 402x182px
>mfw almost pushed the commit
>>
>>56079214
literally kek
>>
I know a little bit of html/css and javascript enough to make a generic web page but I have no knowledge when it comes to the internet side of the work.
I know all of jack shit about networks, servers and such. I know nothing about how to actually make my generic page an actual website that can be visited through the internet.
Are there any specific resources out there that can teach me about this stuff?
>>
File: Sad_Anime_girl_crying_2.jpg (38KB, 600x450px) Image search: [Google]
Sad_Anime_girl_crying_2.jpg
38KB, 600x450px
>>56080116
How can I design websites if the whole designing process makes me vomiting?

I do not have problems with programming but to actually make a nice looking site. I am autistic not acoustic.

> inb4 copy sites
B-but I want my own ;_;
>>
File: 1463604832914.png (238KB, 517x855px) Image search: [Google]
1463604832914.png
238KB, 517x855px
>>56080370
looks like you replied to the wrong person buddy
>>
>>56080116
learn C, HTTP, TCP/UDP, CGI/FCGI and OSI then you should see the bigger picture and how things come together
>>
new thread when?
also bump
>>
there's no point in using the router in React if I am running node on the server right? It's just a way to do routing on the front end?
>>
bento.io, freecodecamp or odin project? i don't want to get a job on webdev, mostly doing it for fun
>>
File: chrome_2016-08-14_18-54-47.png (8KB, 551x89px) Image search: [Google]
chrome_2016-08-14_18-54-47.png
8KB, 551x89px
>>56036739
How should I style the checkbox?
>>
File: 972663462364.png (13KB, 256x63px) Image search: [Google]
972663462364.png
13KB, 256x63px
I'm practising JS using an AJAX website where one of the pages has a slideshow. Right now I run the init function each time this page is visited, but this results in duplicate eventListeners. So, I have a function that unbinds the events before binding them once again.

Is this retarded? I feel like running functions based on individual elements is bad practice.

slideshow: {
init: function() {
App.slideshow.off();
App.slideshow.container.classList.add('slideshow');
App.slideshow.currentImage.classList.add('active');
App.slideshow.on();
},

on: function(){
App.el.win.addEventListener('keydown', App.slideshow.keys);
App.el.win.addEventListener('mousemove', App.slideshow.mouse);
App.slideshow.container.addEventListener('click', App.slideshow.click);
},

off: function() {
App.el.win.removeEventListener('keydown');
App.el.win.removeEventListener('mousemove');
App.slideshow.container.removeEventListener('click');
}
>>
File: fatkike.jpg (1000KB, 1536x2560px) Image search: [Google]
fatkike.jpg
1000KB, 1536x2560px
>>56043223
>>
Hello guys, im new into this..and i have few questions.

>I know html, css pretty decent...what should i learn now?
>What exactly do i need to know to start making money with webdev?
>Where i get my fist custommers?
>>
>>56083735
>I know html, css pretty decent...what should i learn now?
Javascript. (Not just jQuery.)

>What exactly do i need to know to start making money with webdev?
>Where i get my fist custommers?

Freelance is overrated and you'll find it very hard to make any money without experience and a network in place. You should concentrate on getting a job in the industry, and transition to freelance later on (if you still want to) once you have plenty of contacts to send you referrals. If you're determined to go freelance right away, I would consider getting a sales job of some sort. Freelance is like 75% being a salesman and 25% development.
>>
>>56083735
>>56083856
>Where i get my first customers?

Another good way of getting work is contacting design/programming studios for collaborations, as they often come across the opposite problem: too much work and not enough people to do it. Freelancers are a good way for them to take on bigger projects. It's essentially like being hired temporarily, and a great way of networking.
>>
How do you all feel about material design single page web applications? The web application I'm making at work is material because I think it looks nice.
>>
>>56085473

Find out what your potential users like, a 4chan user's opinion shouldn't really be relevant to you right now.
>>
Is NodeJS just a meme? Something about single threaded programs with no web security is a bit of a concern for me.

I'm thinking of just doing a few Ajax calls for my website but am considering going through the React + NodeJS route.
>>
>>56086387
Right, I'm not going to base my design decisions on what 4chan says. Our app is well into production and we've decided to use material for all of our new applications. I'm the lead developer for our engineering systems applications, so it was me who made that call. I chose it since it allows my developers to focus more effort on functionality rather than ux design while at the same time maintaining a certain minimum standard of ux quality.

I was just wondering what the general opinion on material was, aesthetically and otherwise.
>>
tl;dr hosting, got meh hosting, need better/cheaper, what do?

Using bluehost now. Just had a personal site w/my resume and a separate political blog with a small readership. Worked fine for that.

Putting up a real commercial site now. Just realized I have at least 6 months left on BH and that hostgator and a bunch of other places are cheaper and have better service (including some I'll probably need).

I also done fucked up bad and registered my company domain name through my host and not my registrar. Just transfer it?

Any help appreciated.

Thanks,
anon
>>
>>56087538
Transfer domain to namecheap.
Use openshift
>>
>>56087448
Material design looks good in mobile apps in my opinion, but I don't think I'd build an entire website using that design flow.

Since you're only making a single page application then that's fine too, as long as you don't over-do it to a point where it starts looking like a blown-up version of a mobile application.
>>
>>56087578
ty very much for advice anon
>>
>>56081500
>>
Why does adding 2 to 0 give me 02, in Javascript? Adding 2 to this gives me 022. Adding 4 gives me 024, etc.
>>
>>56088447
stop adding strings you idiot
>>
>>56088463
But they're not. I'm parsing it first and checking the number after the fact, it's most definitely an integer.
>>
>>56088476
then post your code maybe?
>>
>>56088447
That's what you get for not using typescript
>>
New thread: >>56090076
Thread posts: 315
Thread images: 33


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