[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


Thread replies: 326
Thread images: 28

File: wdg.png (1MB, 822x552px) Image search: [Google] [Yandex] [Bing]
wdg.png
1MB, 822x552px
OLD THREAD >>54160158
> 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
>>
File: 1418758286327.jpg (74KB, 500x377px) Image search: [Google] [Yandex] [Bing]
1418758286327.jpg
74KB, 500x377px
Does anyone feel burnt out? I haven't even gotten my career started, but I'm 6 years into education, finally have my portfolio, and now I just want to go to sleep then never wake up.

Someone please motivate me to start applying for jobs and not bail on interviews.
>>
>>54193068
>6 years education
what the hell man this isn't medicine
>>
File: 1458609463032.jpg (252KB, 950x712px) Image search: [Google] [Yandex] [Bing]
1458609463032.jpg
252KB, 950x712px
>>54193129
Anon, I..
>>
>>54193068
Burnout sucks. You can look for the telltale gap in green squares on someone's GitHub profiles now to see the effects of it, and it rarely seems to be short lived, often lasting 6+ months. I'm alright now, but I experienced my first major burnout about 2 years ago. It lasted almost a year I'd say, although the lines are blurred. I didn't wake up one morning being burnt out, then woke up another with it being over.

What put me in it was stress of long running projects with no end in sight. I had too much responsibility and no easy way out of it. I became incredibly unproductive and procrastinated to no end, then felt guilty about procrastinating.

What got me out of it was new, exciting projects with shorter turn around times. Now I'm working on stuff that's out the door in 6 weeks. Stuff that's more than just simple CRUD webapps, and lets me play with different technologies such as webgl, websockets, sensors, wireless protocols and so on. But I think what's helped more than anything is working with other people who are also excited about this stuff in the way I am. All I can recommend is you get yourself on IRC or something during the day, chat with other people about interesting projects. Hell, even post here regularly. Just find someway to stay excited about your work, whether that be your personal projects or paid work.
>>
>>54193068
Web dev anon here. It gets better dude. I think once you finally get that one job, you'll be motivated to contribute to your company's codebase.

Just try to take a month off from school to relax though. That may help.
>>
>>54192914
I'm using PHPeepeePoopoo. So what do you think? Can Javascript/jQuery read this pretty well?

[{"city":"Balch Springs","state":"TX","distance":10},{"city":"Garland","state":"TX","distance":9},{"city":"Mesquite","state":"TX","distance":9},{"city":"Mesqute","state":"TX","distance":7}]


I have to ask because I'm bad at everything.
>>
File: 1437755294691.jpg (413KB, 674x1024px) Image search: [Google] [Yandex] [Bing]
1437755294691.jpg
413KB, 674x1024px
>>54193263
I've posted here and on lainchan for years. Used to post everyday. Still lurk daily. The last IRC I was a part of finally breathed it's last breath a few months ago. Anyway I feel like I'm just pretending to still be into it, but really I just want to completely drop out of it all and die.
>>
>>54193333
yeah bro, that's just an array of JSON. You should be good. I'm guessing the numbers in distance can be numbers, but not sure about that.
>>
>>54193263
I agree with anon

coming here and to /dpt/ lets me see what everyone else is working on and will often inspire me to get back to work instead of procrastinating more
>>
Trying to find a online course for HTML/CSS but all these udemy and what not are taught by indians and I cant stand listening to thier dialect. Are there any good ones out there?
>>
>>54193489
Nothing worse than a squishy trying to speak english, I tell ya h'what
>>
>>54193489
I've been hearing many good things about Coursera, but I am yet to take a class yet...I believe you might have to pay since they are university courses but I'm pretty sure there's free classes

https://www.coursera.org/browse/computer-science/mobile-and-web-development?languages=en

And of course...theres always code academy

https://www.codecademy.com/
>>
Should I bother with jQuery or just head on to React or Angular2?
>>
>>54194287
Yes
>>
File: IMG_20160424_040855.jpg (2MB, 3264x2448px) Image search: [Google] [Yandex] [Bing]
IMG_20160424_040855.jpg
2MB, 3264x2448px
Finally redid my pls.press / skid.host site due to the recent spike in visitors (15k unique week bc of reddit etc). Also thinking about rewriting vodocean.com, another site of mine, to work as a imgur clone.

Rate and hate pls. Feels kind of not right sort of...
>>
>>54194474
How is this getting 15k uniques again?

Don't say reddit, I mean like actually why since it's just an image uploader and reddit already uses imgur for everything.
>>
File: IMG_20160424_041917.jpg (3MB, 2432x2432px) Image search: [Google] [Yandex] [Bing]
IMG_20160424_041917.jpg
3MB, 2432x2432px
Due to people uploading and sharing on various subreddits. Also youtube etc. Main site gets a few hundred a week and the I.xxx.xxx domains get ~15
>>
I need a good resource for learning API use through AJAX jQuery. Anyone have anything?

I need to learn the syntax, not "this is how I did this" with no explanation of why shit is what and what shit is why.
>>
>>54194600
To add on to this, this week and last was mostly, jusging by the logs, 6-9 different images that brought most of the traffic
>>
>>54194600
These numbers make very little sense when reddit has imgur which is more fleshed out.

Hopefully you add some social features soon to compete.
>>
>>54194600
I don't see any ads. Are you making any money with this site?
>>
>>54193068

>feeling burnt out
>hasnt started career yet

confirmed for not gonna make it. Leave.
>>
File: 1429709597727.jpg (68KB, 600x563px) Image search: [Google] [Yandex] [Bing]
1429709597727.jpg
68KB, 600x563px
>>54192702
THIS IS CONTINUED FROM OLDER THREAD
Alright so , I posted a fe wdays ago about learning html, css, and java script, and now jquery but I was getting hung up on the JqueryMobile swipes. Someone suggested I look back into event handling which I did and I adjusted the code but I'm still not getting anything, theoretically the navbar should disapear, Any ideas? all welcome :)
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

<!--JQUERY-->
<!-- When the document is ready, the user should be able to swipe up on <p> and the top List should quickly Disappear then swipe down and the list should reappear-->
<script>
$(document).ready(function() {
//Enable swiping...
$('p').swipe( {
//Should work on any P element?
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
switch(direction){
case "up":
$('p').fadeTo('fast', 0.0);
break;
case "down":
$('p').fadeTo('fast' 1.0);
break;
});
});
</script>

</head>
<body>
<div class="swipe">

<p> blah balh blah this should disperser</p

</div>
</body>
</html>


>>54194555
Oh snap! I looked into earlier but thought i got a big "LOADING" WITH
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

>>54194555
how does one properly link to the
http://labs.rampinteractive.co.uk/touchSwipe/demos/Basic_swipe.html library?
>>
>>54194287

honestly why would someone use react or angular? What can those frameworks do that javascript and jquery can't?
>>
>>54194747
Not currently. My plan is to try and get it to be pretty much be able to manage itself without me having to promote it to friends and people that are fed up with imgurs shitty compression and image quality. Then I might think about making a few bucks with it, but I'm not that desperate currently.

>>54194727
I mean, this is true for the mostpart, but there are a small number of people submitting I.pls.press links ti various subreddits weather it be to get the best possible quality image or not wanting to give their images to someone who might remove it or use it maliciously in the future.
>>
>>54194760
Unless you can find it on a CDN somewhere, you have to download it and include it through a relative path to it in your project. You don't even need the touchswipe to do what you are trying to do there though. jQuery mobile can detect swipe directions. Go back and look at the w3 link you posted.

Also you shouldn't be including jQuery 1.11 and 2.2 and it will probably cause problems.
>>
would you want to work on a reactjs/nodejs stack?
>>
I don’t get why people want to specialize in web development when they can just put in java applets/appliations on webpages and call it a day rather than coding for each web browser.. why waste your time?
>>
>>54194779

>Sponsored by one of the largest software companies in the world
>Community of thousands of developers fixing bugs and adding features and plugins
>Several years of active development
>Hundreds of tutorials, guides and doc pages

Oh, but I'm sure your home-made shit is so much better, right?

Why would you buy a car when you can make your own out of a pile of iron ore?
>>
>>54194943
Nobody uses java anymore grandpa.
>>
>>54194986
So this is a popularity contest rather than a utility contest Java is very efficient.
>>
>>54194946

it doesnt take all that to make a web page I thought....guess im wrong...
>>
>>54195005
People don't have java installed on their computers.
>>
>>54195055
The server side is commonly written in java.

I don't know if people use applets anymore, though.
>>
if i read "javascript the good parts" will i be ready for a web dev job?
>>
>>54195023

You can make a basic web page with zero javascript or css knowlege. For an interactive web application over a certain level of complexity, you're shooting yourself in the foot by ignoring tools that already exist and making everything from scratch.
>>
>>54195080
The real question is: can you make what you want to make?
>>
>>54192702
>>cheap vps hosting in most western locations
>not openshift
wtf?
>>
>>54195096
Beyond that, there are a lot of security issues you can introduce if you aren't using a framework and you don't know what you are doing. Using a framework won't mitigate threats, but it will make it easier.
>>
File: damn damn damn.png (72KB, 1024x768px) Image search: [Google] [Yandex] [Bing]
damn damn damn.png
72KB, 1024x768px
>>54194895
>>54194895
ahhh I see what you're saying with the W3, problem is now that I have the CDN
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"></script>

even with no additional script it just loads forever, is there a certain order or link i'm missing?
>>
guys WTF!!! the <canvas> in my chrome just suddenly disappeared, I literally did not change any of the code at all and it's still showing fine in Firefox. What is happening? I can still see the square frame of the canvas when I select all but its just a blank canvas!!
>>
>>54195080

No.

It's a shit book for learning unless you are an experienced developer and just need to learn javascript.
>>
>>54195473

i have some experience with programming

how can i take javascript and apply it to web dev? what should i make for practice?
>>
I really want to add features to my site, but no one uses it: http://www.nask.co

how would you people advertise it? is it just too dumb, useless, ugly, and/or bad?
>>
I'm a CompSci student a year into my degree with basic programming skills.

I'm thinking of making a web app that provides cheap vacation ideas based on currency inflation data. This would basically just be taking in inflation from an API, doing some simple math and displaying recommendations to the user based on their criteria.

I've managed the very front end of websites before with wordpress and Joomla but never and programming. Does anyone know the best kind of tools to learn for the project I'm considering?
>>
File: 1460610965419.jpg (645KB, 853x1280px) Image search: [Google] [Yandex] [Bing]
1460610965419.jpg
645KB, 853x1280px
Guys how I learn Wordpress/Drupal/Joomla? I know they're shit but I need a fucking job and some company here is hiring offering $500 per finished project. Turns out there aren't any job posting for cutting edge technologies in my South American city.

Have an asian girl.
>>
>>54195854
>Turns out there aren't any job posting for cutting edge technologies in my South American city.
weird... what city?
>>
>>54195928
Santiago. Any position more involved than that wants at least 2 years experience which I don't have. Or maybe should I just lie?
>>
>tfw /wdg/ motivated you to quit smoking weed and go back to school

Lel thanks guys see you all in SV
>>
>>54195965
ja, yo tengo el mismo problema :/
imagino que habría que mentir nomás...
>>
>>54195965
>la wea
Try freelancing for UUSS/Europe clients.
>>
>>54196154
how? I've tried searching for remote positions, and couldn't find much at all
>>
>>54195854
https://www.youtube.com/playlist?list=PL221702A605CAADA9
>>
>>54195965
>Any position more involved than that wants at least 2 years experience which I don't have. Or maybe should I just lie?
the reason ALL web dev ads say they want 3 to 5 years experience is to get rid of basement dwellers like you who think they can fake experience by doing a fizzbuzz
>>
>>54196332
I don't have experience either. I'm going to head full on this week to learn this shit and then apply saying I've 2 years of experience.

Fake it till you make it.
>>
What do you guys think about ZK for Java applications? I'm currently attending a workshop of it (payed by the company I work for). Do you know if it's compatible with REST? The more I search, the more I found there's no too much information neither about ZK nor ZK consuming REST.
>>
File: graphes-Perfs-mean.png (34KB, 640x480px) Image search: [Google] [Yandex] [Bing]
graphes-Perfs-mean.png
34KB, 640x480px
daily reminder if you aren't using git-subrepo you don't know shit about version control

>https://github.com/ingydotnet/git-subrepo/blob/master/Intro.pod
>>
Is it bad if I understand C but am having trouble with Javascript? i tried a few of the resources and I don't really get a lot of the advanced concepts.
>>
>>54198864
For me, I can read all I want about a language, if I don't practice, I won't learn anything. Practice and have personal project to work on, the more you do, the more you'll understand the concepts if you're not simply copy/paste'ing.
>>
Opinions on /wdg/ and /g/ as a whole, and opinions in a real world differ so much that you need to be really careful about who you will trust.

Let's take CMSs for example since we are in /wdg/. If you ask here is it worth to learn it, people will shit on it and call you Pajeet. On the other hand, what I can see and hear in real world is that WP is basically a must have for almost every small to medium sized business and if you are not using it something is not right (exaggerating a little but you get the point). In business world you almost never have time and need to code everything by hand with web assembly. You can use shitton of analytics and other plugins, include jquery and a few other libraries and still optimize you SEO so your website ranks high in Google and is fast as fuck. Not to mention that with that knowledge, accompanied with some marketing and design skills, you can make tons of money. But you have to know what you are doing, because actually being good at it is not easy.

Not to mention all the other memes that /g/ is spewing, but all of them are just that - memes. Everything here is a meme. Only like a dozen of people are not trolls/autists so you have to be careful about what you read here.
>>
>>54198965
I only have one project I want to do and it's quite big. I don't want to use javascript to make a website but use it as an actual programming language.
>>
>>54198976
Nobody here has any fucking idea what they are talking about. This place is full of charlatans.
>>
>>54199020
I meant have some kind of project in JavaScript, not your life-long project you want to do.
>>
>>54199079
I have a lot of trouble coming up with projects. It's the hardest thing for me. I don't suppose you have any suggestions?
>>
>>54199090
search for "programming challenges" in Google Image
>>
>>54199112
I've done most of those. They aren't good for learning a particular language either.
>>
File: 1458782968761.jpg (1MB, 2448x3264px) Image search: [Google] [Yandex] [Bing]
1458782968761.jpg
1MB, 2448x3264px
>>54198976
>in real world is that WP is basically a must have for almost every small to medium sized business
this is a load of shit. why does every SMB need a blog? why do they _need_ all the plugin shit to cobble together some feature?

In my experience as a professional(yes, i have a job, not some freelance nigger looking for an easy out on every project) half the time we bring on a client they're running WP, they come to us because of how much they hate this software, it's normally been setup by pajeet on some shared hosting clusterfuck with zero support. We blow all that away and convert probably 80% of these sites to just flat HTML since the clients either have no need to constantly publish new content, or they don't understand how to because let's face it, WP has a shit UI. They would much rather email in a list of changes and have it just happen, not fuck around with plugins all day.

>You can use shitton of analytics and other plugins, include jquery and a few other libraries and still optimize you SEO so your website ranks high in Google and is fast as fuck. Not to mention that with that knowledge, accompanied with some marketing and design skills, you can make tons of money. But you have to know what you are doing, because actually being good at it is not easy.

Why is this WP specific? there are literally tons of frameworks that offer this, how fucking hard is it to embed the google analytics code? how hard is it to just use jquery or any other meme framework? Making "tons of money" has nothing to do with the technology, it's how you're able to sell your work to the client. If you want a lot of cheap jobs fast then fine, go use WP and give the client a generic blog/CMS and tell them to go at it. If you want to actually retain customers though you've massively over simplified the process.

pic related, literally you.
>>
>>54198976

you learn a lot by making your own cms from scratch you faggot. certainly more than wpajeets who duct tape together a couple of wp plugins and call it a day.
>>
>>54199149
And you still don't understand Javascript? That's weird.
>>
>>54198976
You must be talking about particular or small business that needs a small website. If you work for a solid company, you'll never touch WP. So I guess it depends on what kind of job you want and who's your client.
>>
>>54199164
>wpajeets
lol

But seriously fuck WordPress. A lot of my early sites from when I was first freelancing run on it and the pain I've had over the years supporting them have made me hate WordPress with a burning passion.

>Built in theme editor, totally not a security issue
>Uncurated plugin ecosystem with no quality control
>Plugins regularly break the site and introduce malware
>Any server running WordPress plugins is liable to become a spam mail server and all the domains on that IP blacklisted
>The type of client paying for a WordPress site probably has no need of a CMS anyway
>>
>>54199284
The problem is you can do those without using any of the advanced features of a language, and if you don't understand the advanced features you won't know how to apply them to a problem in a useful way. A good project will require the features to solve it.

I think the worse part is there's two or three ways to do things and I don't know if there's a difference or what they equate to. For example, is there a difference between adding a property to the declaration or into it's prototype?
>>
>>54196069

why give up the weed tho? i smoked through school and still smoke while i have a job
>>
>>54195281
I'm not sure if jQuery mobile supports jQuery 2.2. Try using 1.11 instead.

http://blog.jquerymobile.com/2014/10/31/jquery-mobile-1-4-5-released/
>>
File: 1460595484772.jpg (377KB, 1680x1050px) Image search: [Google] [Yandex] [Bing]
1460595484772.jpg
377KB, 1680x1050px
Currently I have a single page app for an accounting web service. You log in and download the entire app. This is getting cumbersome and it's mostly unnecessary.

I'm splitting the app into sections,

- Accounts
- Payments
- Expenses

so that you download a separate HTML page per section and only the relevant scripts.

So far building and managing the app has been very simple because it's just one big program (written with an MVC framework). Now I understand there will be some overhead in dealing with a modular app.

Can you recommend some tools/practices for working with many components? For example, conditionally adding, concatenating and minifying js files; lightweight/minimal alternatives to large MVC libraries like Ember; avoiding common pitfalls...

Links to pages, blog articles, anything else appreciated.
>>
How do I use an LGPL 2.1 PHP library (PHPMailer) in my project without getting legally buttfucked? I'm really horrible with this shit.
>>
>>54199884
Just write a backend dude, whenever you need data stored on the database just do an Ajax request. Seriously it's for the better, whoever works on your site next will thank you.
>>
>>54199984

The backend is already a pure REST API and completely separate from the view (the website).

The server sends you a HTML page and a JavaScript program that gets data from the server to render page elements (using Ajax).

I don't like this Single Page App model and I'm transitioning to a more normal website where each page is actual HTML page.
>>
Do you guys prefer .net or .xyz ?
>>
>>54200165
I feel like xyz was created purely so google could register abc.xyz
>>
>>54200165
My portfolio site uses .xyz

I like it. It's uncommon enough that you can still get pretty much any domain you want, it's not something retarded like .ninja, and it's dirt cheap compared to other hipster domains like .io

All in all I'm pretty happy with it. Being so cheap means it's easier to justify getting domains for some personal project that you know is never going to make any money.
>>
daaaamn jQuery is nice
>>
>>54200750
hi welcome to 10 years ago.
>>
>>54200750
fyi not using jquery is the new using jquery
>>
>>54199887

!!! PLEASE RESPOND !!!
>>
How long did it take you guys to git gud enough to make some money from web dev?

Started learning a few weeks ago, obv would like to eventually make money from it.
>>
>>54200803
It's too late, anon. The software licensing police are already on their way.
>>
File: Clipboard05.png (57KB, 1385x410px) Image search: [Google] [Yandex] [Bing]
Clipboard05.png
57KB, 1385x410px
I'm trying to use 4chan API ( https://github.com/4chan/4chan-API ). Why doesn't this work? I can't understand this CORS shit.
>>
File: sweat frog.png (102KB, 241x228px) Image search: [Google] [Yandex] [Bing]
sweat frog.png
102KB, 241x228px
>>54200826

B-but I don't want to suck RMS's cockmeat sandwich for the rest of my life.
>>
>>54201005
what lang is that?! why are you using backticks for strings?!
>>
>>54201050
it's javascript, that's how string concatenation works now.
>>
>>54201066
fuck i'm old
>>
>>54201005
Why are you even setting that option?
>>
Anyone with experience in using graphs (nodes, edges) and web dev?


I want a feature where users create their own directed graphs in a web app, and then will be able to retrieve them later.
Are there any frameworks you recommend? I hate jQuery, so let's not have that nonsense.
>>
>>54201460
use morrisjs. google that shit
>>
>>54201460
I'm playing with this now:
http://js.cytoscape.org/
>>
>>54195425

Is it empty? Chrome has an annoying habbit of removing empty and invalid tags
>>
>>54199884

>conditionally adding, concatenating and minifying js files

Don't do this.

The user will be downloading a new, large JS file on every page. Minify all JS but only concatenate things that will always be loaded together

Concatenation is going to become a thing of the past once HTTP/2 gets widely supported anyway.
>>
So I've watched this: https://vimeo.com/97519516

How much of it is still relevant?
>>
File: 1461344606175.webm (462KB, 250x250px) Image search: [Google] [Yandex] [Bing]
1461344606175.webm
462KB, 250x250px
Hi,

Can anyone explain to me what Docker, Foreman, Bower and Chef are about and why people can't just use Bash?

Thanks in advance
>>
>>54202258
*Bash and VM images

sorry about that
>>
>>54201762
I removed the css from it and put it again and it worked. I guess it was a bug or something.
But alot of a times when the page is inactive for a while the canvas gets disappeared from Chrome and when I change tabs it reappears is there anything to do about this or its just chrome?
>>
>>54201460
d3.js mate
>>
Up until now I haven't been taking the front-end stuff seriously, and did my best to ignore all the fancy shit like gulp/requirejs/node etc. I've written everything in one big js file, but now it has become impossible to maintain. I've started using Knockout.js but it quickly became unmaintainable too.

Is there a good resource (blog or whatever) to get up to date with all the front-end stuff? I've got the back-end covered.
>>
File: Clipboard01.png (59KB, 1600x900px) Image search: [Google] [Yandex] [Bing]
Clipboard01.png
59KB, 1600x900px
>>54201460
>>54201557
>>
>>54202480

Never really been a big fan of heavily modularised class heavy approaches to javascript. Few sites use enough JS for that to have a benefit.

I find it's generally rare for you to need more than a general.js for universal functions and then just have js files for each section of the site.
>>
>>54202561
Agreed. But I'm building a dynamic web application (SPA?) so I really need to make use of all the fancy stuff.
>>
>>54202480
find a framework that lets you write components then start dividing your app into components
>>
>>54201481
>>54201557
>>54202457
>>54202507

Well, I've checked out each and every one of those before. Played a little with the demos.

But I can't for the life of me figure out which one to use!
>>
>>54202597
Check this out https://github.com/yeoman/generator-angular#readme

It generates you a basic structure for the front-end app and handles stuff like concatenating the js files, minification, compiling scss, and a whole lot of other stuff. My company uses it a lot.
>>
>>54202870
Then there's also the issue of storage.

I'm using postgresql for the rest of my app, and I'd rather shoot myself in the foot than use neo4j or another graph database on top.

Have any of you used or tried something like networkx, graph-tool or igraph?
>>
>>54202936
you can store graph data in sql databases easily dude
>>
>>54202914
Anything like this for knockout?
>>
>>54203117
but querying them is a bitch.
>>
js trick:
use the
return!!
keyword to return a boolean representation of a value
return!! 1; // returns true
return!! 0; // returns false
>>
>>54203818
Understandable code > short code. There are tons of little tricks like that (~~ to floor a float, for example) but they make your code an unreadable mess for someone else (or future you) to figure out.

return value ? true : false;
isn't much more to write and it's a lot clearer.
>>
>>54203818
you're wrong. return!! is not a keyword.

it's !! in front of an expression to get the boolean representation.
return!! 1; is being read as return !!1;
>>
File: me.gif (278KB, 480x270px) Image search: [Google] [Yandex] [Bing]
me.gif
278KB, 480x270px
>>54203986
>>54203996
tricked lol
>>
What will the next big thing in 2 years?
>>
File: db0.jpg (40KB, 349x642px) Image search: [Google] [Yandex] [Bing]
db0.jpg
40KB, 349x642px
>>54204009
>>
>>54203986
return Boolean(value);
>>
>>54203986
sorry dude but your reasoning is complete shit. i could use your reasoning to take it all the way to
if(value == true) {
return true;
} else {
return false;
}
>>
>>54204043
WebAssembly
VR
IoT
Drones
Home Automation
Ur mum
>>
>>54204095
You should be doing
if (value) { 
instead of comparing to true, but other than that what you wrote is perfectly fine.

>>54204089 is also perfectly valid.
>>
>>54204190
but
if (value) {
is an unreadable mess anon
>>
>>54204099
>WebAssembly
>Running unverifiable blobs of binary code from random websites
>>
>>54204302
wasm is just interpreted bytecode
>>
>>54204370
>Running unverifiable blobs of interpreted bytecode from random websites
>>
after months and perhaps years of messing with webdev things, I just realized that angularjs is supposed to REPLACE jquery. I didn't want to learn it because I thought it was related to the backend somehow...

fucking crap. why am I so slow? ;_;
>>
>>54204302
minified and/or obfuscated JS is just about as cumbersome to reverse/verify.
>>
>>54204625
don't worry about it, just try to get a position in lower/middle management and you'll be fine :P
>>
>>54204625
>angularjs is supposed to REPLACE jquery
never heard that before. as far as i know iQuery won't be dropped anytime soon.
>>
>>54204625
It doesn't replace jQuery necessarily. They're two different tools for different things.
>>
File: flex.png (50KB, 640x400px) Image search: [Google] [Yandex] [Bing]
flex.png
50KB, 640x400px
Usual lurker.
basic knowledge of vb, C , Java

taking the java, html and CSS lessons on Code academy and eventually will start Ruby+ (for web apps)
plan to move from web dev to web apps

ama , i'll always be watching lol
>>
>>54205021
ok
>>
>>54193489
>>54193521
>>54195854

i feel like anyone with basic code experience can learn a lot from the online learning sites (for free)
>>
Hi there,

In my webpage, after the form is filled, I have three INSERT INTO three different tables.
I'm testing if the previous one went well to proceed, but if the next one fails I wish I could undo the previous INSERT(s).
How do I do that using PHP/MySQL? I mean, in a better way than using DELETE.

Maybe there's a way to emulate the insertions and if all went well, then we proceed.
>>
So why exactly would I use node.js over ASP MVC?
>>
>>54205195
Analyze the entries before inserting, Inserting should be the last operation, ideally.
>>
>>54205146
>54193489
here. I completed code academy's HTML/CSS course last night. Took me about 2 or 3 hours forget. I still feel a bit empty though, they really didn't cover advanced elements and page formating all that well.
>>
>>54205366
w3schools.com

learned html css javascript and now jquery, it has probably everything you need
>>
>>54205414
Woah, this seems great. Thanks man!
>>
>>54205472
tfw can't tell if sarcasm. cause idk how the fuck anyone who does webdev for even a week wouldn't know about w3c
>>
>>54205351
It already is the last operation, but in case it fails for whatever reason?

Today, it simply was a typo in my code, but I don't know in the future if the sql fails for whatever reason (not neessarily because of the data but other factors).
>>
How would one code with a hangover?
>>
>>54205195
Transactions
>>
> tfw no web dev job

It's been over a month now and not one email.
>>
>>54205366

html & CSS courses
PLUS
the applied website building lessons.
application (no pun intended) is key


I'm also >>54205021
but recently while doing these lessons i've been making countless remakes and projects.
>>
>>54205730
Drink 2 more beers and you're good to go
>>
>>54205857
I almost threw up lunch at the thought.
>>
>>54205789
post your resume and/or portfolio and we'll tell you what you're doing wrong.
>>
>>54205872
Pussy.
>>
Where do I start with Codecademy if I have no prior programming knowledge? What course should I do first?
thanks
>>
>>54205873
I know what I'm doing wrong. My github has only 2 projects in it. I'm making an API and using APIs to build it.

I own a literal meme website (tfwnogf) and I don't want to add it to the portfolio. It's also broken as fuck right now anyways.

>>54205937
I'm at work though.
>>
html / css
>>
>>54206107
NaN
>>
is making money with ads still a thing or is everyone using adblock these days? and what are some legit ad services or should stick with adsense?
>>
>>54205747
That's it, that's what I need, thanks.
>>
>>54206180
If you're lucky you might break even with server costs.
>>
>submitted my cv to google today
wish me luck lads
>>
>>54206180
Ads are still good because ad blocking isn't very big on mobile devices yet. Half of my sites visitors are on mobile.
>>
>>54206282
>server costs
You mean the $5/mo it costs to host a site? Oh baby, I hope he can match that!
>>
>>54206282
At 3k visitors a week I made 15 a month which is 3 times the server cost and I didn't even come close to maxing the resources.
>>
>>54206180
Yeah. I remember there was an IRC where guys would give out tips for optimizing their site and driving unique visitors. I rue the day I fell out of the loop and completely forgot the channel because quite a few of them were running basic blogs and making $2,000 - $3,000 a month off ads alone.
>>
Brackets is a piece of shit.

It now hangs and crashes on startup 9 out of 10 times and I have no idea why.

I'm not paying 80 dollars for Sublime. What should I use?
>>
can someone explain to me the fucking point of learning angular.js? I just can't make sense of it, I don't get why I should use it. and a shitload of job postings require angular ;_;

>>54206282
openshift is free
>>
File: 1392495026192.gif (2MB, 190x190px) Image search: [Google] [Yandex] [Bing]
1392495026192.gif
2MB, 190x190px
>>54207064
>i'm not paying $80 for sublime
>>
Anyone ever freelanced before? Is it worth it? I was looking at UpWork to do some random jobs. How much Node.js should I need to know to get started doing jobs in that?
>>
>>54195062
i have to use GWT at work, which is basically java being converted to javascript.

it fucking sucks.

just wanted to get that out of the way
>>
>>54207096
https://en.wikipedia.org/wiki/AngularJS
>>
>>54207096

there is no point. All these js frameworks are a meme.
>>
do you use jquery mobile ?
>>
I am a studebt and saw an ad in the jobsection of our college.
They want a guy who codes in java script and php or something and pays 30€ a hour.
What the fuck?!
How easy can you get into webdev in general?
I really need more money to live from than 450€ a month.
>>
>>54208100
>How easy can you get into webdev in general?
Read the OP, senpai. There's literally a
> How to get started
section.
>>
>>54207096
>Openshift is free

Didn't know that. Can I host my WP blog there? Is that 1GB of storage that I see? Is it even worth doing it temporarily? I need some free hosting and the other option is Heroku but I don't know much about them either.
>>
>>54208215
Both of those are way overkill for a blog. Doesn't wordpress offer free hosting?
>>
>>54208215
>Can I host my WP blog there?
I suppose, yes. not sure how difficult would be to set it up, though...

here are some tips from the openshift blog itself:
https://blog.openshift.com/12-tips-for-hosting-wordpress-on-openshift/
note that they are using old versions of php. if you want to run a faster, newer php version, you'd have to use the DIY gear and install things manually
>>
>>54208215
oh...
from the comments:
>Mark Berry
>I was looking forward to trying WordPress on OpenShift, moving from a shared host. I have no interest in maintaining a local LAMP server and using git; I just want to manage it online as I always have. But after deploying the quick-start, I’ve discovered that the structure of app-root/data is non-standard for WordPress, with plugins, themes, and uploads at the root level and not under wp-content. So I won’t be able to bulk-restore the current site, and I guess I’ll have lots of changes to make since all photos etc. will have changed paths?

>Is there a guide for migrating existing sites? I’ve seen several references to http://www.cataclysmicmutation.com/2012/06/migrating-wordpress-to-openshift/ but that no longer exists.

>Offirmo

> Completely agree. The strange file structure breaks a lot of plugins, most importantly backup/restore plugins used to move the site between dev and prod. This is a no go. Too bad…
>>
>>54195238
They were talking about frontend you mong, if someone's site has "security issues" because they're not using a js "framework", then they're a fucking retard. It shouldn't even be possible for that to happen.
>>
>>54207096
> the fucking point of learning angular.js?
A Model-View-Controller framework, that does all the "view" part for you and some of the controller part for you. You never directly interact with elements (unless you are building some custom directive). It automatically detects when items have changed, so you don't have to worry about that either.

In the js:
$scope.jobPostings = $http.get('/jobpostings');
In the html:
<li ng-repeat="job in jobPostings">
<h2>{{job.title}}</h2>
<p>{{job.description}}</p>
</li>

And you have a complete working system that goes and fetches data from the server, translates it to JSON, creates an appropriate number of li elements for each object in the JSON array, fills data into the correct spots while sanitizing the input. Additionally updates in the javascript object will trigger to the dom and visa-versa.

Visit their webpage and look at their examples: https://angularjs.org/
>>
>>54207529
Most of the freelance websites are filled with pajeets and shitty jobs that underpay massively. Good freelance jobs come through personal contacts. Also Node.js is overrated and actually has relatively few jobs.
>>
>>54207064
Sublime and hit "okay" every 50 saves, or just google sublime licence and use the 2nd result on google.

Or you can try Atom, but it also hangs and crashes, especially on big files
>>
>>54208467
Probably because WP is shit in handling paths and urls.
>>
>>54206092
Github isn't everything. What are your connections? Have you done any networking? Post your resume (if you are afraid of 4chan, just change the name/identifiable info)
>>
>>54208209
Yeah I know.
Just wanted to know some tales of people here about their journey and SHIIIIET!
>>
>>54208650
thanks

guess the guide I followed is shit, and doesn't explain much at all... or I'm just dumb. or, perhaps, it's the fact that I detest JS. :/
>>
File: 1415293335974.png (86KB, 499x499px) Image search: [Google] [Yandex] [Bing]
1415293335974.png
86KB, 499x499px
How the hell do I break down skills on a resume?

Should I group everything by framework, i.e. Rails requires HTML, Ruby, etc OR should I list everything out without descriptions?

For a resume I need money NEET bux isnt cutting it
>>
>>54207361
Surely you've been on the internet long enough to know how to get the full version for free baka.
>>
>>54209134
why detest JS? It's half functional, half imperative, making it a fun language with tons of neat features. Just recently Java with streams and C# with linq is starting to get into functional.

let add = (a, b) => a + b;
[1, 2, 3, 4].reduce(add); // 10
['a', 'b', 'c', 'd'].reduce(add); // "abcd"
>>
>>54209156
On my most recent resume I have:
> Highly proficient with JavaScript, CSS, and HTML, including the AngularJS framework, the LESS preprocessor, and mobile first development
> Very experienced with Java, C++, and SQL, include Oracle, SQLite, and MySQL. Also experienced with jQuery, SASS, and Twitter Bootstrap
> Knowledgeable about Windows and Debian Linux environments, and servers including Tomcat, Node.js, nginx, and Apache2
> Familiar with C#, Python, and PHP, and MongoDB NoSQL databases

The version before that I just did lists of things (two columns instead of " - " separated):
>Operating Systems - Windows XP/Vista/7/8; Red Hat/Debian Linux.
>Programming Languages - Java, C, C++, Python, PHP, JavaScript.
>Web Technologies - HTML, CSS, JavaScript, Less, Grunt, Bower, Npm, Angular, jQuery.
>Databases - SQL, SQLite, Oracle, JDBC, MongoDB.
>Platforms - Tomcat, Apache, Node.
>Source control & bug tracking - Git, Subversion, Jira
>Miscellaneous - Eclipse, Netbeans, Sublime, Visual Studio, Office Suite, Gimp

Both versions got me a job. Which do you think looks better?
>>
>>54209232
That's the point, gifted child
>>
>>54209350
first is better for normie interviewers
>>
>>54209350
I'm not the guy you replied to;
The first set breaks it down and gives an idea of what you're most comfortable with and what you're only familiar with. The second set gets straight to the point though by using less words and that's better imo. I usually do it the second way because I tend to explain more in the cover letter.
>>
>>54209328
>half functional
>half imperative
half a piece of shit, too. and half of what makes the web and web browsers so shit
>>
>>54209647
Other than you think it is, why is it so bad?
>>
What should I make?
>>
>>54209885

>tfw you struggle with this as well

i even have a job but i still want to make something cool on my own. Just dont know what.
>>
>>54209885
>>54209899
homemade dragon dildo
>>
>>54209899
Something that worked for me always:

What do you want? Is there something that should exist? Does it sound too retarded? Fuck that. Still make it happen.
>>
File: 2r23.jpg (18KB, 388x392px) Image search: [Google] [Yandex] [Bing]
2r23.jpg
18KB, 388x392px
>>54209899
>tfw when you have many ideas but still learning and can't make them all right now
>>
>>54209665
because everyone on /g/ says it's bad lol
>>
>>54209974
When I didn't know anything about web dev I used to have all sorts of ideas, now that I do I realise that I'd need a huge investment to make them come true anyway.
>>
>>54209665
>1 shitty page
>100+ MB
or
>website NEEDS JS
or
>page breaks because of shitty servers
or
>100% CPU in a shitty page
or
https://www.destroyallsoftware.com/talks/wat
or
> [1,2,10].sort()
[ 1, 10, 2 ]


and so on
>>
who ableCommerce here?
>>
File: 4.jpg (51KB, 600x800px) Image search: [Google] [Yandex] [Bing]
4.jpg
51KB, 600x800px
>>54209885
>>54209899

airbnb for dildos
uber for dick sucking services
instagram for dick pics
>>
>>54207064
webstorm
>>
Okay cucks. I have learned this the hard way.

DO NOT FUCKING USE JQUERY.

It's fucking 80kb and if you use jQuery you are gonna end up using which is more than 200kb.

Write your own javascript and do not use this filthy fucking thing.

Please tell me if there is a lightweight alternative guys.
>>
>>54210437
http://vanilla-js.com/
>>
>>54208729
I'll make a 4chan version when I get home in an hour. It's not impressive by any means. I'm trying to find entry-level work, but it's obviously not specified.
Gimme a bit.
>>
>>54209350
You know a lot of shit. God damn, dude.

What were you doing that had you learn Oracle?
>>
Anyone know if I can use PHP to CREATE a database... >tfw create in caps ...and load a .sql into it?


I have a large database that I'm trying to make as easy as possible to install. I don't want to have to specify column names and datatypes. I would rather they just run an install.php page
>>
>>54210471
Thanks a lot!

>mfw that download feature
kek'd
>>
>I'm a webdev who built a Wordpress ecommerce with +10k SKUs and has +100 plugins in it

Feeling pretty proud of myself.
>>
>>54210108
>100+ MB
Doesn't happen. JS is super small, especially if gziped and minimized.
For example Angular.js is 63KB, jQuery is 32kB. You could get your page in around 3 seconds on dial-up, then it's cached for a year or so.
>website NEEDS JS
Yeah, what's the problem with that
>page breaks because of shitty servers
Has nothing to do with js at all.
>wat
That idiot has no idea what he is talking about. He confuses "object" with a block of code. Even in Java, C++, and other languages an opening brace on an empty line defines a block of code.
{
var x = 3;
}
Even if there isn't a control statement like if, for, or while.
so {} is an empty block of code in multiple languages, including javascript. Thus that + changes from a binary addition to a unary to number operator.
>sort
Yeah it's lexographical sort by default. It needs to be due to arrays being able to hold any sort of values. You can easily change it to numeric by:
[1, 10, 2].sort((a, b) => b-a);
>>
>>54210471

this is awesome

they did that perfectly.
>>
>>54210573
I bet you are also proud of your farts smelling like cum.
>>
>>54210573
>jeff_goldblum_fighting_Cancer.png
>>
>>54210515
I had a job in college that used oracle. It was okay, but those fucking error messages were absolutely useless. There were like:
ORCL 354 There was an error around '
And the true error is that the table was misspelled.
>>
>>54210546
Yep, you can do that.

just write an init.sql with your commands and whatnot, then file_get_contents() into a PHP variable, then execute it as normal.
>>
>>54210573
How does it feel like to know you're vulnerable as fuck?
>>
how hard would it be to make a 4chan clone with raw javascript?
>>
>>54210668
>Wordpress
>Vulnerable
From all /g/ memes, this one is the best.
>>
>>54210651
Do you know how to load a large .sql database with PHP?

I tried changing max_execution_time to 3000 from 30, but it still times out.

People won't know how to do that anyways. Should I divide the table into chunks or would it still timeout?
>>
>>54195628
Well uh, the "say" command on OS X pretty much does the same thing
>>
>>54210725
Even if Wordpress itself weren't insecure, the 100+ plugins presumably coupled with custom code make for a great recipe for getting pwned.
Also PHP.
>>
>>54210707
Easy peasy. 4chan does not heavily depend on javascript, yo.
>>
>>54210579
>>100+ MB
>Doesn't happen.
sorry I wasn't clear. I meant memory.

add to the list,
>security

anyway, if you don't see the problem with JS, then fine. I dislike it.
>>
>>54210471
>Vanilla JS is so popular that browsers have been automatically loading it for over a decade.
my sides have left orbit
>>
>>54210993

what do they use? php?
>>
>>54210753
You could try dividing it into chunks, or loading it with a python script or something and importing it.
>>
noob here

after doing some reading, the consensus seems to be that in order to stay motivated while learning about programming of any kind, you should have a goal project that you keep in mind and try and build

basically i want to make something like soundcloud but less shit and more lightweight

what would you use to accomplish this?
>>
>>54211036
They don't make that public, but I think I remember seeing somewhere that it's a LEMP stack.
>>
>>54211248
I would start by making a CRUD app that stores music files + metadata and a user account system.
>>
>>54195854
>tfw no cute web designer asian girlfriend

I develop, she designs.

I could imagine 6 months into it though "BITCH WHERES MY FUCKING DESIGN, I NEEDED IT YESTERDAY." Typical couples banter.
>>
What the fuck is the point of Openshift if its almost impossible for anyone to understand? I tried uploading my website the past three days with zero success. I got to FileZilla (connected with my private key), then up to the "git add ." part, got a fatal error and am stumped as fuck. Why do they have to make it so god damn hard? I might as well pay one.com if its going to be this hard.
>>
>>54211594
use ssh/scp
IMO, if you don't know how to use linux, don't bother trying to manage it
also, read the docs, there are some env vars that you need to use, and the paths aren't the normal paths that you have in linux.
>>
>>54211649
btw, you don't really need git, but... if you upload your files, run your app, etc., and then you use it, you lose your changes, so make backups before doing shit

how to use openshift, IMO:
- ssh to manage the server and see how things work and to learn the FS layout, scp to upload/download files, and so on
- use git to manage your project
>>
nodejs is stupid easy after working with java spring

old java spring especially, it's such shit
>>
Anyone know what kind of DB is used for a high traffic site like this?
>>
I am trying to resize a <fieldset> tag but it only works in Chrome, in firefox it has fixed height and activates the parent div hover effect from the outside. how can I fix this?
>>
>>54213031
are you trying to make your own clone of 4chan? if that's it, you could simply ask how to make one, or where to find it
>>
>>54213031

MySQL
>>
>>54213031
dude if you want to make a good website don't look at 4chan
>>
>>54213234
>>54213252
>>54213266
Not trying to clone it. I was just thinking about how much traffic this site gets, especially /b/, and it's almost always pretty fast. Just curious.
>>
>>54213483
It all depends more on your architecture, anon.
Take a look at how StackOverflow is composed:
http://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/
>>
>>54213483
it gets a LOT of traffic, and it's made in PHP, but at this point, it's a really expensive setup that would be much handled better by more performant languages. it also uses cloudflare, so it has a global cache.
>>
>>54201050
it is an es6 syntax for js
>>
>>54193068
I know that feels bro. 3 years of uni and I can't be fucked with anything.
>>
File: arrow-x.png (910B, 52x49px) Image search: [Google] [Yandex] [Bing]
arrow-x.png
910B, 52x49px
Anyone knows where can I get mock logos? I'm mostly looking for some simple vector stuff like pic related.
>>
I want to work something else.
>>
>>54193068
I'm in a similar position too
>Four years into uni, software engineering career
>Still doing second and thrid year subjects
>Webdev subject
>Subject's project is making a SPA webapp and a REST API with Bootstrap, Angular 2 and Spring Boot (and a bunch of other libraries for these frameworks).
>Even if I like it and find it very interesting, I struggle with basic shit like components, router pathing or even basic manual quality check.

It doesn't help that it's a project conceived for groups of four people and, due to various reasons, mine is only two (Myself and another guy).
I feel like I'm not ready to work in a professional company. I know I still have a long way as I still have to finish Uni, get the mandatory internship grant, make my own projects, etc...
But idk, some of my classmates already either have a job (or even their own company) or they have done some professional mobile apps released on Google Play, while I'm still figuring out basic shit and fearing the day I'd had some serious responsibilities.
>>
up
>>
>>54216771
I wanted to ask: Is woth it waiting for the full release of Angular 2 or should I learn AngularJS too?
>>
I don't suppose anyone is familiar with canvas/webgl or any resources that teach the majority of it with some "best practices"?

Ideally I'd like to have a managed context that falls back to canvas when webgl isn't available.
>>
>>54218285
I should also say, no frameworks. I'll be writing it all myself in plain javascript.
>>
>>54218263
Depends on how soon you want to work in webdev.

If less than one year then learn Angular and in the meantime stay up to date with Angular 2
>>
This right here is literal sorcery:

http://www.luckyorange.com/

Recordings are too good. Try out the free trial. I'll have to buy it one day when I'll have the greater need.
>>
>>54218466
I don't plan to work professionaly anytime soon, just making small projects on my free time to learn and gather experience on SPA.
>>
Do I have to use tags like <article>? Does it affect my SEO in any way if I use just a <div> with a class instead?
>>
>>54218989
How are they doing those recordings? Is there a way of programming that yourself?
>>
>>54193436
Yeah he is fine with it just being number and not in quotes
>>
>>54219034
> Does it affect my SEO in any way
Yes, depending on the layout of the site. Googlebots aren't smart enough (yet) to always figure out the context of the text they're looking at. Putting something inside an <article> is a way of telling them "The text inside these tags is a single self-contained unit about one topic". Then, if you have multiple <article>s, the crawlers can see that they aren't necessarily connected. Same thing applies with the other tags. If you put your navbar inside a <nav>, they know to check the links inside to navigate to different parts of your site, and also to ignore it when trying to look at your content. It also helps screen readers for the same reason if you give a shit about that.
>>
>>54219213
Cool, I'll tweak my HTML then. When I'm on a blog post page, should I encapsulate all the post content in the article (title, date, paragraphs) or should I just put the main content (paragraphs) in there?
>>
>>54209350
So /wdg/ agrees that it's the second one?
>>
I have a JS script in a footer in which I grab the id from a certain element and do something with it. Now, this element exists only on a single page, but not on the others.

The problem is that when I test my site for possible optimizations it warns me about that error but I don't know how to fix it. The script always executes on every single page. How can I call it just on a certain page when I'm adding it in the footer and then calling the footer from the main template?

And to be more specific, it's on WP. It should execute on a single.php, but not on other pages like front-page.php, category.php etc.
>>
>>54206294
Shouldn't google already have more detailed information about your life than your CV?

At this point they probably just contact guys they like that google for jobs
>>
>>54219271
I would put it all in there. You want the article heading to be associated with the content.
>>
>>54219457
What I did with mine was:
1. Declare a variable inside the footer (call it $additional_links or something)
2. Echo it inside the footer (wrap it in an if_exists() function)
3. On the page where you'll need that specific script, assign a value to the variable like $additional_links = '<script src="whatever.js"</script>'

It's hacky, but it works. It'll only get added on that specific page. Otherwise the variable won't be echoed.
>>
>>54196270
>https://www.youtube.com/playlist?list=PL221702A605CAADA9
60 videos to learn wordpress
>>
>>54219570
should be if_isset() function*
>>
Just came home from a job interview for full-stack web development position. I knew beforehand that i am waaay under-qualified but i went as a learning experience for future interviews when im older, and possibly to build contacts. Just to help you bros out here are some of the questions their tech lead asked me so you can prep for similar stuff:

Paraphrasing as im just remembering it:

-Obvious questions about previous experience in the field, no need to write here.
-Have you contributed code to any community/open source projects (github etc?)
-What does a good git commit comment look like to you?
-What are the upsides of using git?
-In your mind, what is the best way to comment code?
-What is your preferred language, and what is the downsides to it compared to other languages?
-How do you stay up to date on the latest tech and tools?
-When sending data to the backend, what is the most important thing you do as soon as it reaches backend?
-In this application you built before, tell me how data a user inputs gets handled backend.
-How do you handle static information or files?
-Have you worked in a team before?
-"Writes down some code" What happens if i put this code into an input field and send it to backend in a typical application you built? What problems will occur?

He then opened up a code example that i had to send him before the interview, and went through it with me asking me questions about it. He asked things like "How could this part here be improved? Why did you chose to do this here?" etc etc. Things he muttered positively to himself about my use of regex and escaping commands that were sent to shell. He did not like my overall structure (too many if statements).

Then he did something i did not expect at all and totally threw me off. He visited a site i previously had built and looked at the javascript. He then asked me what the difference is between three === and two ==, which i told him straight up "i have no idea". Quite embarrassing.
>>
>>54219570
Cool, thanks.
>>
File: image.jpg (52KB, 500x500px) Image search: [Google] [Yandex] [Bing]
image.jpg
52KB, 500x500px
Anyone working on some personal/side projects or something ?

I really want to help with whatever I can, so I can put it in my CV as working experience, I know front end stuff as well as back end to some degree, thing is I never graduated anything CS related or have any job experience so I am looking forward to that. But... they all want someone with at least few months background and few real world projects. Aside from my personal portfolio site and few blogs I've created there is not much but sample websites.

So I want to work for free and help with anyone that is working with MEAN stack or Java (since those are the things I know the most, C# or python is OK too but never used them for the web before)
>>
>>54219612
You didn't know literally the easiest question.

'===' - values AND types have to match to be true
'==' - only the values have to match to be true

Fucking github, I didn't commit anything to open source, and I don't really read any tech blogs. What am I doing in this study again?
>>
>>54219657
I made an e-commerce platform in php + sql. It's pretty basic but it works. I plan on developing it further in the coming months (it was a final year project, I'll continue working when I have more time).
Right now I'm trying to learn Angular2 by making something similar to quizzlet, with Node as the backend.
>>
Anyone know of an open source inventory tracking / POS api? Something like paytraq.
>>
>>54219612
I sat here and I answered every one of those questions perfectly without breaking stride. Too bad I can't always do that in an interview, although I've only had one so far.
>>
>>54219810
Post your answers so we can tell you why you're wrong
>>
>>54219836
On mobile, can't type that shit out right now senpai. Gotta leave in 10.
>>
>>54219703
1. How long did it take you?
2. Any place I can see the source?
3. Any literature/courses/videos for this?

I always get intimidated by this for some reason, and I know a decent amount of PHP. I'm also asking those question because I'm supposed to do a final year (bachelors) project too, and am just wondering how big/complicated is it supposed to be.
>>
>sass --watch style.scss:style.css
I use terminal for converting scss into css.
Is there a better way than this? Its not that it bothers me, I just want to be updated with new methods.
>>
I need some help with my SQL please.

Basically, I have 3 tables

Table Posts (id, ..., )
Table Tags (id, name)
Table Posts_tags (post_id, tag_id) [many-to-many]

When I want to get all posts, with the related tags using a LEFT JOIN (and a GROUP_CONCAT on tags names that I explode into a array later), it's fine but my problem is when I want to filter the posts by tags (multiple choices).

I used a WHERE tags.id IN (...) and it kinda works but if I do this in my array of tags names I only have the ones I filtered (while I want the other tags for that post too).

The only solution I found so far was using HAVING new_column_using_group_concat REGEXP "..." that searches all possible ids in the new column strings, but the expression is quite long and messy.

There must be an easier way to do that. Something must be wrong.
Maybe I could get all posts and filter in my script instead of SQL?
>>
>>54219329
I once had a conversation with a hiring manager (or something of the sort) for some software development company on /b/ (consider this a disclaimer).

Anyway, the tl;dr was
Your resume will be one of countless resumes received. It will first be looked at by HR people whose job it is to thin the herd. These people don't know much about the job you're being hired into so you should:
>Customize your resume specifically for the job application. A generic resume is more likely to be tossed out for many reasons including but not limited to: An applicant who took the time to customize the company wants the job more than an applicant who didn't. An applicant who sent in a generic application probably applied to many different places.
>Make sure to list all the languages related to the application. Don't leave out something because you believe it's implied (keep in mind these people don't know much about programming languages, they're essentially just seeing if you check all the right boxes).
>It's a good idea to e-mail the company a few weeks later if you haven't heard back. It lets them know you're still interested and makes you stand out from the other applicants. It also makes you look sociable. Again, don't send a generic email. You can find examples on the internet but don't copypaste them or you'll look like an even bigger asshole if they find out (the anon told a story about an applicant they turned away for that reason).

Once you get to the job interview is when you're actually getting assessed on your merits. Don't lie, be prepared, be confident, and try to act normal (if you come off as a weird creep they'll turn you away).

The anon went into more detail about their interview process and how they decided on people but honestly I don't remember any more.
>>
>>54219070
you can get mouse location with javascript.
Check it with a loop and if it doesn't equal what it did previously then record it.
Say you had the loop repeat once every 500ms, you could record total time between movements to get an idea of how long someone was on a single area.
>>
>>54219612
Shit.

What's a good way to get into open-source without fucking things up and having someone go "Why the fuck would you do this?"
>>
>>54205366
I'd say go on YouTube for a quick how to start a website tutorial(look for a short one)

Just so you can get a feel for actually getting a site to run, then just start playing around with html/css/js on side projects
>>
>>54219131
What's wrong with simply using
 
[{city:'London', distance:10}];
>>
Hello guys, how do I get a web development summer internship with no work experience? The only thing I can put on my resume is that I've attended 5 hackathons and link to my portfolio. I'm a senior in high school BTW (inb4 underage)
>>
>>54220166
>>54219612
Oh that reminds me of a question i forgot to write. He asked something like "If you were to contribute code to a community/open source project, how would you go about doing it?"

I just mentioned things like reading the code standard given etc etc
>>
>>54220166
Find a project you like and contribute. You're less likely to fuck up if you get personally involved in a project you're interested in.
>>
File: 1406344636001.gif (2MB, 323x386px) Image search: [Google] [Yandex] [Bing]
1406344636001.gif
2MB, 323x386px
had an interview a week ago and still not heard back from the company. don't think i was good enough in backbone.js for them, although they were hiring for a front end dev.

feels bad
>>
>>54220166
Easy, don't try to contribute something stupid.

Research the project first and become familiar with the codebase. If they provide a style guide, use it, otherwise, just try to match their coding style. Make sure your commit messages aren't retarded, there are guides out there for that.

If some random person starts trying to add features and massive updates to the project out of nowhere, they're going to tell you to fuck off, so start small by trying to fix a bug or something. In the github repo, there's an 'issues' tab, and some of them might be tagged with 'beginners welcome' or some such, so start there.
>>
>>54220364
Also, don't just contribute to something just to say you did. There's enough shit out there that you can find something interesting.
>>
wrote a very simple code in jsdiffle.net it didnt work
copy pasted in brackets it worked
huh ?
>>
>>54220364
>>54220377
Cool, thanks.

>>54220381
Click the gear next to javascript. Having it onLoad can break a lot stuff.
>>
>>54220381
What's the code?
>>
>>54195628
Just add them anon

Use it as a portfolio project and who knows maybe people will use it sooner or later
>>
>>54220407
it works now, what does "no wrap- in <head> or <body> mean ?
>>
>>54195628
I remember you.
>>
>>54195628
you should add a ":active " style to the voices menu
>>
/wdg/, I'm about to drop developing custom-sites for clients (not static, but actual applications), and start charging $700 for installing Wordpress themes. It's just so much less of a problem this way...
Talk me out of this bottom of despair pls
>>
>>54219935
that doesnt really answer my question but its still really helpful

I'm also trying to apply to small startups that are devoid of HR; which hopefully means I skip most of the bullshit.
>>
> forgot to add wordpress to resume.
> apply for wordpress themer memer job
Shit.

Im never getting a job.
I would seriously build websites for 10 an hour for months if it meant I wouldnt be ignored by HR because my lack of experience.
>>
In your own opinion and experience, can you list the most popular PHP frameworks from the easiest to learn to the most difficult? I'm curious, thanks in advance.
>>
>>54221365
Zend, Symfony, CodeIgniter, Laravel

In order of business popularity in my area.
>>
I'm working parttime as a webdev next to studying. I'm having about 2 years of parttime experience (that's about 1500h logged working time). What's the usual hourly wage for someone like me? I want to know if I'm being over- or underpaid.
Also, Europe.
>>
>>54220120
How do they record the screen though? It looks like it is recorded with screen capture program.
>>
>>54221560
Sorry to be dumb but I'm not sure if you're saying Laravel is the most difficult to learn (my initial question) or if it's just the most popular in job offers in your area.
>>
I'm thinking about something...

Do you guys know when you open .pdf in a Chrome and it shows you those tools and the top bar? And then it hides after a few seconds of mouse inactivity and reveals itself again when the cursor is close to the upper edge? Do you think that could be viable for a website's top navigation?
>>
>>54221677
That's what FFXIVrealm does, it works but can be annoying with some forum posts
>>
>>54221621
Read the last line of my post.

Also read from left to right like a native english speaker.
>>
>>54221714
Thx for mentioning that site so I could try it out.

Hm yeah, I think it could be problematic, not the best UX I'm afraid. I can't expect the users to know how it functions, it might create some confusion... I don't know, it's hard to say.
>>
>>54221727
Well, then you didn't answer what he asked for.
>>
New thread
>>54221822
>>54221822
>>54221822
>>
>>54221818
None of then are hard, faggot.
I am not making god damn pie charts to explain it. Fuck yourself.
>>
>>54221727
>>54221865
>being this mad, kek
Never asked for a pie chart. Why even answer in the first place then?
>>
>>54221865
Go be edgy somewhere else, mate.
>>
Can someone give my some advice on what programminglanguage I should take as my first, I do know something about batch/.bat but I want to really learn a language.
>>
>>54222783
For a website?
Work your way up: HTML, CSS / JavaScript / (PHP, Ruby, Python, Java)
>>
Yeah, I,d like that but I dont know where I can learn it, do you(I'm just some newfag so I dont know how to reply on your reply)
>>
>>54222915
You could try codeacademy I guess.
>>
Thanks for the tip, but do you tecomend learning code at age 15, is it to late already?
>>
>>54223157
Dude, click on the No. 5xxx to reply to comments, it's really not that hard, as for your question, no it's not too late. It's never to late to learn a new skill
>>
>>54223157
Code is not a gift given by nature so it's never too late.
>>
>>54223198
>>54223209

Thanks anons I think I'm going to start learning HTML.
Thread replies: 326
Thread images: 28
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK