[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: 324
Thread images: 35

File: 3.png (868KB, 822x552px) Image search: [Google]
3.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/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md (embed)

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
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/ (embed)

>How to get started
http://pastebin.com/pDT82mQS (embed)
http://pastebin.com/AL6j7GEE (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
>>
how do you guys deal with mit-licensed codes? so lets say i have a comnercial peoject that uses a mit-licensed code from github ill just include the license file in my project folder right? or do i just go full pajeet-mode and delete all licenses and license notices and pretend i invented the code?
>>
I had my first day of work today.

The job description? PHP dev. Add things that the accounts want added. Basically customize an already customizable framework.

>arrive
>hey, here's how you clock and here's your desk.
>desk covered in boxes for monitors and computer shit
>put computer together and get it working
>they didn't make any of my accounts, so I have to read over 3 pages of stuff for 4 hours while they make my accounts
>windows 10
>phpstorm
>in-house framework (like not even MVC, just MV or more like MMMVVVVVVVVVVV) I don't use frameworks so this is bad for me.
>writing when and what we are doing at every minute of the day in an excel spreadsheet.


I have no idea what I'm doing. Their framework is a mess, you literally add things by running batch files that add shit to the clients page. Like what the fuck is this?

>get trained in the software that the CLIENTS use
>everything is a gagglefuck all over the place and I can't even learn that in less than 2 hours. This is software the CLIENTS use
>get quizzed on terminology in a 9 page PDF I had to read, obviously fail because I burned my brain out on their terrible software and figuring out shit with phpstorm for 7 hours.
>guy that's been there for months literally runs out laughing when I can't answer the definition of some acronym.


God dammit! I could have never prepared for this and it has made me feel so fucking retarded.

Is this normal when you go to a new web dev job? I know everywhere uses different things and you kind of have to train on it for a while, but good lord, fucking windows 10 running WAMP and some GUI git alongside PHPstorm that can apparently svn or some shit and jira all while talking to clients who can't computer and filling out a minute by minute time excel spreadsheet?

WEEEEEEEEEEEEEEEEEEEEEEEEEW

I like it though and I hope I learn it fast. I also hope dickhead stops laughing because I can't cram like a 12 year old on adderall can.
>>
like the guy that was laughing at me was drawing out how associative arrays work on the whiteboard just an hour earlier.

fucker, I nailed that when I WAS a 12 year old cracked out on adderall.
>>
<script src="blahblah.com"></script>

If you have a script with a src in html, will it automatically run when you open the page?
>>
>>59193143
It will run when the HTML parser gets to it. Right after all elements before the script tag have been constructed.
>>
File: 001_JeQYolM.jpg (10KB, 256x256px) Image search: [Google]
001_JeQYolM.jpg
10KB, 256x256px
React is fun.
>>
>>59193230
enjoy getting cucked by zuck
>>
File: lookoflels.gif (2MB, 300x300px) Image search: [Google]
lookoflels.gif
2MB, 300x300px
>mfw his app refreshes the browser
>>
>>59193028

how much are they paying you jw

also yes this is the downside to taking over a project that you didnt write
>>
>>59193326
Well the guy seemed disappointed that I couldn't answer the shit in the document when I "nailed the interview questions" so fast.

I cant believe that dude ran out laughing. I know 3 full stacks and he later called javascript a weird language. I'm going to train anime style.
>>
>>59193028

dude get out of there now
>>
>>59193445
I need the experience. If they take me into a room to fire me then I will just quit.

I've been trying to land a job for over a year. Cant go back to that.

They lose devs faster than they get them. 1 guy left the week before and one put in 2 weeks today. There are only 9 devs.

I'm giving this my all right now.

I knew I should have learned frameworks.
>>
>>59193028
You picked a bad company first of all.

Second, it'll make sense in a week. Your boss is probably more experienced and understands the adjustment period. If it is how you described than yeah you picked a bad company.
>>
My small new agency landed its first big client today.

A chemical company, hired me at 100usd an hour for 40 hours a week for the next 6 months to create a dashboard for clients to monitor data output from machines.

Feels good senpai. If I do this well I'll be able to secure bigger and better contracts.
>>
File: nodejs.png (86KB, 905x702px) Image search: [Google]
nodejs.png
86KB, 905x702px
Been using Angular + Typescript and it's /comfy/
>>
>>59193602
True, I just hate feeling behind.
>>
File: whyy.png (12KB, 609x195px) Image search: [Google]
whyy.png
12KB, 609x195px
Post from last bread, one last shout out for help...

So I'm using chrome Postman to send a GET request to an API. Can't use an XMLHttp request from a script because of access control issues.

After copying the contents of Postmans GET request (valid json) to a .json file I'm trying to fetch that and format it into a JS object with the .json() fetch api function but guess I'm fucking up somewhere. Not sure where though?
>>
>>59193365
>I "nailed the interview questions" so fast.

What were the questions?
>>
How do I link in bootstrap in an html document if I have it downloaded?
I know you can just use the CDN links but I'd rather use what I downloaded. Do I have to make copys of the bootstrap files and put it in my project folder and link it like a style sheet?
>>
>>59194442
http://stackoverflow.com/questions/37280274/syntaxerror-unexpected-token-in-json-at-position-0-in-react-app

Some google-ing might help you out.
>>
>>59194442
should be:
then data = data.object1;

assuming object1 is inside the json file.

then console log the data.length
>>
>>59194544
This did not help, that guy's parsing html by mistake. I'm trying to parse valid json. Thanks though...
>>
>>59193005
Have you tried actually reading the license? It's pretty clear on what you have to do.
>>
Are churches and non profits good customers? Most have websites from 1990 and it wouldn't take too much effort to improve them, but are they able to afford it?
>>
File: 1477623492078.jpg (19KB, 540x405px) Image search: [Google]
1477623492078.jpg
19KB, 540x405px
>>59193706
>>
>>59194954
Having a website from 1990 indicates they have no willingness to budget for a new one.

I would consider doing to for free in my parish, but there's no reason to fix what aint broke, a fancy site isn't going to lure in more people, unless it's one of those places that are all entertainment and no substance, and they have lots of expensive advertising already.
>>
>>59193706

You'll fuck it up.
>>
What's a /g/ approved cpanel?
>>
>>59189928
replace lambda with old fashioned function

>>59194954
Yes, just make sure you get the full scope of the project before starting. You don't want to walk in thinking you're doing a 10 page site when they have 40 pages you didn't see. Start small, don't do their whole site to begin with, start with one new page. Starting small can help you limit your risk, build trust, and gain experience at a reasonable pace
>>
>>59194442
replace lambda with old fashioned function
>>
CEO is making me mess with the CTO by having his coffee cup on my desk. He apparently stopped drinking coffee because someone drank from his cup before. The CTO already thinks I'm an idiot.

Help!
>>
>>59197380
Not a chance, already made it.
>>
>>59193706

Nice one, anon. That's some sweet income too.

How much experience do you have and are you a one man show?
>>
>>59193706

what the fuck

6 months of 100 an hour? jesus christ
>>
is .insertAdjacentHTML still good and modern to use? works like a charm so im assuming so
>>
>>59200485
I mean, bill rates where I work (consulting firm) won't touch a project that isn't $100+ / hr for at least a month. I work with 4 other consultants at our current client and our averaged bill rate is $130. So some of the guys are billing at somewhere near $200/hr while I'm bringing down the average at somewhere near $85 I think
>>
rate my javascript

switch (data.ActionTaken)
{
case "Need Proof of Purchase":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "Sent to Warehouse":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "2nd Request":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "3rd Request":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "Completed":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "Unable to Fulfill":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
case "Unknown":
document.getElementById("ActionTaken").value = data.ActionTaken;
break;
default:
document.getElementById("ActionTaken").value = "Need Proof of Purchase";
}

>>
how do i get my site/app to not cache? or if i want only images cached or something
>>
>>59202047
google cachebusting for whatever you are using

Laravel has a versioning system which deals wiht it.
>>
>>59202192

its weird cuz i can be editing and saving for most of the day just fine. But then all of a sudden it will get cahced and no updates i make to my files will show on my app (even when im in incognito mode). Is this server side or client side? i'm using PHP on IIS
>>
>>59202258
It's server side, not sure how it would be done easily without a framework but it basically just adds some numbers at the end of the file name for versioning. Automatically changes the file name references to it as well.

for example my css would be
app.1c0fdebf355e83afadce.css
(the long thing changes every time I change the file)

and referencing it would be
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
>>
>>59202309

yeah but you would need to refresh the page everytime for that part of the url to be generated to something different. Wouuldn't it be better to just disable caching in the server settings?
>>
>>59201953
looks like something my coworker would do.
>>
>>59202372
It's automatic
>>
>>59202728

so like generate a random number every second or something, store it in a variable and use that to put at the end of my .js url?
>>
>>59202867
It does it automatically just use a framework
>>
>>59203057

why not just disable caching on your server tho
>>
>>59203070
It's the browser that does it
>>
>>59203083

but i thought its server side? i disabled caching on my IIS and so far no more caching. I don't think it matters if you disable it client or server.....?
>>
File: Captur2e.png (779KB, 546x602px) Image search: [Google]
Captur2e.png
779KB, 546x602px
>tfw VS Code February update
>inb4 shill
>>
>>59193707
I've been trying to get a grasp of Angular 2 with their own docs this week, do you know of any good external resources to progress with afterwards? A book maybe?

Thanks senpai
>>
>>59193028
it's k, companies shouldn't expect you to be 100% productive right off the bat, there's always supposed to be a few months period before you actually earn them money
>>
>>59193526
>If they take me into a room to fire me then I will just quit.
never do this you retard, if they actually want to fire you let them do it and collect welfare moneyz before finding a new job
>>
File: 1486298262274.jpg (102KB, 960x540px) Image search: [Google]
1486298262274.jpg
102KB, 960x540px
>>59193706
fugg how do i get people to pay me 100 / hour
is this the true power of self employment ?
>>
>>59194442
data.json() returns a promise
>>
does this "load" the php file each time or only on the first time its called?

xmlhttp.open("GET", "test.php", true);
>>
Does anyone here know how to delete a files contents with golang??
>>
>>59198934
Why do you work with retards? Start looking for a new job.
>>
>>59203638

open it up and clear all the characters?
>>
>>59203568
open just initializes, nothing will be loaded.
>>
>>59203719
How?
>>
>>59193707
you need to put gender assignments on titles? I assume it would be to know how to refer to them in the email, but if thats the case, what about the blank ones..
>>
>>59203367

£300-£350 a day is the going rate for an experience (but not senior) developer on contract here.
>>
>>59203787

thats real simple, Go should have some methods to do that...if not just use php or some shit
>>
>>59193028

1: Imposter syndrome never goes away as a developer, you get used to it.

2: the first week of any new coding job is "omg wtf I don't understand any of these wtf is going on, are they going to fire me?". Expect it to take a couple of months to truly understand how things work and 6 months to a year to understand every bit of the code. The most important thing is always to not let it get to you and make you feel it's hopeless.

3: Messy built-from-the-ground-up CMS with stupidly complicated work flows are also common. You get used to them.

4: Half arsed MVC frameworks that miss out one of the letters are also common.
>>
>>59194954

I once worked for a company that took on a project from some Quakers. It was a nightmare. We delivered, they messed us around with paying.

Here's the thing with small tech illiterate charitable companies:

They will not understand project management, tech specs and 'signing off'. You will do a 30 age design document listing all the features. you'll get 3/4 of the way through the project and you'll get the following exchange:

>"Looking good, when are you going to add feature X"
>"Feature X wasn't in the specs..."
>"Feature X should have been obvious, we need feature X"

They won't understand the 90:10 rule where the site looks great after a few days but it then takes several weeks to do the backend code.

They won't understand how long things take. "It should only take a day or so to add a shop to the site right?".
>>
Common misconceptions:
>space is cheap
Sure, let's see how cheap it is when you have to upload one hundred thousands files on FTP. This is the true package manager experience.

>PHP is easy
Sure, for simple stuff it makes things easier, but god help you if you need to make complex stuff with it.

>Just save as JPG
You damn fucking cunts, back in the days people knew when to use PNG GIF or JPG, what the fuck happened.

>I like Angular
We'll see how much you like it when management will force you to make a whole multipage website full of angular broken third party components, because reasons.
Also $timeout is the magical panacea for everything.

>Package managers are good
They're very good at bloating everything. They could at least have the decency to compile modules into fewer files or zipping or some shit.
>>
>>59204269
>They won't understand how long things take. "It should only take a day or so to add a shop to the site right?".
I feel you.
>>
>>59193526
>They lose devs fast
>laugh at new employees to make them feel stupid

Pretty big red flags senpai.
>>
you wouldn't webdev a video game
>>
>>59204399

I think the most common misconception is you need to use frameworks. I honestly see no upside to them besides getting things done a little bit faster. If your boss is some hot shot who doesnt understand it takes time to write good clean fast code and wants you to write apps quickly, then yeah go ahead and whip something up real quick. Fuck it just use word press! I can understand bootstrap or something if you hate front end and want something quick, but thats it.

The downsides are youre not learning how to program at a lower level (even tho it's still high level cuz this is fucking web development for fucks sake), but you learn a lot more without frameworks holding your hand. Your app will be slower too. By milliseconds sometimes, sure, but it will be slower. Do all frameworks even support async? I've been writing apps for a few years and they're fast as shit even on the cloud. Make your back end deal data to you in the simplest way, dont try to do too much with it. Then use vanilla JS/AJAX to bind it. Boom. You have a really fast async app. You don't need a framework to write a fucking for loop for you.

Also, any M$ .NET shitty, layered, confusing, error prone framework faggots here? kys
>>
>>59204728

Frameworks enforce discipline. When you are lazy and put code wherever it's incredibly obvious and will/should get spotted in a pull request.

A lot of fully featured frameworks also help prevent your code becoming a patchwork of libraries and scripts scattered all over the place. Frameworks can have built in async work, they have universal form builders, they even often have their own lightboxes so you don't end up with 5 developers putting in 5 different inline popup libraries in.
>>
>>59204399
>They're very good at bloating everything. They could at least have the decency to compile modules into fewer files or zipping or some shit.

You mean front end package managers like gulp right ?
>>
What should I have for applying to jobs as my github pictures?

I dont really need to have one of me IRL do I?
>>
>>59205316
gulp, npm, gem, blower, composer
>>
>>59205434
i use maven for back end project management, it downloads dependencies in a centralized folder and doesn't bloat my project folder up

i never really tried using front end project managers, this means i shouldn't bother ?
updating dependencies, running tests and minifying stuff through comand line seems nice
>>
>>59205626
Seems nice, and it would be nice if there weren't incompetent module devs that can't prepare the modules correctly.
When you pull a dependency you don't expect to pull in the whole fucking repository. Too few optimize the distribution package.
The result is what you can expect.

At least npm3 no longer makes insane abyss deep submodule folders. That's something I guess.
>>
>>59204399
>when you have to upload one hundred thousands files on FTP
Which is why you don't
Either you install the dependencies directly on the server (eg Heroku) or only upload bundles you create beforehand, either with a bundling tool (webpack, browserify, rollup, etc.) or manually with some other tool (gulp, grunt, etc.)

I will agree that it's pretty retarded to install a single package and have 75,000 files downloaded into your modules folders, though
>>
>>59193028
>>guy that's been there for months literally runs out laughing when I can't answer the definition of some acronym.
This isn't OK. Your new job is a cult full of pretentious fuckups. Just give the bare minimum of effort while you apply to other jobs.
>>
>>59204399
>Also $timeout is the magical panacea for everything.
Sounds like my experience with Swing. SwingUtilities.invokeLater sweeps all your problems under the rug. Don't worry about the smell, that's tomorrow you's problem.
>>
>>59193028
Thanks for writing this up anon. It makes us that haven't got our entry level position yet have a realistic idea of what expect.

>guy that's been there for months literally runs out laughing when I can't answer the definition of some acronym.

Fuck that guy. There's about 20 million acronyms in tech. I probably would've stared at him until he left. The elitism in tech is appalling. There's no way in any point in my life I would treat someone like that, especially someone new. I would go out of my way to never talk to that guy again. What a fucking asshole, I am triggered.

Get your experience and GTFO anon. Also I'm curious about the questions in the interview too if you don't mind.
>>
>>59202523
that's pretty constructive anon, would you mind actually helping him?
>>
>>59207450
I think the guy is past any help at that point
>>
>>59204399
You're so far off its like you dont see the point of any of this.
>>
>>59207411
I have a little more to write now that I finished day 2.

Things are getting interesting. Will post when home.
>>
Is there a good place to find some vue.js tutorials? They seem to be kind of hard to find for vue for some reason.

I like learning by following tutorials making stuff that is actually useful and this is my first framework / library (they call themselves a framework, but they're actually a library?)
>>
>>59207815
The official guide is pretty good
>>
>>59201953
document.getElementById("ActionTaken").value = [
"Need Proof of Purchase",
"Sent to Warehouse",
"2nd Request",
"3rd Request",
"Completed",
"Unable to Fulfill",
"Unknown"
].indexOf(data.ActionTaken) !== -1 ? data.ActionTaken : "Need Proof of Purchase";
>>
>>59208019
Not functional enough, throw a .reduce in there
>>
>>59207913
I guess that's what everyone is learning off of then?
>>
>>59208061
I've actually really pissed off my coworkers doing shit like this. I think it's fun
>>
Ok, so day 2 is finished.

I spent the whole day configuring PHPStorm and Jira. We have to use PHPStorm 10. The documentation they provided is WAY outdated and half the office couldn't figure out why I couldn't get a pulled branch to work.

Eventually it was fixed by using someone else's apache config and making a random ass file that declared me as a developer. I had been there for 1.5 days and was making edits to the new hire install documentation so future hires wouldn't be as fucked.

I realized the guy that laughed yesterday just has a huge ego and wants to be known as the best. I used this as an opportunity to ask him a million questions. People with egos always help because they don't want to seem stupid. He seems like an OK guy honestly. I didn't realize how weird web developers were until I got this job.

I come back from lunch and the CTO is asking if I've been given any work yet. I explain that I just finished with being able to pull a branch (everyone else had a "default program" to run bak files and turn them into databases, I didn't. I had to find an exe and a bat that does it and set it) and getting it to run and am now able to do what was give on day 1. Day 1 I was told to learn how the software works in the browser. I had to use the receptionist computer for a while before trying to get mine working. So I started learning that and he just starts slamming me with tickets.

Little tickets, but terrible ones. "Make a folder named DocumentUploads with a decent readme so we can push it to git and the other guys won't have to do it. Push it to x account and to master"

Ok, where exactly in this mess of folders does this new folder go? What exactly does this empty folder do?

Another ticket that just said "Ask John how to do a heartbeat because he's good at it". Ok.

I understand what he's doing with these types of tickets. It's so I know how to use Jira and can make very minor changes to repositories and go through the review process without...
>>
>>59208339
...messing everything up.

I wrote another long post, but it wasn't really relevant as I was just outlining how strange some people are there and this isn't my blog. I'll fuck off now.
>>
>>59208760
sounds about like my first job.. down to the simple Jira tasks
>>
>>59208339
>>59208760
As someone planning on starting working soon I appreciate it for sure. All of the stuff about getting jobs/starting them rarely have anything about what it's actually like on a day-to-day basis and what you specifically do.
>>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="demo-content">FUCK THIS SHIT</div>
</div>
<div class="col-sm-6">
<div class="demo-content">I HATE MY LIFE</div>
</div>
</div>
</div>


Why does the above always display as stacked rather than side by side?
>>
>>59208983
i had this problem and the same feeling a while ago but don't remember how I fixed but i do know your pain senpai
>>
>>59208983

There's probably padding on the div inside the col-sm-6 div. Use the inspector, you dumbo.
>>
>>59208983
http://codepen.io/anon/pen/qrZjzR
It is side-by-side
>>
>>59208983
show the definition of .demo-content
>>
File: 1488491369317.jpg (98KB, 719x720px) Image search: [Google]
1488491369317.jpg
98KB, 719x720px
>>59208983
>using bootstrap unironically
>>
File: chocolatepudding.png (16KB, 445x304px) Image search: [Google]
chocolatepudding.png
16KB, 445x304px
>>59209048
>>59209086
I haven't changed anything from the vanilla setup.
This was just meant to be a quick test to make sure it was all configured correctly, boy was I wrong.
>>
>>59209131
>rewriting the same css for every page/app/project/job/business
Have you ever managed a project before? Do you know how much it costs to ramp someone up? Do you know how much money something like bootstrap saves by being a base of CSS everyone can jump right into on a project?
>>
>>59208019

what was wrong with the switch to begin with? switches are fine....very common
>>
what is the best online IDE and why is it codepen.io?
>>
File: For_what_purpose.jpg (25KB, 323x454px) Image search: [Google]
For_what_purpose.jpg
25KB, 323x454px
>>59193028
>you literally add things by running batch files that add shit to the clients page
>>
>>59209288

>front end babby development
>>
>>59209260
redundant. Said the same thing again and again and again
>>
>>59208829
True.

Imposter syndrome kept me from looking for a job for a decade. srs. I didn't even know it was a thing until last year. I wanted to be VERY good before finding a job. It didn't matter, still no idea what the hell is going on and the PHP is such spaghetti code that my only indication of what a class does is the detailed class name. There are no comments.

1 line of code = method of a method of a method with a space exploded query that's then imploded with commas. Oh yeah, I sure know what that does.

Anyways, happy to help and hopefully I didn't discourage you. If anything, knowing that someone else had a fucked up time will make your fucked up time a little less panicky.
>>
I'm looking into .js server-side stuff and am having difficulty understanding how various components/frameworks slot together.

If I were to build a web app, would I assume that the individual components would be:
>react
>react-router
^
v
>express
>node
>db

Oddly enough, having js everywhere is quite disorientating as I can't identify (as quickly as I used to) what's server-side and what isn't
>>
>>59209454

why do you even need all that? a web app is just something that reads/displays data and you do conditions, loops, manipulation, etc on that data.

>>59204728

I'd have to agree. There are some super helpful libraries but as far as frameworks go, seems everyone is trying to compete over who's is most popular or has the coolest logo. If people actually learned raw javascript then maybe they could even write their own framework.
>>
>>59209553

It's more about learning technologies that have merit in a workplace now. Places around me hire developers that know these systems and it seems that knowledge of react/redux config is sought after.

As for that example stack. I imagine if I wanted to build a bulletin board, or chat application, that react + react-router would handle some view stuff client-side, and then express + node + db would handle fetching and serving shared information.

Also, I kind of don't know. Which is why I'm asking how other developers are handling it nowadays.
>>
File: reee.png (89KB, 1917x984px) Image search: [Google]
reee.png
89KB, 1917x984px
I just want to program man, why's CSS always gotta be such an awkward faggot.
>>
>>59209662

lol no you dont need to know those frameworks to work as a javascript developer. Thats like saying you need to know wordpress to make a website

you've been meme'd. The app I just made for a wine warehouse for them to process replacement orders is nothing but vanilla js/ajax/php. It's just a bunch of functions that do shit. Why the fuck do I some shit called ANGULARRRR
>>
>>59209731

This is why I asked here. I try reading online and everyone seems to be pushing Angular or React. Angular 2 seems like it shit the bed a little and is fading away compared to React which is growing in popularity.

But also, as I somewhat alluded to earlier, there are several jobs in my area that are seeking developers familiar with React and Express.
>>
>>59209804

what are you trying to do? youre asking about all these components in x amount of frameworks. Nobody even knows what youre trying to make
>>
>>59194522
yes, "download" bootstrap somewhere below your projects root, then link the desired bootstrap files (most likely bootstrap.min.css etc.) as a stylesheet
>>
http://mashable.com/2015/07/06/why-web-design-dead/

>There was once a time where learning the aesthetic end of frontend was incredibly lucrative.
>>
>>59210049

lel yep

if youre not full stack youre worthless
>>
>>59209695
>loads the entire bootstrap.min.css
only to be overriden by
>bootstrap.theme.min.css

Cool http requests, bro :^)
>>
File: About.png (3MB, 1440x1617px) Image search: [Google]
About.png
3MB, 1440x1617px
>>59209695
What I do nowadays is use Sketch/AdobeXD/Affinity to whip up a prototype of what I want a page to look like before actually setting out to make it. That way the CSS ends up just being problem solving.
>>
>>59209695
col-md-6 only applies to resolutions smaller than your screen. make your screen smaller and see it side-by-side. therefore put a col-lg-6 style as well

class="col-md-6 col-lg-6"


or just avoid bootstrap because its bloated and fat
>>
>>59210166

if youre a feminin, tranny, or muslim you can get a high paying job doing just html/css i heard
>>
>>59210326
That's partially true, md is for medium but will apply to larger screens unless overridden. Making the screen smaller than medium will make it go to 100% width. Overall, he doesn't need to change his classes.
>>
>>59210049
I've read it and all I can say is its just an onpinionated clickbait article. The author is one hell of a negative thinker
>>
>>59210486

dont confuse web design with graphic design

the term "web design" or job title "web designer" isnt becoming obsolete, there is truth to that
>>
>>59210877

i mean is* becoming obsolete.

at least for job titles. I almost always see "full stack" or "developer" in todays job postings
>>
>>59210349
I wish.
>>
>>59210049
No there wasn't. Well, the fuckers made 30k in the 90s just like they do now but money was worth a little more.
>>
File: 1258222839733.jpg (40KB, 439x294px) Image search: [Google]
1258222839733.jpg
40KB, 439x294px
>>59211319
It sucks, because the design aspect motivates me way more than development, and my code has always been hogwash dogshit, but I really want to start a family and support my relatives one day, and I can't do that on a designer salary unless I became godlike at it.

(So I'll spend the rest of my 20s being mediocre at both.)
>>
File: Lol.png (102KB, 200x298px) Image search: [Google]
Lol.png
102KB, 200x298px
>he doesn't use asynchronous technologies
>>
>>59211384

dude thats your fault for not keeping up with modern development. Things change m8....
>>
>>59211385
Async kills thr mobile experience.

>go to click on a link
>ad loads
>click on ad instead.

Fuck you, reddit.
>>
>>59211489

wtf are you talking about
>>
>>59209695
Designers dont think css be like it is but it do.
>>
>>59211489

thats not an async problem, thats retarded development........
>>
>>59203192
I'm not
>59193707
but you should check out Egghead and his video series on it. It's pretty decent.
>>
File: NotesOn-Feb11.jpg (226KB, 728x485px) Image search: [Google]
NotesOn-Feb11.jpg
226KB, 728x485px
Anyone got a decent bootstrap entity for fading through a set of images. Should be simple and sleek. Been scouting the net for something decent -- nothing!
>>
Can anyone reccomend a decent CSS tutorial?
>>
Anyone use Packt series books or videos? Decent books?
>>
File: 20170303_000433.HighlyCensored.jpg (3MB, 3024x4032px) Image search: [Google]
20170303_000433.HighlyCensored.jpg
3MB, 3024x4032px
>>59192826
Alright, Opinion time.

If you find a vulnerability in someone elses' website, and use knowledge of this vulnerability to write 10 lines of javascript to download records you shouldn't be able to access, would you call this "hacking"?

I almost got fired, and now have to go to get some document notarized, because corporate thinks I was hacking them. I was trying to do the right thing. I found a vulnerability. I reported it. They flipped out because it involved me attaining access to other peoples' financial records, and now they're getting me to sign affidavits and shit.

It really was a lack of security on their part. The vulnerability could literally be triggered with just 10 lines of js.
(basically an XHR request to one script passing a certain parameter, then a popup window to a different page)

Pic Related.
(Please don't dox me guys, I'm in enough trouble already)
(and I make shit wage and have lots of bills, so I really cant afford to be sued or thrown in jail)
>>
>>59214510
thats nuts
>>
any podcast you guys follow?
>>
>>59214510
This is really weird. Usually stories like this involve clueless management being scared shitless and firing people right away

Have you considered the possibility that you might get fired after signing that?
>>
>>59214524
I thought so too. Especially because I was so forthcoming when I reported it.

I didn't just report the vulnerability with some vague comment. No, i went into great detail. I told them EXACTLY what the vulnerability was. Pasted the exact code I used, with screenshots of how to reproduce the behavior. I told them how to fix it. I explained to them the difference between security via authentication and security via authorization.

I literally explained the whole thing in detail, with instructions on how to fix it.

Instead of getting a thanks, or a reward or something, they really wanted to fire me. If not for some friends I have, they would have fired me.

Lesson Learned: The corporate world takes this shit seriously. Don't audit their security. They'd rather show up on the news with a billion dollar lawsuit for data-leaks, than have a loyal employee report the vulnerability (exposing only 4 records in the process).

I could have wrapped that shit in a loop and exposed EVERY SINGLE RECORD. (probably hundreds of thousands)

But I only pulled 4.
1 as a test. 1 more to confirm.
1 more to confirm a couple days later.
and 1 more record when I was showing the vulnerability to the HR representative.

They don't want my help though. So I definitely learned my lesson: don't touch their shit.
>>
>>59214598
Its more like
>"We really wanted to fire you. But your friend convinced us that you really didn't mean any harm. We'll let you continue to work for us, so long as you agree to sign this document."

>firing people right away
That's what my friend said. She said it was the very first discussion they had in the very first conference call. Everyone at corporate wanted to fire me immediately. She managed to talk them out of it.
>>
>>59214510
Don't sign it. You signing that will probably be used against you in a later date.
>>
>>59214510
Don't be surprised if they fire you after you sign that.

Did you have no work to do so just started vulnerability testing?
>>
>>59214510
Normally they're liable for basically any damages done in your role at your job. They're just shifting the liability back to you if you do something with those records. It's nbd, I'd sign it. They're afraid of being sued for what you did
>>
File: kys.png (69KB, 1046x966px) Image search: [Google]
kys.png
69KB, 1046x966px
Why has nobody used this? So much untapped potential.
>kys.today
>kys.solutions
>kys.world
>>
>>59216599
found some more
>kys.fyi
>kys.tech
>kys.lgbt
>>
>>59216599
>kys.tips
>kys.auction
>kys.best
>kys.gg
I'm dying
>>
File: 1487279543990.jpg (270KB, 750x728px) Image search: [Google]
1487279543990.jpg
270KB, 750x728px
>>59216710
>>
>>59200163
3 years professional experience as lead Dev. Of Healthcare company.

One man show but I make it seem like a 4 man team. I just work hard.

I read 15 Javascript books on mean, angular, react, design, ajax, promises etc before I started freelancing.

And I did 8 projects before this one, started at 50$ to 100, 300 500 2k etc. All really good feedback ahead of schedule.
>>
>>59200485
Also got my regular income on top of that lol

>>59203367
Be really really good at what you do
>>
What do i need to do to get in to web dev?
>>
>>59217291
Depends on what you wanna do with it. What kind of job do you want? Safe with low pay or high risk high reward?
>>
>>59201953
case X:
case Y:
case Z:
F()
break;

F gets called on X, Y and Z.
>>
How's /wdg/'s experience with writing app's in Swift?

Just landed a job for that without having any prior experience with the programming language. Have a three month bedding in period, pretty comfy with es6(node,react,etc),php(laravel) and nailed the interview but they're lacking in Swift developers. Not really sure what to expect but pretty excited.
>>
>>59217405
lacking in Swift developers so hired me for that*
>>
>>59208019
That doesn't work, I tried it.
>>
>>59217358
Wanna get in to the back end of it like setting up databases for websites and shit, safe is cool
>>
>>59209260

A lot more prone to errors.

Also you have to read throught the whole switch statment until you understand they all evaluate to the same expression. Not very readable.

>3/10 would refactor
>>
>>59217621
Okay, well learning SQL would be a good idea to start. Also learning how to normalize data (how to structure tables in your DB (it's not intuitive)). SQL DBs are the most common, but you can also learn about noSQL DBs.

If you get tired of DBs and you want to start seeing your data in your DB on a webpage, you can choose a back-end language that will render a front-end. Safe options: ASP.NET (modern but highly sought after), PHP is common, Python and Java.

Python and Java are the most versatile to know because they also apply to software (not just web) development. That's why they show up in twice the job postings. But if you're insistent on web development, ASP.NET is the safe bet for a back-end language

Here are some stats on how big each skill is. Like I said, Python and Java apply to both software and web dev so they apply to twice the jobs.
https://www.indeed.com/jobtrends/q-python-q-asp.net-q-java-q-php.html
>>
>>59204728

>using frameworks

-everything at it's place, tidy and neat
-sensible defaults
-built-in protection from some common attack vectors
-immediately understand legacy projects
-learn one MVC framework, know them all
-learn one single page app framework, know them all


>not using frameworks

-wierd spaghetti code or someone else's "logic" how to structure code
-no defaults, reinvent the wheel because reasons
-no built-in protection, your coworker fogot to sanitize one input in his thousands of LOC and now your site is down
-see legacy projects: might as well built everything from the scratch
-no common ground, either write an huge .md file with 30 pages or be one of those "my code is self documenting.. :^)" mofo's
>>
>>59217813
this
>>
File: perry.jpg (66KB, 652x365px) Image search: [Google]
perry.jpg
66KB, 652x365px
Please recommend me some good tutorial resources.

Interested in doing stuff w/ databases.

Did cwbuecheler.com/web/tutorials/2013/node-express-mongo/
which I liked, but I want more.

A full blog system or something like that would be interesting.
>>
Is it even possible to make any money just with frontend stuff or its just shit for people to stupid to learn backend?
>>
>>59217983

Both.
>>
>>59214510
whoever owns the website you found a vulnerability on should be sucking your dick right now
next time tho consider diclosing vulnerabilities through bug bounty programs or if they don't have any and you don't expect to get any moneyz from said disclosure, do so anonymously.
There are online services for this
https://zerodisclo.com/footer/02_howitworks/
>>
>>59217813

custom applications with real programming > your enterprise business template bullshit
>>
>>59214510

Dude, that's life.
People hate when you tell them they are stupid.

Next time grab all files you can and blackmail those assholes.

On second thought: next time post the vulnerability somewhere anonymously and watch them burn. They deserve it.
>>
>>59218074
he could even have sold the data for fuck's sake
they should be thankful and give him a raise or something
>>
>>59214510

shouldnt have said anything to them.

what mama dont know wont hurt her.
>>
https://www.youtube.com/watch?v=IWccrYBqu8s&list=PLxfArCURpD2CtCDrjdl1dd4XDm9XzVh1e
Is this any help, or am I wasting my time?
>>
>>59218129

its a programming video....

what are you asking? if its a waste of time to learn or what? javascript specific? what is your question
>>
>>59218143
oh, I was just wondering if it would be educational and if it would make me into a full stack web developer by the end. That's what the guy said in the video, but I watched the first video and it didn't seem to be any practical application that I could work on, mostly just lectures.
>>
>>59214510

Switch company ASAP and if they fire you, don't worry.

Also tell your next company about that incident. Tell them you immediately reported the security hole and how they behaved.

You are too good for them, technically as well as morally.


One more thing:
If you current company tries to lecture you or fire you, take them by surprise: Ask them if they are interested in hiring you as network security guy, since obviously they use very insecure stuff. This is very subtle and they will shit their pants in the future. Maybe they will even agree.
>>
>>59217983
I do front-end exclusively.. I make money
>>
>>59218166

if you want to be full stack which you should, then yea watch vids on full stack shit. Read books. Look at examples. Etc.
>>
>>59218027

>muh "real programming" code artisan bullshit
>>
>>59218166
well if you don't know how to program some theory won't do you any harm
there might be practical examples in further lectures, otherwise the web is full of tutorials so it should be easy for you to put what you learnt into practice
>>
>>59218027
>muh snow flake program
try managing a project full of shite devs. Frameworks are damage control.
>>
>>59218350

Reminds me when i was forced to be a .net babby for some shit company

no thanks, jeff
>>
>>59218185
What kind of stuff do you do?
>>
>>59218497
As a consultant pimped out to possibly the world's largest hardware manufacturer, I make front ends that interface between the user and their hardware. I work with AngularJS, I'm on a team of 5 total, the back end is maintained by the client.

>>59218479
What's wrong with .NET?
>>
>>59216466
I did on on a Sunday. My one day off. (I work Monday through Saturday)

I was trying to automate something with the paystub interface. I was successful, but while I was doing it, I noticed some things about the development style of the interface. I had a hunch, tried it, and was correct in my hunch about the existence of a certain vulnerability.

Sorry, but I don't want to be too specific. Kind of worried now that if I post too much info, someone else will find it and get me in more trouble. I don't know if they have fixed it yet or not. But I'm not testing it to find out, after all the trouble i've been in.
>>
>>59218722

>What's wrong with .NET?

everything.
>>
>>59194442
data.headers.get("content-type")

log this, does it say application/json?
>>
>>59218854
like what
>>
whats the best way to pass a variable to my back end with javascript? on button click i want to take the value of an element and send it to my back end
>>
>>59218994
I freaking hate it when 4chan won't let me post because it thinks my shit is spam. Why haven't they fixed this? Its freaking bullshit.

Anyway, now that I've ranted a bit, maybe it will let my post through this time.

Something like this should work:

http://pastebin.com/g4v1Kn49

Using pastebin link because this shit just wont let me post at all.
>>
>>59218994
ajax if you don't want to reload the page, otherwise just make a POST request with a simple <form>
>>
>>59217813
>-immediately understand legacy projects
t. high-school student
>>
>>59218722
>What's wrong with .NET?
proprietary
Core CLR is clunky and bugged

better off with JVM if you have RAM desu
>>
File: jimsSock.jpg (97KB, 960x1280px) Image search: [Google]
jimsSock.jpg
97KB, 960x1280px
i'm just getting started with javascript, php and mysql. i have no prior experience.

when i need to view/test something i've made i go through this process:

code in sublime
use filezilla to ftp my working directory into my virtual lamp stack
use browser to check

is this a pretty standard way of developing stuff, or am i making it difficult on myself?

i'm using ubuntu, any software recommendations also appreciated.
>>
>>59219556
If you have a virtual machine with the webserver just setup a shared folder and save yourself the trouble.

Otherwise you can just install nginx locally or even run the built-in PHP server.
>>
Yo, I'm back for the first time in a long time! I just pushed a fairly huge ImageHex update, and would like some feedback on it. That site is at:

https://www.imagehex.com/


Specifically, I'm questioning two things:

1. What can I replace the horrifically large green button with on the splash page?
2. Does the new design of the order form (pictured here) look nice?
>>
>>59219259
>>59219405

yeah im using AJAX. why do i need to call preventDefault()?
>>
>>59219663
to prevent the default actions from happening, like a link changing sites or a button submitting when you handled the click event yourself already.
>>
>>59219692

whats better? to have an onclick function that does the ajax call or to do an on submit event?
>>
>>59219957
submit in a form, since you can submit it by pressing enter in an input field.
>>
>>59219973

do i need a form to POST with ajax? why cant i just post some variables to my back and run queries on it, yeah i want some data in the form but do i need to mess with the form when i can still get the values of those inputs?
>>
>>59220014
no, you don't.
it's just so you can group up some input elements and have them trigger the submit event on enter instead of having to press a button with a mouse.
>>
>>59220049

yeah it seems more useful to do it through a submit event, cool thanks.
>>
>>59219556

As >>59219593 says

Installing a LAMP ready Virtualbox instance and having your dev environment in public folder will get you pretty close to a typical dev environment, especially if you can Putty into it.

I'd recommend getting an account on github and learning git at the same time. Every time you want to do a feature, create a branch, when it's finished, merge it into master. You're unlikely to get merge conflicts given you're the only one working on it but it'll teach you the basics of git at least and it's something to add to your CV.
>>
>>59220014

You don't need to put elements in a form to do Ajax but you really, really should do.

Think of the poor sap who has to work on your code and has to decide which of the elements on the page belong to which function. If you bundle things in a form that person can safely assume that everything in that form it fine to use for submitting data.
>>
File: dhjdyj5.jpg (44KB, 451x392px) Image search: [Google]
dhjdyj5.jpg
44KB, 451x392px
>he doesn't do all his validation on the server side
>>
>>59220377

when i send the data to my back end and check to see for certain things how do i let ajax to let the user know something failed?
>>
>>59220498

Depends on if you're using jQuery or something else.

Can't remember the exact syntax but you basically do something like

success(function()
{
alert("yay I succeeded");
}),
faillure(function()
{
alert("I'm shit and failed");
}
),

as part of the ajax call.
There are plenty of articles that'll give tell you how. Too many languages and frameworks for me to remember it exactly.
>>
>>59220435
Why would you do that? Yes you validate 100% of criteria on the server, but check it before posting it too so you don't get a full page refresh before the client finds out they missed something
>>
>>59220498
Check things as thouroughly on the client as you can before sending it, then send it to the back end, validate it again. If you need to return an error, look up how the back-end language you're using does errors and have your JS handle it once it gets back
>>
>>59220912

people can bypass client side validation really easily?
>>
>>59221007
That's not who you're worried about when you're doing client side validation, that's what server side is for. Client side is great for performance
>>
>>59221135

well yeah you want both at the end of the day, but security wise....server side is everything
>>
>>59220377

yeah but can't you just do something like

$('#updateRecord').click(function (event) {
event.preventDefault();
$.ajax({
url: "updateRecord.php",
method: "POST",
data: $("#formData").serialize(),
dataType: "text",
success: function () {
alert("success ayy lmao");
}
});
});


doesn't the
data: $("#formData").serialize(),
part store only the form data (by id) you choose?
>>
Is there any sane method to test my site in multiple browsers? Best I could find is browserstack and it still shit.
>>
>>59221228

what about when it comes to manipulating data or actually running regex stuff on it? should that be done through client side javascript or on the server side?
>>
>>59221843
example?
>>
>>59221843
Backend should assume every request made to it is made by a hacker, validate. everything.

Frontend validation is only to make the user-experience better.
>>
>>59221675
selenium is supposed to do that
>>
>>59221875

nvm i think i know the difference now from >>59221879

>client side validation: more about UI changes
>server side validation: actually about not running queries with harmless or useless data
>>
File: 6.jpg (697KB, 1507x1920px) Image search: [Google]
6.jpg
697KB, 1507x1920px
I've been tooling with nodejs and express.


Can anyone provide me some guides for GETTING INTO DATABASES.

I've been doing stuff w/ MONGODB, but that's all. It took users, it added users.

Would like to get a bit more srs.
>>
File: 1423481816_blnd6.jpg (198KB, 1272x720px) Image search: [Google]
1423481816_blnd6.jpg
198KB, 1272x720px
>>59216998

Do you have a college degree? What kind of development were you doing at the healthcare company?

Curious because I am self teaching full stack and am interested in UI/UX stuff, also my gf is a comp sci major and possibly looking to work at a healthcare company after school.
>>
>>59222983

dude why not just use php, python, SQL? not as edgy or cutting edge but more stable, more docs, been around for longer, and easy set up

dont fall for the js back end meme.
>>
>>59222983
The real world uses relational databases, you should learn SQL. Then just use one of the billion adapters/ORMs available on npm.
>>
im changing values on my input elements through my back end and AJAX, and im able to grab and display them just fine, however they dont show up when i open inspection tools in Chrome. I can see other stuff change after each request but the value doesnt. It just stays blank. But am i actually assigning values just fine with document.getElementById("abc").value = data.abc;

anyone know why?
>>
Can some idea guy here share his million dollar idea so I can bring it to life and get some mad shekels?
>>
>>59223560
Make a site where people can sign up, have their own profile page, upload their photos and form social networks with their friends and other people
Call it Visagealbum
>>
>>59223560

same here breh, feel like i could make anything, just need a gr8 idea
>>
>>59223404
you are changing the value of the element, not the attribute.
the value attributes don't update like this.
>>
>>59223560
mobile apps/games recommendation site
>>
>>59223664

i see
>>
>>59223607

Oy vey, truly the best idea of the century!

>>59223703

If you're not being sarcastic, that's literally the point of jewgle market and the app store. Impossible to compete with them.
>>
>>59223760
Eh, I feel like they suck balls. I want to connect my phone to a site, allow it to gather info about my games and recommend me some hidden gems
>>
>>59223173
No college degree, started programming at 10 though using VB6 with an http wrapper to bot neopets.

Java backend servers communicating to OHIP via SOAP messaging and then porting the data to a frontend.
>>
>>59208983
>>59209167
>>59209695
I 'fixed' it by replacing my local bootstrap link with a remote one.
My local one could center text so it was set up fine but for some reason it didn't give a fuck about columns.
>>
what exactly does .serialize() do? Looks like its just for POST requests and it enables your back end to grab value of form data by name?
>>
>>59197419
virtualmin

vestacp is an inferior but still acceptable panel

don't install a panel unless you really need it

it's always a burden and a waste (in resources, in house-keeping, in hardening)
>>
>>59203926
>£300-£350 a day is the going rate for a
crack dealer
>>59193706
come on, nobody believes that bullshit but retards and underage faggots
>>
File: images.jpg (6KB, 300x168px) Image search: [Google]
images.jpg
6KB, 300x168px
>>59193028
>guy that's been there for months literally runs out laughing when I can't answer the definition of some acronym

Beat him in the parking lot, rape him in his car. Then go to his house and make him watch you beat and rape his gf while you make fun of his Obama refrigerator magnets.
>>
File: 1488157846436.png (549KB, 1023x574px) Image search: [Google]
1488157846436.png
549KB, 1023x574px
>>59223560
Make a app/site that allows users to upload pictures of their ass holes to the internet and have others rate it

ratemyasshole.com
>>
>work giving me simple bug tickets because I'm new
>Open ticket and work very slowly because I don't know the code yet
>client getting billed for a million hours for what's basically table edit.

I would hate to be a client. That has to hurt. "Hey can you delete these extra rows and see why they are there in the first place?"

Yeah, gimme a few weeks.


Honestly the table with that info doesn't even list the appropriate info, it has an id that goes to another table that has the wrong name. I figured out what to delete, but...

Ok, so the client has a live site that is different than what I can get from git. Looks way different, so I have no way of testing without pushing to their sandbox. I can't even test a bugfix without sending for review to push to sandbox.

Makes no sense. They've been charge for 5 and a half hours of work and I've literally done nothing but generate a patch, but haven't even started on the bugfix.
>>
>postgresql doesnt allow limits on a delete query.

Why is this so shitty? Who forgot to include that?
>>
>>59225515

noob here, but why would you need limits on a delete query?
>>
>>59225616
Added safety.
>>
>>59225747

count the number of rows returned. If 1, run quert, if not, print "ayy lmao"
>>
>>59225444
Sounds like you're on the level of my co worker that has been there 5 years. Congrats. Your future is bright.
>>
File: dafuk.jpg (15KB, 299x293px) Image search: [Google]
dafuk.jpg
15KB, 299x293px
>2017
>using back end variables to output data to the page
>>
>>59225816
I've been there 3 days.

It just hurts knowing this client is going to get billed for 20 hours for something I could have done in an hour had I known the codebase.
>>
>>59225885
When I started in a web developer company the way we fixed that was by logging my time as I had actually spent it then bill the client the time it would have taken a more senior dev.
>>
>>59225885

ive been in that position. Really strict company who the boss called a "shop". It was basically "get here 8:30am on the spot not a minute later and we'll give you projects. Don't take too long. Log your hours as specific as possible." Most of it was working with really old versions of asp.net and php.

it was hell m8. So glad i got outta there
>>
>>59226007

fek, i became a dev to dodge that type of work environment but it does happen.

the key is to git gud enough to where you can consult and do whatever the fuck you wanna do.
>>
>>59226044
Or just join a good team in a decent company.

>>59226007
That's annoying. I'm working on a legacy asp.net application now and it is such a pile of dog shit. No wonder why we (white people) hired pajet and his cousins for $2hr for a decade.
>>
>>59226076

Americans hire foreigners usually because its cheaper, not because whatever the job entails is a shit show or that it's old technology. Companies haven't been making as much money in the past few decades compared to the 50s for example. They simply cant afford all these full time Americans. I don't blame them. They only make whats left over. I blame the government.
>>
I am so overwhelmed by webdev, holy shit. Literally gazillion tools.
>>
File: 1337563318216s.jpg (15KB, 241x228px) Image search: [Google]
1337563318216s.jpg
15KB, 241x228px
>lie on resume
>get invited to job interview

Guys help please

It's a wordpress shop that curns out WP sites for local businesses.

Anyone got experience from places like that?
What do you think they'll focus on in the interview?
>>
>>59226793

youre an idiot
>>
File: 1475433912152.png (129KB, 314x278px) Image search: [Google]
1475433912152.png
129KB, 314x278px
Hey so it's my first time learning the MEAN stack and I've been using this tutorial.
https://devcenter.heroku.com/articles/mean-apps-restful-api
The problem I'm having is that it doesn't display the homepage which is kind of obvious since the server.js doesn't have the GET method for it. My question is that am I wrong for assuming that and there is some Angular functionality that I don't know about? I'm just kind of annoyed they would write a tutorial and give me a bunch of html form input and NOT even have a GET method for it.
>>
>>59226937

do you know how to program?
>>
>>59227243
I'm on /g/.
>>
>>59226937
>https://devcenter.heroku.com/articles/mean-apps-restful-api
dood i'm not even a nodebab and even i see that they link the angular forms through annotations

@Component({
selector: 'contact-details',
templateUrl: './contact-details.component.html',

you probably fucked up

node looks degenerate btw
>>
>>59227288

i wouldnt recommend diving right into a MEAN stack then. Do you even know what each component does?
>>
>>59227357
Nope. Only did some small node and express stuff. First time using Angular and Mongo.
>>
>>59227395

and why cant you use a relational database...?
>>
pls answer

There are so many tutorial websites and resources, what would you say are the best ones for a good understanding of HTML, CSS, Javascript?
>>
>>59227684

stack overlfow, w3schools, codecademy

its not hard man
>>
>>59227718
If he can't even read the OP how is he supposed to handle the Google searchfield?
>>
Has anyone done the Tour of Heroes tutorial for Angular 2?
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';

I already have the memory web api module but it still tells me that it can't find it. Did anyone else have this problem?
>>
>get a group of 3-5 programmers
>make a bunch of functions in javascript
>come up with meme name for it
>armageddon.js
>create simple flat logo
>shill yourself

who wants to actually do this
>>
>>59227829
what would be the point ?
>>
is calling queries -> update data - > view data automatically in real time the future?
>>
what is the exact term for "transferring" data from client to server side? example: ajax call that grabs form data and adds it to a query via php
>>
>>59229391
request & response
>>
>>59227395
I prefer mysql express javascript/jquery/bootstrap/dom manipulation
>>
how do you set a limit on post requests?
>>
What's the best and ideal way for doing all this INSTANTLY; at one click:

compile css, bundle js, write to log, etc

I should be looking for something like "Grunt" for this? Webpack?
>>
>>59230181
webpack can do all things by grunt plus even more features. webpack the best
>>
I want to make a fast forum/discussion board software for fun, don't want to deal with any frameworks or other BS. Anyone have a recommendations? Was thinking of using fastcgi, and then running the forum as a daemon with nginx as the http frontend proxy.

Don't recommend if you're recommending a language specific framework. I'm looking to build something with no heavy client side stuff (no webfonts, no large css or js), and minimal server resources.

Imagine like discourse, but it doesn't require a 2gb ram server to run a forum, and doesn't run slow as hell on less powerful client machines too.
>>
>>59230272

use noSQL
>>
File: wiz.gif (32KB, 292x290px) Image search: [Google]
wiz.gif
32KB, 292x290px
>>59223178
>>59223183
Interested in more of this. Any good guides on how to start w/ SQL, databases etc? I will probably keep on node js for now, maybe later some Python. Some project, any resource would be greatly appreciated. Help me out web Wizards
>>
>>59230441
manga guide to databases, great for a weeb like u
>>
>>59227829
I'm game

Here's a start

  // Function returns the number 2
function returnTwo(){
return (!!"two").toString().length / 2
}
>>
>>59230682

i dont get it

whats with the !!
>>
>>59230717
like a double boolean cast

!"string" would cast to false, because a string is considered truthy and ! reverses the boolean to false
!!"string" is like doing !false so turning it to true
>>
>>59230717
I don't know Javascript but I think whats happening is the first ! is turning "two" into a bool thats literally "false", the second turns it into "true" which becomes a string with a length of 4 characters, divide that length by 2 and you get 2.

Kinda clever, but I don't know if I'm right. I don't know if bools can even convert to strings
>>
>>59230682
let me simplify that

  // Function returns the number 2
function returnTwo(){
return Math.floor((!"two").toString().length / 2)
}
>>
>>59230782
it needs some sort of conditional statement, like something alone the lines of if ( ! internetexploer2) or something, you know, for compatibility purposes
>>
>>59230800
>it needs some sort of conditional statement, like something alone the lines of if ( ! internetexploer2) or something, you know, for compatibility purposes
fixed
// Function returns the number 2
function returnTwo(){
if(window.navigator.userAgent.match(/Chrome/)){
return Math.ceil(((!"two").toString().length -1) / 2)
}
return Math.floor((!"two").toString().length / 2)
}
>>
>>59230782

  // Function returns the number 2
function returnTwo(two){
return (Math.floor((!"two").toString().length) % 2) + Function.length;
}
>>
Just for good measure
// Function returns the number 2
function returnTwo(){
if(window.navigator.userAgent.match(/Chrome/)){
return Math.ceil(((!"two").toString().length -1) / 2)
}
return Math.floor((!"two").toString().length / 2)
return 2
}
>>
i'm taking it to the next logical step
function returnNumber(n){
var result = 0;
for ( var i = 0 ; i < n ; i++ ){
result += returnTwo();
}
return result / 2;
}
>>
>>59230916
WOW

I'm gonna make us a landing page so we can get 2million funding from yCombinator for disrupting global internet technologies

What's the frameworks name?
>>
>>59230907
good thinking, also added fallback if someone tries to run on non-browser enverionments

// Function returns the number 2
function returnTwo(){
if(!window){
return console.log('you are not using a browser, can\'t calculate the nubmer 2');
}
if(window.navigator.userAgent.match(/Chrome/)){
return Math.ceil(((!"two").toString().length -1) / 2)
}
return Math.floor((!"two").toString().length / 2)
return 2
}
>>
>>59230950
wait we still haven't figured out our project's code of conduct yet
>>
>>59230963
>wait we still haven't figured out our project's code of conduct yet
!!!! NO NAZIS !!!!

also, must be gender neutral
>>
>>59230963
also, might want to get some inspiratin here

https://github.com/letsgetrandy/DICSS
>>
>>59230963
No girls allowed
Must wear thigh high socks
>>
>>59226000
Idk what the billing person does. Hopefully they do the right thing.


This place is pretty cool. CEO says to send him an amazon link of the keyboard I want. Same for mouse or whatever I need. Already sitting in a steelcase leap, not half as comfy as my aeron at home but still. I'm going to see if I can get a third monitor for center vertical. Dick and balls setup.
>>
>>59226007
I enjoy it so far. We log our hours as best we can but I can make my own schedule.

I do 8-5 and most devs do 10-7 so everyone looks at me strange when I leave early.

I dont know if they expect me to finish my tickets before I go or not, but when the bug is "cron is duplicating this 1 companies records or something. Can you delete those dupes and fix it?" When I dont even knkw how everything works yet? Yeah expect that to take a week.

Especially when the lead wont clarify things.
>>
>>59226793
Lie how?
>>
File: infinity-js-01.png (160KB, 6308x3725px) Image search: [Google]
infinity-js-01.png
160KB, 6308x3725px
Ok so I made a logo

I've called the framework, InfinityJS, where the possibilities of your code are endless.
>>
>>59227829
I'm down. What does it do?

If we want to make something useful then we could make a sound effect frameworkesque libraryish thing since Titanium/Cordova apps are becoming more viable. Button clicks, bloops and stuff like that. EZ.
>>
>>59231174
>what does it do
Anon, you're not dreaming bigly enough.

>>59230956
>>59230916
>>59231134
>>
Hey guys I'm new in this general, and also new to web development, not new to programming for the curious.

Feeling kind of lonely making this content editor page for a web page, what are you guys doing
>>
>>59231272
Drinking and watching people play video games.


I'm working on a trivia page for OBS that streamers can set questions to and chatters can answer. I am integrating with revlobots currency system.
>>
>>59231272
I hate linkedin so much that I'm considering building a competitor
>>
>>59231272
gathering motivation to make tests for my autistic personal time tracking project
i like starting new projects but have a hard time actually improving on them

>>59231437
what do you hate about linkedin, except that it's an obvious botnet ?
>>
>>59231437
The technology for linkedin isn't the value, you could make a feature for feature clone and it would fail entirely, once there is an established network for something it is very hard to displace it.

Why don't you try a more realistic project like setting up your own version of youtube.
>>
>>59231485
guise lets make a facebook competitor and get in on that sweet internet moneyz
>>
>>59230998
this desu

features should include:
fizzbuzz function
odd or even function
implement the new averaging system
>>
>>59231450
I hate all the dark ux patterns, the inbox spam, the shitty design and the focus on the news feed, the list could go on.

>>59231485
I'm thinking more of something that is similar but slightly different. Not 100% feature parity at all. A switch to say whether recruiters can message you or not for a start. Paired down, less features. Perhaps focused on the technology sector, so the CV page can be designed around showing off digital work / programming projects etc. If I make it more niche I can differentiate it more.
>>
>>59231437
I've considered it too but there are better projects currently.
>>
>>59231485
>feature for feature clone.

The point is to improve on an idea. Like twitter could be better if x.
>>
>>59231566
twitter could be better if "no censoring of free speech"

seriously, twitter is so fucking flawed, why is there no competition?
>>
>>59231577
Because there is no easy way to displace an existing social product, normies don't care about censorship, and twitter can't make money even with its dominant position.
>>
How would you map a collection of global settings (setting = key/value pair, key being a string and value being possibly any serializable object) to a relational database?
With nosql it's fairly simple, with sql I can only think of a row-based solution (table with N rows and 2 column, key and value, value is always saved in string form) and a column-based solution (table with 1 row and N columns, a column for every settings you want to persist) and I don't like either of them
>>
>>59231846
key, foreign key to value object might be better
>>
File: sigh.jpg (8KB, 229x220px) Image search: [Google]
sigh.jpg
8KB, 229x220px
>tfw it's quicker to position elements on the screen in a native program where you only have the window dimensions than dealing with css and html
>>
Can someone post some well designed/written html/css webpages?
I am trying to learn html/css and could use some deference code.
>>
>>59233637
*reference
>>
>>59231077
Debug through the cron task don't be lazy
>>
>>59232921
CSS's positioning was fucked up from the get go, then it suffered from 15 years of terrible decisions regarding how positioning should be fixed
Flexboxes are a somewhat-sane way of handling positioning, but despite being introduced over 6 years ago, support for them is still somewhat lacking (especially on mobile browsers)
Thread posts: 324
Thread images: 35


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