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

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

Thread replies: 251
Thread images: 30
File: wdg.png (868 KB, 822x552) Image search: [Google]
wdg.png
868 KB, 822x552
OLD THREAD >>53983400

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

>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/
http://www.freecodecamp.com/
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.wikipedia.org/wiki/Comparison_of_web_application_frameworks

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

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

> How to get started
http://www.youtube.com/watch?v=pB0WvcxTbCA
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>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
>>
Should I learn KoaJS or something else?
>>
>>54030945
express or nothing
>>
What's the best way to ban all Dimitri's, gooks, pajeets and obongo's from your website?

I'm thinking of range banning Asia and Africa. But I'm not sure what road to take.
>>
>>54031160
Why would you do that?
>>
>>54031170
I'm running a content driven website. They dont make me money, yet they are a security and copyright risk. So it's the logical thing to do.
>>
>>54031200
Because they don't run comment bots from the US or Europe? They place were most $5 VPS datacenters are located?
>>
File: 1443593684045.jpg (56 KB, 577x559) Image search: [Google]
1443593684045.jpg
56 KB, 577x559
>>54031160
The back-end dev team at my work banned all of asia. Seemed to work for them.

I'm also sick and tired of coming to /wdg/ and seeing you fucks joke about being in a paid internship and how fucking, "comfy," it is.

I get paid 12 an hour, work 40 hour work weeks AND I can't even pay rent/student loans without mommys help.

What's more is that I learned that the company I'm working for is no longer honoring the, "Intern for us at least one semester out of school and you have a job," code it used to and after 2 months, unless I find something else, I will be unemployed.

I know Ruby really well, JS, HTML/CSS, bootstrap and jQ okay and I barely know enough node to use gulp.

Should I learn Rails to prevent myself from committing sudoku or should I instead just focus on JS, jQ HTML/CSS and hope that no one grills me on AJAX shit?
>>
>>54031217
I highly doubt they look for targets through a proxy. So it should deter most of them.
>>
File: ctfu.jpg (33 KB, 590x394) Image search: [Google]
ctfu.jpg
33 KB, 590x394
>>54031224
fucking wagecucks
quit your job and start freelancing (americans / east europeans get priority and get paid well) and scamming like i do on the side, you'll thank me for it
>>
File: 1441135912361.jpg (44 KB, 374x363) Image search: [Google]
1441135912361.jpg
44 KB, 374x363
>>54031274
>the le arcanine maymay

How the fuck can I freelance if I barely know enough to land me a Jr. entry-level Front-End/UI/UX position at a company that is only hiring me because I don't reek of curry?

To be fair I know a bit of Rails but isn't it a meem? All the Rails positions I've applied to told me nicely that I don't even have enough experience to get not enough experience.
>>
>>54031330
Where do you live that entry-level rails jobs demand experience?
>>
>>54031330
when I started freelancing I had installing a PHPBB3 forum when I was 14 and install Ubuntu / debian without the hand holder installer on my belt. When you see the shit they ask you to do you'll wonder how retarded they must be to not be able to do it themselves.I earned 700$ as the no programming language knowing little faggot I was then (17 year old)
>>
>>54031469
Well, people simply dont have the time to do it themselves. Especially if the business is filled with overpaid professionals who make hundreds an hour.

Plus most people can barely handle installing office.
>>
File: 1458259636051.jpg (72 KB, 709x462) Image search: [Google]
1458259636051.jpg
72 KB, 709x462
>>54031523
>Plus most people can barely handle installing office.
This isn't a meme.

>>54031392
There's no such thing as an entry level Rails job you fuck that's my point.

>>54031469
I'm a fat socially inept neckbeard without a facething or instasomething. I have maybe 2 friends after graduating college.

I would be horrendous at marketing myself without a proper background and portfolio.

My github currently has a repository for a site I half-copied form some code tutorial. It uses jQuery and bootstrap to let the user rate doggos and press a button that says, "sleep tight, pupper"

I'm literally a walking maymay.
>>
>>54031665
When I started freelancing I marketed myself with the default description generator from fucking odesk, your only problem is your obvious horribly low self-confidence, you shoot down any idea or possibility that you might pull something off out of fear of failure / subconscious fear of making someone mad by succeeding (im not shitting you looking it up) just give it a try. If pajeet can get 20$/hour so can you.
>>
>>54031665
>There's no such thing as an entry level Rails job you fuck that's my point.
I don't think it's possible to put those words together in a sentence like that.

Rails is an entry-level framework. It's impossible that there are no entry-level jobs. I accidentally applied to one and I didn't even have Rails on my resume, and I still got an interview and a trial day... Before taking a better-paying node job instead.
>>
honestly y'all newbie niggas in these threads need to stop fretting about what technologies you are choosing to learn. just make stuff.
>>
>>54032356

also when y'all read job postings don't worry so much about meeting specific requirements or every single requirement. think of the qualifications/requirements as the company's "wish list", because that's what it is. no one checks all the boxes.
>>
This is Rails-specific question because I'm kind of stuck.

I have a Project which has many Reports and many ReportTypes. Each and every Report must belong to a ReportType. I want to be able to add or modify ReportTypes when submitting a Report. I obviously tried accepts_nested_attributes_for :report_type on Report but when I send POST /projects/43/reports with

{
"report": {
"additional_notes": "shit went wrong",
"report_type_attributes": {
"name": "I have no idea what I am doing"
}
}
}


it blows up with

 
"report_type.project": [
"can't be blank"
]


How do I solve this?
>>
>>54031799
>Rails is an entry-level framework.

Literally what.
>>
File: 1443073526005.jpg (52 KB, 700x500) Image search: [Google]
1443073526005.jpg
52 KB, 700x500
>>54031717
>just do it
cant argue with that

>>54031799
>the rails is a meme meme
There are plenty of startups around me that use ruby/rails in/as their main stack.

They want a minimum of 2 years and want 4. they really want you to be a buddy they roomed with in college or served with in the army and after taking on this internship, im learning more and more that startup culture is a codeword for pure (and rarely blind) nepotism.

>>54032392
if I can check all the boxes does that mean im overqualified?
>>
File: miiii.png (3 KB, 252x30) Image search: [Google]
miiii.png
3 KB, 252x30
How is this el "constructed"? What is the jQuery...?

I'm looking at some code and I want to know how I could recreate this structure.
>>
Just wondering to see where I'm/should be at.

How long did it take for you to learn:

>Node
>Angular
>Express
>>
File: kkb-in-the-house-get-busy.webm (2 MB, 1920x1080) Image search: [Google]
kkb-in-the-house-get-busy.webm
2 MB, 1920x1080
>>54032839
>im learning more and more that startup culture is a codeword for pure (and rarely blind) nepotism.

what? compared to corporate culture? lol.

honestly from your comments you sound like you make a lot of excuses and don't have much confidence in yourself. you also have at least one of those frog pictures saved on your computer, which alone speaks volumes. just keep coding and applying and something will work out for you.

also where do you live? where i live there are rails job listings specifically looking for junior devs. it's no coincidence that a lot of these bootcamps teach rails (perhaps that is changing recently though).
>>
>>54032392
if people are good enough, we hire them even if they don't know the languages/tools we use, we just pay them the first few weeks to learn them. it is worth it.
>>
>>54033735
How do you know they are good enough if they dont know anything
>>
>>54032976
var jQuery = {fn: {jQuery: {init: []}}};
>>
>>54033165
It took me one or two hours to learn the basics of angular and node, and by that I mean knowing it enough to build something functional and slightly complex (i wasn't writing my own angular directives by this point). I had experience with javascript and MVC before I tried them, though.

I've been using both for about a year now and I'm still learning new things from time to time.

I've never really used express except to route things, so I can't really say that I know it (unless that's literally all it does).
>>
>>54034170
Yeah of course, thanks.

How would that return a DOM element though? Kind of stuck here.

The el is actually this.el and when I console log the this.el it returns [div.wm-space].
>>
>>54034130
If you know computer science principals and can think like a programmer then picking up languages and tools isn't a big deal.

For example in an interview could you explain the difference between composition and inheritance?
>>
>>54033735
Question. If someone comes to you on the back of glowing recommendations from his former employer and has a great portfolio with examples of his work, do you still ask him the standard interview questions?
>>
Just got canned AMA
>>
File: miii2.png (2 KB, 171x48) Image search: [Google]
miii2.png
2 KB, 171x48
Last question, what is this "context"?
It's exactly the same as the 0: div
>>
>>54035196
Not that guy but what do you mean by 'standard interview questions'? Shit like 'what's an object?', 'which one of these two algorithms is more efficient and way?' or what?
I'd ask them anyway. You'd be surprised by how much can be done without proper CS knowledge. It won't be efficient or easy to maintain, but It Gets The Job Doneâ„¢
>>
>>54035696
more effcient and why* fuck
>>
File: 1459915988707.png (60 KB, 1200x1200) Image search: [Google]
1459915988707.png
60 KB, 1200x1200
>>54031224
>I barely know enough node to use gulp.

It's just Javascript, really not hard at all. Keep at it with the internship and Rails/Javascript. Learn how AJAX works, it's really not complicated at all. You should be able to get interviews for junior positions after your internship. But be sure to start applying now while you're working for the internship.

You can do it Pajeet!
>>
>>54032624
>rails

https://www.youtube.com/watch?v=amT27SfNhKM
>>
File: funny-spongebob_00242175.jpg (436 KB, 1024x768) Image search: [Google]
funny-spongebob_00242175.jpg
436 KB, 1024x768
>golang..
>GOLANG.. go..
>GOOGLE LANG..
>>
>>54031274
Freelancing is extremely hard to break into.

About 60% of the time contact is broken once they realize I'm a freelancer and not a company they can sue if something goes wrong.
>>
I have ~2.5 years of webdev experience working on various personal and FOSS projects.

How can I find part-time employment over the summer? I really want to put these skills to use, and I'd rather not get a shitty job at McDonalds or whatever.
>>
I'm trying to do a count down that is triggered when you click a button but what happends instead is that each time you click the number goes down by one, what can I do to make the count down function runs completely when the button is clicked?

var count = 10;
var counter = setInterval(timer, 1000);

$(".button-start").click(function() {
count += -1;
if (count <= 0) {
clearInterval(counter);
return "Done";
}
document.getElementById("timer").innerHTML = count + " s";
})


If I do it outside the .click it works fine but I want to make it run when you click it.
>>
File: 21kfsdz.png (681 KB, 842x770) Image search: [Google]
21kfsdz.png
681 KB, 842x770
guys please help I am stuck in this for days
I have a chart from chartjs and I want to put a background image without css so it can be part of the canvas. The problem is that the chart has a repeat and whenever I change data on the chart the image gets refreshed. I tried to put bigger repeat timer with clearInterval and it kinda works on Chrome but its still flickering in Firefox. Is there a way to fix this without creating a second canvas? Here is fiddle test http://jsfiddle.net/sj1k78rb/
>>
>>54030989
But I don't like callbacks.
>>
>>54036874
What are you doing on javascript-land then? This is a callback-fest for even the most simple shit.
>>
>>54036899
RxJS
>>
>>54036695
Have you tried talking to your rubber duck?
>>
there just has to be a simpler way to create a rest api than just plain old express.

what do?
>>
>>54030945

i disagree with "express or nothing". koa v2 looks very, very promising (with async/await. koa v1 with generators is just weird). it will take some time for it to be stable, though. express is a good foundation but in a year or two we will most likely all use koa v2.
>>
>>54037088
REST is so simple everything supports it. Or you can write it yourself.
>>
Be honest, /g/, is PHP really that bad? Newbie coder here and it's the only language that I know well.
About to start a web project, just for fun, because I miss coding. Nothing fancy.
Can I stick to PHP with a framework (I'd like to learn one - Laravel, CakePHP, Zend, Symfony or Slim?) or should I learn a new language (Which one? Which framework?)
>>
"Nothing is meme. Everything is permitted."

I came up with this all by myself. I think it should be used as an answer for the people when they ask which technology they should use.

I might be a genius.
>>
>>54030416
I am a webdev and I hate web developing
>>
>>54037807
I'm too new to understand why PHP has such a bad reputation though.
>>
>>54037055
Yeah, it didn't work though, I get the feeling that is actually a really easy fix but I can't figure it out
>>
>>54037594
Do whatever lang you want to. Web dev isn't really about languages, but about principles and how everything is structured, also after you learn a language and try to pick a new one up, you start seeing parallels between the two, making it really easy to pick up new langs. Depending on the size of your project, I would do Lumen/Laravel or RoR.
>>
Deploying on DO soon, should I be using CloudFlare?

I know almost nothing about DNS in a web server context.
>>
>>54038387
Okay, thanks for the reassuring words.
>>
This is a weird question, but is there any way to check the data contained in a comment using php?

I want to use comments to mark certain elements in HTML.
>>
>>54039095
Not sure I understand what you want to do.
>>
>>54033165
>Angular
Couple of months of enterprise angular at my internship
>Node
>Express
I don't know a lot but I made a REST API in like 30 minutes, which is all I needed for my site
>>
>>54039461
I'm going through CodeSchool's "Shaping up with Angular.js" right now. It feels kinda like Codecademy, but I think I have learned some things. Does anybody have any experience with it? How much knowledge is actually contained in there? How much more I would have to learn, because I have no idea about the size of this library. It still looks quite messy, I have to say.
>>
Why is there a space between the navbar and the #imgspread?

CSS
nav ul{
background-color: #EDEDED;
overflow: hidden;
color: white;
padding: 0;
margin: 0;
text-align: center;
-webkit-transition: max-height 0.4s;
-ms-transition: max-height 0.4s;
-moz-transition: max-height 0.4s;
transition: max-height 0.4s;
}

nav ul li{
display: inline-block;
padding: 15px;
padding-left-right: 10px;
background-color: #EF3E26;
font-weight: bold;
}

#imgspread{
width: auto;
height: 600px;
color: white;
background-color: grey;
margin-top: none;
}

#imgspread h1{
color: white;
padding: 90px;
}
>>
>>54039550
>I'm going through CodeSchool's "Shaping up with Angular.js" right now.
100% of the Angular tutorials are absolutely shit. You can't learn good Angular online. Some things that the tutorials do wrong:
- assigning variables to scope ($scope.num = 4 etc.) - the moment your site gets complex this will cause problems
- using outdated stuff like ngRouter and the ngController directive
- Not creating an isolated scope for a directive nad using scope instead of attrs
- Not teaching proper modularization

>Does anybody have any experience with it?
I have been programming in Angular for the last year and I can say that I'm pretty experienced in it
>How much knowledge is actually contained in there? How much more I would have to learn
A lot. The library is very deep.
>>
File: 2016-04-14 16_42_12-Index.png (8 KB, 941x624) Image search: [Google]
2016-04-14 16_42_12-Index.png
8 KB, 941x624
>>54039724
forgot image.
>>
File: 2016-04-14 16_46_48-Index.png (12 KB, 938x671) Image search: [Google]
2016-04-14 16_46_48-Index.png
12 KB, 938x671
>>54039724
>>54039740
This image is better.
>>
>>54039740
Haven't tested it, but you have 90px padding on all sides of imgspread
>>
>>54039726
I still don't know about those subjects so I can't say anything. Btw I was asking does anybody have experience with that site I was learning from (Codeschool). I already went through the first half today, it won't take me long to finish, but I'm wondering how good actually is it.
>>
Is storing user login through localstorage a bad idea for phones?

I don't want people to edit it and pretend to be someone else.

Maybe I can salt it heavily PHP side return the shit back to AJAX and store that, then just validate with a php script and...that's how awesome I am. Can't even ask a question without solving it before I ask the question.
>>
File: 1380301309463.jpg (193 KB, 520x853) Image search: [Google]
1380301309463.jpg
193 KB, 520x853
>>54037880
I'm too new to understand why PHP has such a bad reputation though.

http://php.net/manual/en/function.sleep.php

>Return Values

>Returns zero on success, or FALSE on error.

>If the call was interrupted by a signal, sleep() returns a non-zero value. On Windows, this value will always be 192 (the value of the WAIT_IO_COMPLETION constant within the Windows API). On other platforms, the return value will be the number of seconds left to sleep.
>>
>been working on my own projects
>think about possibly freelancing
>hear about upwork
>check jobs
>close site
Are these niggers serious? You want me to remake shit like Codecademy for $200 but its fine because you have a couple fucking psd files? Eat a fucking dick.
>>
>>54037268

of course it's simple, but it's too damn low level. is there a more high level solution, that's aware of resources, users, access control, etc? i feel like i have to repeat myself a lot.
>>
>>54035492
Why?
>>
>>54040170
it's horrible
http://php.net/manual/en/function.flock.php
>>Portable advisory file locking
>>Windows uses mandatory locking instead of advisory locking
>>
anyone ever used dustjs in production? comments?
>>
>>54037880
Have you ever tried using it?
>>
File: WTF.gif (2 MB, 350x283) Image search: [Google]
WTF.gif
2 MB, 350x283
>Looking for jobs/internships
>Find one that's promising at Visa
>Decide to apply
>Their SSL certificate has a non-trusted issuer and I can't securely access it

Fucking hell, how does this even happen? I just wanted a nice web developer position, man.
>>
> Might get fired by HR from my mcdonald's-tier job

It's go time. Web dev job is a go. Uploading everything. Systems nominal. Writing a scrape bot to spam my resume to every job listing on craigslist, indeed and monster within 50 miles of my zipcode thanks to based Haversine.

I will no longer be mcdonalds-tier. Trump 2016.
>>
>>54042058
Yep, maybe it's because it's the only one I use, but I really enjoy it.
>>
>>54041305
200 dollars because raj and pajeet work for 2 dollars an hour.
Anyone who knows how to use freelance websites are doing so because they want to outsource.
>>
>>54037807

> genius
>>
>>54042145
I see, you don't know better.
>>
>>54042177
That's correct, I definitely don't. That's why I was asking why it's so 'bad'. This guy (>>54040170) showed me it could be messy.
>>
>>54042257

fwiw i think php is better now than it used to be

for small, beginner shit it's really not that different from things like python or ruby

once you make a bigger program it kind of is only good for hacky webdev, you'd pick something else if you could
>>
>>54042334
Can you give examples of something I can't do with PHP and jQuery?
>>
I'm trying to do AJAX login with php.

I can't use sessions, so would localStorage tokens be good?

It would be their salted username andded to their salted last_login timestamp returned to AJAX and stored in localstorage. Any requests to DB would split it in 2, send it to PHP to validate username and login timestamp, either success would be returned or an error would.

Would that work ok?

Decently secure?
>>
>>54042541
write good code
>>
>>54042699
Never use OO PHP in an MVC framework?

C L E A N
>>
>>54042748
English, motherfucker.
>>
>>54042652
Why can't you use sessions? It's way more secure than cookies because they're local, meaning an attacker could modify them.
>>
>>54042909
It's an app in Cordova. I read sessions are broken with it, so I'm just making my own token system.

The local salted timestamp has to match the server-stored timestamp or it throws an error anyways. Doesn't really matter if they attack it. I can throw an additional md5 in the local string and it's almost impossible at that point. Match that with intrusion prevention limiting 20 connections per minute and the universe would implode before anyone cracked it.
>>
>>54043073
>making my own token system
Look at ones that already exist. If you're trying to do it all on your own then props for trying, but you'll leave yourself open to vulnerabilities.
>>
>>54044430
I don't see how. It's pretty straight forward.

What does a session do other than store and compare the token?
>>
>>54044803
Yeah, I bet everyone that made something that got hacked/exploited thought it was pretty straight forward too.
>>
>>54045520
Do you not know how key cryptography works? You should study that shit so you don't sound so retarded in the future. The only vulnerability is hijacking which sessions are vulnerable to as well.
>>
File: saved.jpg (138 KB, 911x1215) Image search: [Google]
saved.jpg
138 KB, 911x1215
>>54030416
I know everything I need to know to build a website from scratch using MEAN, aside from javashit I know C#, C++, C, Java and Python. For the last year I've been neet and doing free courses on webdev shit, having CS degree (that I never had, coz I quit the 3rd year) etc. yeah I am wreckage, I can't find work with my halfassed degree and in my home town no one is looking for C faggot or Java or anything like that so I want to get a job as fullstack or even front end dev Im sick of being neet my who life.

>How do I make good CV and/or make somewhat good looking personal portfolio of things I've done ?
>Is just making couple sites good enough ?
>Is wordpress site serious ?
>Any guidelines I can follow ?
>>
>>54045788
Okay Mr Unbreakable ;)
>>
>>54045818
>quit the 3rd year
>didn't quit because of a job

Bro, what were you thinking. The "drop outs are smarter" thing applies because the guys who dropped out already had job offers.
>>
>>54045915
>>54045915
My dad took a huge loan, after that he had car crash, and I never knew about all of that at all, so I had to go home and look after him, and by the time I could go back, it was too late and I didnt have any money, and he couldn't affort it either.

But now I can probably find something, even if its "minimal" wage for such stuff, I don't want to be in silicon valley...
>>
File: webm.webm (196 KB, 480x270) Image search: [Google]
webm.webm
196 KB, 480x270
>>
Guys im in my 2nd year of a CS degree and it feels like im wasting my time, i can teach myself a semester worth of 'knowledge' in a week using this shot online

Should i just quit and learn independent full time and freelance ??
Dedicated to becoming a web developer btw
>>
>>54042101
>Visa
Shoo shoo Pajeet, off to the designated shitting street
>>
>>54046518
You should have done that 2 years ago. Networking is the only thing college is good for.
>>
>>54031224
In my opinion just go all in on JavaScript. There is so much fucking engineering and money going into the platform from all major companies.
>>
Guys I suck at deisgn. I can build anything, implement any feature, add any tricks, etc but i cannot think of things. Luckily I focus on the back end at work but unless someone tells me what to build on the front end or unless i copy someones design, it looks like shit. will i just have to live with this or is there something i can do to improve this
>>
>>54047507
That depends on what your site is intended for. If you're building an ecommerce website, for example, look up a few sites with online shops and try to do something similar.
>>
Hey, I want to add a vertical divider to a navbar I'm working on, except I want the vertical divider to be a different color between every li!

I'm using sass and I was wondering if there is a sexy way to do this, something like extending classes or smth, or concatenating stuff.

I'm just starting with sass, I tried extending classes but clearly I am doing it wrong. Anybody here with experience with this?

 
.navbar .divider-vertical{
margin: 0 9px;
border: 2px solid;
content: " / ";
display: inline;
.yellow{
@extend .divider-vertical;
color:$c-yellow;
}
.green {
@extend .divider-vertical;
color:$c-green;
}
.pink {
@extend .divider-vertical;
color:$c-pink;
}
}
>>
>>54048846
please disregard the content: " / "; thing, this didnt work at all but I forgot to remove it. I ended up using a border instead!
>>
What should I be asking for an entry level fullstack reactjs and node position? I have no idea what to offer and I sure as fuck don't want to lowball myself
>>
File: spot the bug.png (24 KB, 829x209) Image search: [Google]
spot the bug.png
24 KB, 829x209
>need a github account to report a bug in vs code
:/
>>
>>54049779
Then make one.
>>
>>54047507
>dont make me think revisited pdf allitebooks
google that, and read the book
>>
>>54049779
>not having a github account
lmao
>>
>>54049779
>using a reserved word as a parameter name
>literally a sintactic error
>bug
I wouldn't be so sure, kouhai...
>>
>>54050462
but type isn't a reserved word in javascript
>>
>>54050494
Ok, create an issue on their Gitcuck then
>>
>>54050625
i don't have an account there
>>
>>54050641
>>54049788
>>
What the fuck is the Document Object Model (DOM)? I've heard about it for years, tried reading the wiki page, but still don't understand. Can someone explain in simple terms? Maybe if they can some examples of another model, I don't know
>>
>>54050772
I think about it like the skeleton of a page.
>>
>>54050772
This is how I learned. They lay it out like an elementary school lesson.
https://css-tricks.com/dom/
>>
>>54050969
I still don't understand what it is. This link here says that it's an API? https://www.w3.org/TR/WD-DOM/introduction.html

So where can I read the source code for the DOM? What's it written in? What are some competing models?

How do I know if what I'm doing is DOM?

I've been programming for years and have written my own back-end framework yet can't grasp this lmfao
>>
>>54051033
It's not really important. If you can manipulate an element through javascript or add an event listener then you are already using the DOM.

It's not that important. It's just a name for the code parsed from the file the server send and before the client is rendered. Thats it.
>>
>>54051033
look that tree representation of that portion of html code. I think is the best way to understand it. It converts the html/xml text into some kind of object you can manipulate/interact.

For a competing "thing" check out xpath.
>>
>>54051011
Thanks, that helped a bit
>>54051129
I never thought it was important so I've neglected to really try and grasp a solid understanding of it. Now I feel stupid
>>54051167
Isn't xpath just part of XML?

Who came up with DOM?
>>
>>54051033
It's simply a standard for the data model in a browser.

It was standardized so that competing browsers interact with and access the different SGML descendants, like XML and HTML, the same way.

If you want to look at specific implementations you have to look at the different browsers layout engines like Webkit, Gecko or Servo.
>>
>>54051242
>Who came up with DOM?

the w3c, a bunch of guys with black robes in some secret cave underground.
>>
File: Capture18.png (55 KB, 1920x973) Image search: [Google]
Capture18.png
55 KB, 1920x973
dollymountgardens.ie


I know it's pretty bare but I just want my website to be the bare minimum. Haven't uploaded any photos or proper descriptions yet, but does this look functional enough?


Again, not trying to make anything flashy (admittedly because I don't have the skills to make anything good, but it doesn't seem necessary anyway).


Side question: what do I put as the href url for the home link? Tried leaving it blank but that just links to whatever page you're already on. Atm it's just "index.html" as you can see yourself.
>>
>>54051592
This made me laugh anon, kek
>>
>>54051608
I'll make something professional looking for $200 for you if you're interested friendo
>>
>>54051608
Don't set font sizes in px units, use rem and em;
>>
>>54051608
use some kind of css framework you stupid fuck
>>
>>54051971
I am using some kind of CSS framework you dip. It's just very basic.


>>54051682
thanks for the offer, but I'm aiming to spend absolutely nothing on this site.

>>54051920
Will do. Why though? Something about scaling with tablets maybe?
>>
>>54051608
I know you're a beginner so I'm sorry to say that doesn't look really good.
Have you looked at (although overused) bootstrap for 'easy' design?

>http://getbootstrap.com/
>>
>>54052007
>http://dollymountgardens.ie/test2.css
you call this thing a css framework? what are you retarded?
>>
>>54052026
>>54052026
...


maybe I was asking for a beratement. Ok then, how about we'll forget about the feedback for now and we'll just skip to the side question - how can I link to the homepage without using "index.html"?
>>
>>54051608
http://concisecss.com/
>>
>>54052073
href="/"
>>
>>54052026
anyway, thanks for looking that thoroughly through my work. Guess I should appreciate it even if you're a bit of an ass. Please point out some things that are retarded so I can learn, don't care if you're harsh.
>>
>>54052092
thanks lad!
>>
>>54052113
>lad
lass*
>>
>>54052073
>maybe I was asking for a beratement
Actually, while the anon at >>54052026 expressed it rudely (though not that rudely by /g/'s standards), he's right: what you are using isn't a "CSS framework". You will benefit from learning what a CSS framework does.
>>
File: koa.jpg (158 KB, 602x764) Image search: [Google]
koa.jpg
158 KB, 602x764
Working with Koa and async/await is so much fun.
Who /nevergoingbacktoexpress/ here?
>>
>>54052131
*sass
>>
>>54052132
k I'll look into it over the weekend for sure.
>>
>>54052151
>
import { isString, isNumber }

stopped reading there
>>
File: 1.png (4 MB, 1897x978) Image search: [Google]
1.png
4 MB, 1897x978
>>54052007
>I aim on spending absolutely nothing
Are you sure? I already wrote this much up for you from scratch
>>
File: 1435934696596.jpg (66 KB, 638x484) Image search: [Google]
1435934696596.jpg
66 KB, 638x484
>>54052231
>>
>>54052151
That looks pretty good but stuff like
>if (!isNumber(oz)) throw badRequest();
reminds me why I don't want to leave the comfort of static typing on the server for anything less than Erlang (or at least a featureful Lisp like Clojure).
>>
got a Skype interview for a front end dev position on monday. What should I expect lads?
>>
>>54052332
don't be this guy
https://www.youtube.com/watch?v=ULqAIbjCsXE
>>
>>54052151
>try phoenix framework
>response in 200µs
>i'll never go back to anything else
>>
>>54052285
>>54052462
erlangfags pls go
>>
>>54052462
With Phoenix you might be forced to go back to C for writing C nodes (http://erlang.org/doc/tutorial/cnode.html) for the computationally intense stuff.
>>
>>54052530
>erlangfags pls go
Why?
>>
>>54052536
i don't see myself doing something so expensive that i have to go to C
>>
>>54052348
duly noted
>>
>>54052348
Is this real
>>
>>54052232
lel

I won't pay you, sorry man. Looks really good though.
>>
>>54052232
looks like shit lmao
>>
>>54052232
That nav is shit m8. Fit the logo in there somewhere too.
>>
>>54030416
>leaseweb

No thanks. Every now and then, their platform is on maintenance mode and you cant do shit about it. and whenever it comes back online, Boom. Your data is totally corrupted, unreadable.
>>
File: 1390129974090.gif (2 MB, 250x196) Image search: [Google]
1390129974090.gif
2 MB, 250x196
This code challenge is fucking with my head.

<script type='text/javascript'>
<!--//<![CDATA[
document.MAX_ct0 ='http://www.criteo.com';
var m3_u = (location.protocol=='https:'?'https://cas.criteo.com/delivery/ajs.php?':'http://cas.criteo.com/delivery/ajs.php?');
var m3_r = Math.floor(Math.random()*99999999999);
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("zoneid=14335");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
document.write ("&amp;ct0=" + escape(document.MAX_ct0));
}
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'></scr"+"ipt>");
//]]>--></script>


They want an <iframe> that makes the same request to their ad server, but WITHOUT using Javascript.

How the fuck am I meant to get the variables into the URL without JS? Is it a trick question? Am I missing something stupidly obvious? Fuck my life.

>inb4 you don't deserve the job
No I definitely don't, but I'd like to know the answer either way.
>>
>>54052865
That's okay famalam

>>54053153
>>54053256
Literally spent 9 minutes on it. I don't have the logo and didn't feel like polishing anything up cause I wasn't being paid for it. It was just a rough mock-up, better than anything you fags could do in such little time
>>
>>54053573
<script type='text/javascript' src='https://cas.criteo.com/delivery/ajs.php?zoneid=14335&amp;cb=50153646153&amp;exclude=undefined&amp;charset=UTF-8&amp;loc=something&amp;referer=something&amp;ct0=http%3A//www.criteo.com'></script>


replace something with something that makes sense.
>>
>>54053573
PHP out of the question?
>>
>>54042652
whenever i do this sort of thing, I get their userid from the user table in the database, then store it as a session variable.

on each page, check and make sure that the session variable is active. you can pass that into sql queries on different pages to get different info about the user. If the session variable isn't set, that means that the person isn't logged in, so redirect them to the login.

i'm not sure how secure that is because I only ever used it for school projects/hackathon stuff
>>
>>54053750
I hope you're joking.
>>
>>54053988
Elaborate
>>
File: movieserror.png (213 KB, 1419x777) Image search: [Google]
movieserror.png
213 KB, 1419x777
i'm working on this site that lets me and my roommates bet on what we think the rotten tomatoes score will be for certain movies.

why the fuck aren't these images showing? when I inspect them and go to the src that they link to, it displays the image,but not on the webpage..
>>
>>54053842
That renders the ad perfectly but I've tried an iframe with a similar source and I just get the delivered javascript text in a window.

>>54053921
I would assume so
>>
>>54054025
what does the network tab say?
>>
>>54042652
>I'm trying to do AJAX login with php.
Is it really worth all that trouble for AJAX logins?

There are many cases where using AJAX for form submissions is great, typically when you expect a user to make many requests during a session, so it's more productive and efficient to not have the page reload after each request.

But with a login form you only expect it to happen once in awhile for each user, the user logs in and it's done. Seems like a waste of effort for something which result in any significant benefit, not to mention the security risks.
>>
>>54053926
I can't use sessions. They break Cordova.

The only option I see is to make my own token system and use the apps localstorage for one keypair.

I'm going to leave them logged in unless they hit 'logout' anyways.

It should work great unless they get MIM'd, but then again I could just encrypt their key with their unique app ID as a salt.

Im going to work and this shit today opensource.
>>
>>54054071
look up jwt/oauth
>>
>>54053842
I guess my question is, why does an actual <iframe> tag using this source not render correctly?
>>
>>54054117
because the target is javascript, and an iframe wants text/html.
>>
File: 1412471509332.gif (2 MB, 372x262) Image search: [Google]
1412471509332.gif
2 MB, 372x262
>>54054132
I knew it was something that simple.

Thanks very kindly anon.
>>
>>54053573
what are you trying to do?
why no javascript?
do you have any server side language?
check your ad hosters documentation and implement it in your server side language then.
maybe you can just ask them if they have some small libraries already to do exactly that.

otherwise I have no idea what you're trying to accomplish.
>>
>>54054069
> security risks

Do tell. It's the same as a form submission but I'm getting returned values from the php page.
>>
>>54054156
It's a code challenge for a job I'm applying for. I am really confused about what they want as well because this seems very poorly phrased to me:

>Below is some JavaScript code that renders a Criteo ad. Please create a simplified iFrame tag, without using JavaScript, which makes a similar request to our ad server. Please also explain what process you used to arrive at your answer.

The script tag using an appropriate URL produces an iframe with their banner using the delivered Javascript function from their server. But the question seems to want a custom iframe tag that does the same thing and I'm not completely sure how to implement that since
<iframe src="Javascript: 'url' "></iframe>

does not render the received code.
>>
Alright ya'll, got my final interview with AT&T Monday. Wish me luck please.
>>
>>54054288
iframes don't render. javascript like this.

just run the ad normally and then grab the iframe element they create in their javascript.
>>
File: 1458701704516.gif (1 MB, 320x213) Image search: [Google]
1458701704516.gif
1 MB, 320x213
>Put resume up on Indeed yesterday because I'm starting a job hunt
>Mention I'm a fullstack rails developer
>Recruiters have sent me 4 emails already

...Has webdev always been this easy to get work in? Should I have been trying sooner?
>>
>>54054333
Generally recruiters just look for buzzwords (like fullstack in this case) and experience (which is generally discussed when you call them). So yeah, getting them to email you is pretty easy.

Getting through the interviews with the actual devs may be a little more challenging.

Also, try Dice. It's more geared towards dev work.
>>
>>54054329
Is that really all they want? Maybe I've been overthinking it.
>>
>>54054333
Lucky.

I keep getting offers for completely unrelated things.

"My client wants to pay you a whopping 7.25 an hour to do phone tech support!" Like fuck off.
>>
>>54053988
What would he be joking about?
>>
how doable is it to land at least one job by the end of the year if im a neet with no job experience who only started learning html yesterday? i do have a moderate background in graphic design (and ricing), so that's something.
>>
Newbie here,

Can someone take a look at the following:

http://codepen.io/Pixelbark/full/EKbvdb

I've got an issue with the navbar, when I resize the window, the dropdown button does absolutely nothing. Where did I go wrong?

No bully.
>>
>>54054652
here take a look at how I did mine, maybe it can help.

http://codepen.io/Zancrash/pen/zreJMX
>>
>>54054652
You forgot to add the bootstrap.js asset.
I just added it and it's working
>>
>>54054827

AHHHHHHHHHHHHHH! Fucking hell. Thanks!
>>
>>54054827
Damn, was about to say that. Good catch.
>>
File: 1459960119051.png (93 KB, 467x496) Image search: [Google]
1459960119051.png
93 KB, 467x496
Alright motherfuckers, I need some suggestions.

I have a side project idea that's basically a web app and I'm undecided on which frontend framework to roll with.

I've used Angular 1 in the past and it was... alright but that was some time ago.

I've had a look a look at Aurelia and it seems nice. I've had a brief look at React with Redux but it seems too barebones for my current needs.

Thoughts?
>>
>>54055418
turn your web app into a weeb app
>>
>>54055438

I'd rather commit Sudoku
>>
>>54055418
vanilla js faggot
>>
>>54055418
Angular 1/2, React with Redux, Vue with vue-router, Ember, Mithril...
You are going full-frontend I suppose.
>>
>>54055418
Ember
>>
>>54055452

But muh productivity m8

>>54055470

Vue looks nice, I'll do some reading on it.
>>
>>54055494
>>54055470

After some reading it would appear that Ember is more of a "batteries included" framework that might suit my needs right now.

Thanks for the suggestions m80s
>>
If I've made a POST request in curl and I get 200 OK, that means it succeeded right?
>>
What laptop do you use?
>>
>>54055711
it should, but doesn't have to.
201/204 would be better.

but it could have thrown an exception and the developer just returns 200 anyway, so you really never know..
>>
Took over a project. I have the master folder which has all the pages, angular stuff, Css, js files, etc. And then I have a mongodb-data folder with a few JSON files. How do I get this up and running on my computer?
>>
>>54056280

Forgot to mention when I run the index file I get a blank screen
>>
>>54055711
Pretty much what (>>54056182) said.
That's why some APIs return some kind of 'success' field (true/false) on their response, to indicate if your request to _the API_ was a success, and not your request to _the server_ of the API.
>>
>>54055711
I'm guessing you are using nginx? If so, yes thats fine.
>>
How do you pronounce gunicorn? I say G Unicorn but I'm afraid I will look like a fool if I ever say that out loud.
>>
>>54056679
I pronounce it 'goo-nicorn' but maybe that's because in spanish gu == goo
>>
>>54056679
https://www.quora.com/How-do-you-pronounce-gunicorn
>>
>>54056679
junicorn
>>
>>54046518
>>54056351
Check javascript console. But frankly if you didnt know it yourself then you probably arent ready to take over. Also mongodb implies backend.
>>
>>54046339
fag
>>
>>54043073
just use some json web token library
>>
Anybody has exp with Wordpress?

I'm trying to upload an mp3 file via custom field template but it is just showing me the "Hello, world!" and a default icon as an uploaded file. I should echo that field into src of an audio tag but it is empty. Is there some different way to upload an audio file to be used on a page?
>>
How old is too old to start learning ? I'm an oldfag (34 years old) and thinking to devote 1 year to learn Javascript 10 hours a day. Would I be able to get freelance work after that? Making $20k a year would be enough for where I live.
>>
>>54051608
The issue is your website looks like it was made in the 2000's and no one will trust it because of that
At the very least look at some simple well designed websites and knock off what they're doing
>>
>>54057971
With this can I easily authenticate on every pageload?

Im reading about it but it will take a bit.
>>
>>54030416
How much does it cost for websites like rebeccablacktech.org to keep up and running? I'm seriously considering running an archive website, but I'm very afraid that it won't be sustainable. If it's ad-supported will it be sustainable?
>>
>>54058833
That link is dead senpai.
>>
>>54058858
Derp
rebeccablacktech.com not .org
>>
>>54058874
>>54058833
Assuming you don't go over the limits agreed in the contract with the web host (like bandwidth use, for example) then I don't see why it would cost much to keep it up and running. You'll probably want to use a CDN service for protection and fault tolerance, SSL, and some other things but it would probably still be pretty cheap to maintain I assume.
>>
File: 2016-04-15 20_31_16-Index.png (3 KB, 343x123) Image search: [Google]
2016-04-15 20_31_16-Index.png
3 KB, 343x123
How do I get these buttons to line up horizontally without the little at the top of each one?


#linklist{
margin-top: 50px;
list-style: none;
}

.linkbtn{
background-color: #2e393d;
color: white;
text-align: center;
display: inline-block;
float: left;
border-style: none;
}
>>
>>54059067
spaces at the top*
>>
>>54059067
Vertical-align: top;
>>
>>54059067
Could you post the HTML please?
>>
>>54059127
<section id="linklist">
<button class="linkbtn"><a href="schedule.html"><p>SCHEDULE</p></a></button>
<br/>
<button class="linkbtn"><a href="contest.html"><p>CONTEST</p></a></button>
<br/>
<button class="linkbtn"><a href="tickets.html"><p>BUY TICKETS</p></a></button>
<br/>
<button class="linkbtn"><a href="map.html"><p>MAP</p></a></button>
</section>
>>
who /webmaster/ here?
I was having an issue with nameservers that I am not sure how to resolve.
essentially the browser would display the server's ip address rather than the domain name whenever content other than the index was loaded
e.g
>www.index.com
for the index page
>012.342.5/subdirectory/image.jpg
what went wrong?
I'm not sure if I've given enough info to go on, if not just ask
>>
>>54059160
ah fuck it was the br tags, had them leftover before i made them into buttons
>>
>>54059191
Use a nav.......
>>
>>54059189
Are you using a VPS with full access or a simple shared webhost?
If the latter, maybe it's a problem with the way they configured their webserver
>>
File: 220px-4467_print2.jpg (19 KB, 220x310) Image search: [Google]
220px-4467_print2.jpg
19 KB, 220x310
How do I know if I'm employable?

I've been doing webdev for years now, dropped out of college and have done some freelancing through acquaintances. But how do I go about finding a real job? I don't know what to put on my resume because some of my skills are unrefined. I don't know the ins and outs of everything but I'm always able to find the solution by going through documentation.

I would greatly appreciate it someone could help me out and walk me through the getting a job process. I'm honestly considering suicide because my life has been at a standstill for so long.
>>
>>54059228
the server was a laptop I have
so I guess it may have been how I configured it?
>>
>>54059294
I think /biz/ has a resume thread, that might be a good place to start.

Definitely include any websites you've made on it.
>>
>>54059160
>>54059067
Next time use jsfiddle bruh.
>>
>>54059310
Probably. What domain registrar are you using? Are you using their own DNS server or something like CloudFlare to manage your domains?
>>
>>54059376
I was using Gandi
>>
>>54059333
This is too vague. I'll go to /biz/ but I have a feeling I'm just chasing another bottomless rabbit hole. I wish someone could just take me by the hand and get me through the whole process. I do enjoy the field, but my real life situation is getting bad and I need employment.
>>
>>54059454
Sign up at some job websites like Indeed, Monster, and Dice. Include every language you've ever worked with, along with some more general terms like 'web development' and 'advanced troubleshooting'. Start applying to the jobs they have posted.
>>
>>54057971
I'm not paying money to authenticate shit for my shit app.

I'll just rig some shit together.

Shit.
>>
>>54059454
Quick life lesson. No one is ever going to take you by the hand and show you how to do shit unless a) you pay them b) they want to fuck you.

The thing I like about this field is that you have to learn it by yourself. A degree will do fuckall besides open that first door. This is the field where you can do good because you are good and not because you paid 10s of thousands of dollars to hello world for years and then learn turing was gay.

It feels fucking good to know that your portfolio can take a massive shit on someones masters of web design.
>>
>>54059294

If you don't have anything modern to show companies then it's not gonna happen. They wanna see what you can do.
>>
I get so confused when doing server stuff and client stuff on the same machine.

I was just trying to figure out how I was going to package some server shit.
>>
>>54059529
> Dice

What a stupid fucking website. Tries to strip your resume and makes it look retarded. If they need keywords so bad then just ask me to put them in.

This dumb fucking website put '1' as a skill because they can't scrape properly. What a load of shit.
>>
How do you guys attribute images?

I made a separate page with thousands of attributions. But I think it's a bit of a silly page to have because it's near impossible to find anything.
>>
how hard would it be to develop something like this on the Tesla website?

https://www.teslamotors.com/models-charging#/calculator

scroll down and see the charge time & cost calculator
>>
How do you find out how much it would cost to host a website vs how much ad traffic would be required to host it? Also, what do you think of AWS? The content on the website is a Twitter app and it's volatile and will only be on the server for an hour
>>
>>54062346
Your ad revenue depends on a lot of factors. It could be anything from 0,5 dollars per 1000 to 25 dollars per 1000.
How much your server costs also depends on a lot of factors. But traffic usually is cheaper than ad revenue.

I use a host with unlimited traffic. So as long as the CPU and RAM can carry my site i'm good. So I don't have to worry about that shit.
>>
>>54063621
>unlimited traffic
And no fair use bullshit.
Thread replies: 251
Thread images: 30

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.