[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: 255
Thread images: 28
File: wdg.png (1 MB, 822x552) Image search: [Google]
wdg.png
1 MB, 822x552
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 (74 KB, 500x377) Image search: [Google]
1418758286327.jpg
74 KB, 500x377
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 (252 KB, 950x712) Image search: [Google]
1458609463032.jpg
252 KB, 950x712
>>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 (413 KB, 674x1024) Image search: [Google]
1437755294691.jpg
413 KB, 674x1024
>>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 (2 MB, 3264x2448) Image search: [Google]
IMG_20160424_040855.jpg
2 MB, 3264x2448
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 (3 MB, 2432x2432) Image search: [Google]
IMG_20160424_041917.jpg
3 MB, 2432x2432
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 (68 KB, 600x563) Image search: [Google]
1429709597727.jpg
68 KB, 600x563
>>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 (72 KB, 1024x768) Image search: [Google]
damn damn damn.png
72 KB, 1024x768
>>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 (645 KB, 853x1280) Image search: [Google]
1460610965419.jpg
645 KB, 853x1280
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 (34 KB, 640x480) Image search: [Google]
graphes-Perfs-mean.png
34 KB, 640x480
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 (1 MB, 2448x3264) Image search: [Google]
1458782968761.jpg
1 MB, 2448x3264
>>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 (377 KB, 1680x1050) Image search: [Google]
1460595484772.jpg
377 KB, 1680x1050
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 (57 KB, 1385x410) Image search: [Google]
Clipboard05.png
57 KB, 1385x410
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 (102 KB, 241x228) Image search: [Google]
sweat frog.png
102 KB, 241x228
>>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 (462 KB, 250x250) Image search: [Google]
1461344606175.webm
462 KB, 250x250
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 (59 KB, 1600x900) Image search: [Google]
Clipboard01.png
59 KB, 1600x900
>>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 (278 KB, 480x270) Image search: [Google]
me.gif
278 KB, 480x270
>>54203986
>>54203996
tricked lol
>>
What will the next big thing in 2 years?
>>
File: db0.jpg (40 KB, 349x642) Image search: [Google]
db0.jpg
40 KB, 349x642
>>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 (50 KB, 640x400) Image search: [Google]
flex.png
50 KB, 640x400
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 (2 MB, 190x190) Image search: [Google]
1392495026192.gif
2 MB, 190x190
>>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 (86 KB, 499x499) Image search: [Google]
1415293335974.png
86 KB, 499x499
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 (18 KB, 388x392) Image search: [Google]
2r23.jpg
18 KB, 388x392
>>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 (51 KB, 600x800) Image search: [Google]
4.jpg
51 KB, 600x800
>>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 (910 B, 52x49) Image search: [Google]
arrow-x.png
910 B, 52x49
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.
Thread replies: 255
Thread images: 28

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.