[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: 23
File: 1459083043255.png (868 KB, 822x552) Image search: [Google]
1459083043255.png
868 KB, 822x552
OLD THREAD >>53712870

> 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.m.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: 1459317428149.png (106 KB, 841x1015) Image search: [Google]
1459317428149.png
106 KB, 841x1015
https://www.codecademy.com/learn

I've just finished 'Make a Website' and 'Make and Interactive Website'. Which of the these 9 are worth doing if I'm only interested in setting up a website?
>>
>>53763510
Learn SQL
>>
>>53763578
thanks my man, I appreciate it.
>>
>>53763510
HTML/CSS/Javascript.....


Javascript course is getting on my nerves though, I'm clearly not cut out for this. It's long as fug. Slowly losing my motivation after a little over a month...but I guess you can make that 2-3 accumulative weeks of learning since I was out of town for 2 weeks in the past month or so.
>>
anyone wants to become my senpai/tutor/slavemaster?
>>
File: Selection_607.png (115 KB, 295x133) Image search: [Google]
Selection_607.png
115 KB, 295x133
>>53763973
you're talking about the Javascript course on their website? Says 4 hours senpai.
>>
>>53763510
don't bother with those meme sites, make an actual website using those technologies, you'll learn 10x more than doing those retarded exercises that hold your hand as much as possible.
>>
>>53765099
>using those technologies
what you mean senpai? Using the skills I've already learned?
>>
>>53765122
those technologies that you desire to learn,
if you want to learn javascript then make a js heavy site, you'll learn while youre at it.
>>
>>53765136
grab a motorcycle before you know how to ride a bike

are you cereal senpai?
>>
File: lel_no.png (22 KB, 307x179) Image search: [Google]
lel_no.png
22 KB, 307x179
I really enjoy testing websites on legacy browsers.
>>
Any famous js rockstar developers hang out around here? I'm guessing substack or contra do.
>>
>>53765165
you didnt learn to cycle by just falling and trying again?

pussy desu
>>
One question

What is this theme in OP's image?
Would love to get it for my phpstorm
>>
>>53765244
Shitty theme #32383
>>
>>53765597
function setAllNodesToFalse($xml){
$nodeArray = $xml->getElementsByTagName('post');
foreach($nodeArray as $post){
//how do I set a child of $post's value to false? the below doesn't work
$post->getElementsByTagName("profpic")[0]->childNodes[0]->nodeValue = "false";

}
}


Indirect modification of overloaded element of DOMNodeList has no effect


Any ideas lads? I'm awful with handling XML, is there somewhere I can read about this shit that is consistent?
>>
>>53765165
>>53765122

A lesson on memeacadamy runnin through a language's syntax is like having the process of riding a bike explained to you, but youve never actually touched a real bike. You won't be able to actually do it until you try, fail and practice.

Open an editor now and make a webpage using what you've "learned". Then come back when you realise you have no idea how to fill that blank page, or how to actually solve a simple practical problem.

Memeacadamy doesn't teach you anything, it just gives you a false sense of accomplishment. Congratulations you successfully swallowed every spoonful of goop that they guided into your mouth while making airplane sounds... Now you're a chef, go cook a banquet for 20.
>>
>>53765864
I learned in memeacademy. It worked for me. It probably works for a fair amount of people.

Prove me wrong.
>>
anyone ever fucked with the closure library?
>>
I'm wondering how many of the new top level domains will disappear within 10 years.

Some speculate they would just be purchased by other registries.
But I think there is a good chance some new tlds will die.
Especially since most domains are owned by Chinese speculators are appear as unable to the majority of the end users. Making them uninteresting.

I think you also need like 50k registrations to break even with your tld.
>>
>>53766191
*owned by chinese speculators and appear as unavailable to the majority of the end users
>>
>>53766096
yep
>>
My dad's a gardener and his business' website has been down for the past month because the host said it was being attacked or something. He only told me this the other day and asked if I can design a new website for him. What he needs is a single-page website. It only really has to list contact information and be somewhat presentable. My dad isn't even accepting contracts atm so it's just to keep it up somewhat so the google searches don't lead back to nothing. BARE MINIMUM. I'm 100% free until Monay (Easter holidays). So without any prior knowledge of html, is this doable? I can dedicate probably like 8-hours a day to this for the next 4 days. Doesn't need to look good or be impressive.


Thanks lads.


Will also accept suggestions for where to learn the basics and how to prepare.


Note: he doesn't need to find a new cloudhost OR buy a new domain.
>>
>>53767083

Just use square space. 2nd best option would be to go and follow a Youtube tutorial that takes you from step 1 all the way to a completed website.
>>
>>53767204
This.

Something that simple you don't really need to learn how to design and build websites from scratch unless you plan on doing it more than once.
>>
>>53767083
http://pastebin.com/ysYrThvh
Paste this is notepad and save it as index.html
Follow some shitty tutorials. http://html.net/tutorials/css/
Website is done.
>>
>>53767973
wew

thanks fampai
>>
>>53767983
You might want to read up on some html before doing css.
Html is basically giving styling to things.
And with css you put that styling in a seperate file so you can reuse them.
>>
File: 1459241561001 (1).webm (972 KB, 480x270) Image search: [Google]
1459241561001 (1).webm
972 KB, 480x270
>>53767973

Just reading it now.
Holy Christ, you made this for me? Th-thanks anon-kun! I wasn't expecting anyone to be this generous.
>>
>>53768005
>made it
It's literally 1 minute work. But when you open it in Notepad and your browser you'll instantly see how websites work.
>>
What are my best options if I want to make a cheap blog/review site? I've already got a domain name, but should I buckle down and code my own site or just use wordpress? Also, is it really worth it to dabble in VPS rather than normal hosting for my first site ever?
>>
>>53768048
if your going to use wordpress kill urself
>>
>>53768073
>using WordPress as a blogging platform
>kill yourself

It's the only legitimate use for it.
>>
>>53768282
there is no legitimate use for wordpress
>>
Can somebody recommend a good "get laravel working on windows" guide?
Most I've found go full retarted and pull a "on windows run ssh-generate" or simply skip some steps, or just all together are a linux guide.

I would use a linux virtual machine but that would imply a virtual machine running inside a virtual machine.

Thanks for your help.
>>
>>53768355
Tutorial videos are usually out of date since Laravel's features change after every new version drops. The basics stay the same though so you might still want to watch them.

https://www.youtube.com/watch?v=Hzm9L3yVCt0&list=PL3ZhWMazGi9IcgWunA4izwTkd9QjSGW2j

https://github.com/chiraggude/awesome-laravel
>>
>>53765864
This is actually so true. I started off by doing some of those Codeacademy courses, but I can say I forgot 100% of everything I learned there. Everything was just so pre-made, that all you had to do is fill in some blanks with pre-made solutions. That's not how you make sure what you learn will actually stick after doing one exercise.

You just have to start doing things for real, from scratch, learning technologies one by one, by just using them every day, doing real projects. You need to gradually develop your method of working on a site. Need to learn your timings, what do you first? How do you save time doing X and achieve more by doing Y? Do you rewrite everything from scratch on every little project or do you reuse code that you wrote and it's still good?

I was doing like CSS exercises, trying to build some difficult stuff and then reuse that in real projects too. Like "Can I build a menu using only CSS and make it look like one from a real commercial/professional site?" Etc. Then after doing this for a few times from scratch, next time when you are working on a page, you actually have a method, you know how to do things without searching for that. You have a workflow. And so on and so forth.

You should, imo, first learn how to build a page layout, like with using Bootstrap, then focus on making that layout work the same on all devices. Then gradually develop the classes needed for that project. Most beginners do this huge mistake: They start by plainly filling the page with the actual content and then later trying to also adjust their page layout to make it work properly. And then at every future turn, this comes back and bites them, because they didn't actually have a proper method of doing things.
>>
Should I learn ES6, ES5 or Next? ES5 seems like the only version with 99% of compatibility on most browsers, but it's garbage tier.

Also, recommend me a VPS, SSL and domain registar for dicking with web sights.
>>
i want koa 2.0 so fucking bad REEEEEEEEEE
>>
>>53768860
Learn es5 as a lot is still valid and not bad. Then learn the new shit from es6.

Watch Crockford on JavaScript in the OP, it's old but good.

Also learn Nodejs, because server-side js means you don't have to care about shitty browsers.
>>
>>53768860
I think what most of /g/ is doing is transpiling ES6 to 5, by using Babel or some nodejs module. But ultimately what runs on the page is still ES5, so they're just feeding themselves syntactic sugar until ES6 will run natively in most browsers.

Imo, the danger is like with using Sass without having properly learned basic CSS. Eventually you become addicted to Sass doing all the pulling for you, until one day you have to fix something and you don't know how, because you were accustomed to Sass doing things for you.

You still have to learn core JS even for ES6, so I'd say this doesn't matter much. It's just people who are very fussy about using promises and stuff like that.
>>
>>53769062
Not watching videos, but thanks. I'll read eloquent and MDN.
>Also learn Nodejs, because server-side js means you don't have to care about shitty browsers.
No thanks, frontend is hijacked by js/es, but on backend I can and will choose a non-broken language.
>>
>>53769073
According to kangax, Babel has 85%, so it's not a solution. SpiderMonkey 45 has the same level.

I guess I'll just bite the bullet and learn ES5 for now.

As for CSS, haven't used sass/less but CSS has variables and calc() now, so I can live without templating.
>>
>>53768456 Thanks for the heads up!
I figured Laravel would change quite frequently but I thought the set-up would be pretty identical over versions.
I'm going to try and get this going as soon as I get home.
Still I'm expecting something to go wrong
>>
File: 346.jpg (68 KB, 700x700) Image search: [Google]
346.jpg
68 KB, 700x700
Why the hell is my canvas flickering in Firefox?!
I have a repeat on the function but it looks great in Chrome
>>
>>53769114
>I literally don't know JavaScript
>claims it's a broken language

Damn son, you deserve to be miserable. Node is great.
>>
>>53769890
>I literally don't know JavaScript
I know bits and pieces.
>claims it's a broken language
Well, it is. Note some of those might be fixed in ES6/Next.
>hoisting
>automatic insertion of semicolons
>confusing new keyword
>single numeric type based on ieee 754 double; no support for 64bit integer values without splitting them of into two halves
>meaning on this depends on context
>multiple for each like constructs, all broken
>broken modularity - all scripts exist in the same global scope
>>
>>53769852
Welcome to webdev
>>
>>53769852
Are you using https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame ?
>>
>>53770235
I have the object in
 canvas.animationLoop = setInterval(function () { 


and its when doing the
 canvas.update(); 
that its start flickering. In chrome it gets refreshed like once every a while and its not even noticeable
>>
>>53770474
You should not use setInterval, you should use requestAnimationFrame.
>>
I'm a web programmer but I can't seem to know how to use bootstrap at all. I get to confused with so many class names with so many different sizes and so many classes on one element. To me the source code looks like shit. How can I learn to use it? Is the only way to learn is to mug up all the structures and class names?
>>
>>53770719
is this bait
>>
>>53770719
hey there Pajeet
>>
>>53770719
Just read their documentation, dude, it's very simple. Or google some tutorials.
>>
>>53770497
its not flickering now by itself, but it starts refreshing when I manually change the data. is there a way to exclude an object from the repeat?
>>
Should a one time deployment script for an application protect against SQL injections?

The only really harmful scenario that comes to mind is that the admin put the application on the same database server with other applications... I'm not even completely sure that would work.

What do you generally expect from deployment scripts?

Should the admin account rather be created from a config file than from input at all?
>>
>>53771056
is it a script you manually run by copy and paste? don't bother.

is it a script you run through a wizard with user input? fucking yes, always do.
>>
File: tomoyo396.png (29 KB, 442x442) Image search: [Google]
tomoyo396.png
29 KB, 442x442
>configuring a VPS

maybe I should have gone with the normal webhosters instead
>>
>>53771745
why? you need help with something?
>>
>>53771745
What's so hard about that? I hope you're using nginx.
>>
>>53771745
>cant configure a VPS
what are you retarded?
>>
>>53770040
Every language that is actually in use has flaws. But the things you mention can be avoided or mitigated.

>hoisting
Declare vars at the top since that's where they'll get hoisted to anyway. Or use ES6 let or const which don't get hoisted.

>automatic insertion of semicolons
Intended to help beginners. Don't leave semicolons out if you're not a beginner.

>confusing new keyword
Not really that confusing, and you don't have to use it if you don't want to.

>single numeric type based on ieee 754 double; no support for 64bit integer values without splitting them of into two halves
Having different number types leads to a whole class of programming errors and it is largely unnecessary. My phone has 8 orders of magnitude worth of ram, so it doesn't matter if I use 8 bits or 64 bits to represent a number.

Decimal fractions are a problem with floating point, but it was invented so that they didn't have to build a dedicated subtract circuit for their CPUs out of fragile and expensive vacuum tubes back in the 1950s. By rights any language designed after the advent of the transistor shouldn't be using floating point, but all of them do, because that's just what we use. In any case just multiply your numbers up to integers to do your calculations, then divide them back down again.

I haven't encountered a use case where I needed to count beyond 2^53, (9 quadrillion), sounds like kind of an edge case.

>meaning on this depends on context
You can avoid using the thisArg altogether, I do. Fuck this.

>multiple for each like constructs, all broken
Having bad choices available doesn't mean that you have to use them
You can use recursive functions and avoid all kinds of loops if you really want.

>broken modularity - all scripts exist in the same global scope
This is a browser issue. Node's modules work just fine, fuck browsers.

But yeah, you should watch Crockford on Javascript, you sound like you have enough experience to understand it.

Also use a linter.
>>
>>53771745
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

That channel has a bunch of tutorials and walkthroughs.

But yeah I know that feel, it gets better once you start learning your way around, and linux/unix terminal knowledge is a very good skill to have if you want to be a developer.
>>
>>53771770
>>53771791
>>53771773

I can't change my root SSH password
I can't connect using the digitalocean access console
I don't know if I've used the right DNS
I still need to get my wordpress up and going
>>
>>53771112
thanks anon
>>
File: why.jpg (23 KB, 288x499) Image search: [Google]
why.jpg
23 KB, 288x499
>>53771892
>trying to set up a VPS
>for Wordpress
>not just using literally any baby-level hosting package on the internet.
>>
>>53768355
Laravel is the reason I switched to Ubuntu.

There is just no good documentation for using it with Windows.
>>
>>53772038

because that's what most people suggested
>>
>>53771892
>I can't change my root SSH password
You haven't set one then. SSH uses keys that you generate and never have to enter.

>I can't connect using the digitalocean access console
Hit F5. The access console IS your server.

>I don't know if I've used the right DNS
It can take several days before your DNS reconfigures itself. You should get your website set up on the server before tying a domain name to it anyways.

>I still need to get my wordpress up and going
https://www.digitalocean.com/community/tutorials/one-click-install-wordpress-on-ubuntu-14-04-with-digitalocean


Setting up a VPS is difficult at first, but it took me a day of Googling (I was a Windows-only guy at the time) and now it's fun.

Any question you have, just append "digitalocean" to the end of the Google search and you'll find something.

By the way, make sure to read the secure setup guide or you will have your server hijacked like I did on my first go.
>>
Anyone have any experience with Wt? (Witty)

Opinions?
>>
>>53772091
Well it is good to learn it. Find a walkthrough to follow though. And learn how to SSH first.

Don't worry, that feeling of hopeless confusion means you're learning.
>>
>>53772196
I think they are using Windows. No one else would use the access console from home.

It actually sounds like they are trying to ssh the access console to itself.
>>
>>53771848
>Every language that is actually in use has flaws.
Correct. Some languages have fundamental flaws that are hard to bear with.
>But the things you mention can be avoided or mitigated.
Yeah, but a good language is designed, so that you don't have to remember about it's quirks all the time. Languages are tools, they should, among other things, be ergonomic.

Also, forgot about automatic casts ({}+{} == NaN).
>Intended to help beginners.
Huh? Beginner is the one most likely not to know not using semicolons can change the meaning of the code.
>Not really that confusing
It is, because it works differently than in e.g. Java, and it really isn't needed and should not ever appear in this language. It probably appeared, because the creator or his manager thought "Java is hip, let's take some random shit from Java".
>Having different number types leads to a whole class of programming errors
Every feature leads to a whole class of errors. Want a language that's not error prone, use brainfuck.
>it is largely unnecessary.
Integers are largely unnecessary?
>I haven't encountered a use case where I needed to count beyond 2^53, (9 quadrillion), sounds like kind of an edge case.
UNIX time for example.

They could at least make a double-based float type and an integer type without size limit, like in python.
>You can use recursive functions
Not very effectively, since no TCO.
>This is a browser issue. Node's modules work just fine, fuck browsers.
Browsers are #1 reason JS exists. If every major browser turns to something else, e.g. webassembly, we might see JS vanish within years.
>But yeah, you should watch Crockford on Javascript, you sound like you have enough experience to understand it.
I' not a fan of learning to type letters from a video, I much prefer books. Currently reading eloquent. I know it's beginner-tier, but hopefully it's complete.
>>
Is using cron to trigger a php script to update some rows in the database once a week difficult? I will use it to reset some fields.
>>
>>53772288
>using php
>using cron
>>
>>53772288
ez-pz

Just make sure it's necessary.
>>
I have a subscription to Laracasts. I was told I could stream them while I dev on Twitch. Apparently they have stuff for jQuery and Vue as well as a bunch of other stuff so yeah..probably going to get on that.
>>
>>53771745
Dude, I've set up my bare-metal server with ubuntu (the basic lamp environment) and I managed to do it from the first attempt.

I used to just get web hosting with cpanel and ftp interface before, so if I could do it, anyone can.
>>
>>53772235
>Yeah, but a good language is designed, so that you don't have to remember about it's quirks all the time.
I don't have to remember its quirks, I just use a linter that remembers them for me and enforces a good coding style.

>Also, forgot about automatic casts ({}+{} == NaN).
Doesn't result in NaN for me
http://codepen.io/anon/pen/EKvpGm?editors=1010

But again these problems that arise from writing shitty code all go away if you use a linter.

>Huh? Beginner is the one most likely not to know not using semicolons can change the meaning of the code.
It would be difficult and rare for a beginner to find the cases where leaving out a semicolon changes the meaning of their code.

>It is, because it works differently than in e.g. Java, and it really isn't needed and should not ever appear in this language. It probably appeared, because the creator or his manager thought "Java is hip, let's take some random shit from Java".
True. The compulsion to appeal to Java babies has always haunted the language, I mean just look at the name. Thankfully it has very little in common with Java, and is more powerful functional language with prototype inheritance instead of shitty classes.

>Integers are largely unnecessary?
You can do whole numbers just fine with floating point.

>UNIX time for example.
What unix time are you using that requires 16 orders of magnitude? Current Unix time is ~1459364824.

>Not very effectively, since no TCO.
TCO is in the ES6 spec and the next version of V8, but you can also do recursion just fine without it.

>Browsers are #1 reason JS exists.
JS is the #1 reason the web still exists. We'd be using some shitty Adobe Flash/Coldfusion or Microsoft.NET application delivery system by now if we hadn't discovered AJAX in 2005.

>I' not a fan of learning to type letters from a video
Its a series of lectures, not a how-to tutorial. It also covers a lot of the strengths of the language, which you don't seem to know about.
>>
File: hpuL6Ua.jpg (223 KB, 1536x2048) Image search: [Google]
hpuL6Ua.jpg
223 KB, 1536x2048
Anyone feel like they missed their turn? Just found out a webdev friend that i studied with at university became the CTO of a company that recently got a $1.5 million investment because its going so well.

Meanwhile im struggling to pay the bills and occasionally get to do some shitty webdev job.

I should just give up and work at mcdonalds fml
>>
>>53772879
>I don't have to remember its quirks, I just use a linter that remembers them for me and enforces a good coding style.
So you're admitting the language is shitty and you need automated tools to use it?
>Doesn't result in NaN for me
Works for me in SpiderMonkey:
js> {}+{}
NaN

Anyway, my point is the language shouldn't even allow to do this.
>It would be difficult and rare for a beginner to find the cases where leaving out a semicolon changes the meaning of their code.
Returning an object split into multiple lines for example leads to this issue. Maybe rare, but still valid.
>You can do whole numbers just fine with floating point.
You don't get the same wrap-around as with integers. Additively, Harmony added integer arrays, with sizes 8, 16 and 32, but not 64.
>What unix time are you using that requires 16 orders of magnitude? Current Unix time is ~1459364824.
We'll hit 2^31 seconds in 2038. To remedy this, years before, most unicies moved to 64-bit value, which works until year 296 533 310 768.
>TCO is in the ES6 spec and the next version of V8, but you can also do recursion just fine without it.
Was talking about ES5, and TCO is not supported currently by anything. Yes, you can do recursion without it, but for e.g. recusing down a large list you'll overflow the stack (half millionon SpiderMonkey).
>JS is the #1 reason the web still exists.
Not really. There are pages without JS or working well with JS blocked. Lots can be done without JS. Recently a lot of functionality like animations, transitions, special form items were added to HTML5 and CSS to limit use of JS.
XMLHttpRequest doesn't solve any big problem. Mostly useful for chats and such, otherwise refreshing wouldn't be such a problem.
>We'd be using some shitty Adobe Flash/Coldfusion or Microsoft.NET application delivery system by now if we hadn't discovered AJAX in 2005.
But we (that is, some mentally challenged people) are using this shit. Of course I'd rather have JS than this.
>>
>>53772879
>Its a series of lectures, not a how-to tutorial. It also covers a lot of the strengths of the language, which you don't seem to know about.
I'll take a look at it later.
Sure it has some good points. Like functional programming and prototype-based OO. But there are other, better languages with that (e.g. Python), which I'd rather use.
>>
>>53773061
How old are you?

I am way behind and out of my prime. It's a ketchup game at this point.
>>
void draw () {
background (0);
loop();
textFont (f);
fill (255);
l0 = "F";
l1 = "E";
l2 = "A";
l3 = "R";
String[] l={l0, l1, l2, l3};
int i1 = int(random(l.length));
int i2 = int(random(l.length));
int i3 = int(random(l.length));
int i4 = int(random(l.length));
text (l[i1], 200, 250);
text (l[i2], 300, 250);
text (l[i3], 400, 250);
text (l[i4], 500, 250);
}



I'm working on this sketch that randomized letters in a word. The final goal is to have it move onto the next word once the randomized letters find a keyword. Right now I'm wondering how would I go about making sure there are no repeated letters?
>>
>>53774068
wrong thread sorry.
>>
>put up resume
>only calls I get are recruiters who want tech support help desk and an operations cordinator

I just want to web dev. It's the only thing I like.
>>
>>53773061
My best friend has a great job making well over 120k, he has a house, 2 cars, and a beautiful wife. We went to high school together and we're both the same age (24). I havent even graduated college yet and have nothing going for me otherwise. Yes, I know hat feeling.
>>
>>53774762
Then put a resume up that lists webdev skills. That's what I did.
>>
>>53774785
My dummy pot smoking friend left a burger kitchen and was a System Admin within 3 years.

>>53775051
I did. No one gives a shit. I was the guy that got that retarded SOAP no encoding with a 15 year old protocol dev test I posted about here.
On top of that, the API was broken and when I told them it wasn't online they just ignored me.
>>
>>53775212
What state do you live in?
>>
Is codecademy.com the best site to learn?
>>
just burned out a job that pays 3x what I'm making now because it wasn't web development.

>>53775615
Texas.

I just need a bigger portfolio.
>>
>>53773321
>So you're admitting the language is shitty and you need automated tools to use it?
Using automated tools as a programmer kind of comes with the territory, don't you think? There are linters for C, Python and every other language. Just because the language allows for shit code doesn't mean that it is a shit language.

>Works for me in SpiderMonkey:
>Anyway, my point is the language shouldn't even allow to do this.
You're admitting that you're shitty and you need the language itself to hold your hand and stop you from swallowing your own tongue out of retardation...
Javascript is very permissive for the sake of beginners. If you want more draconian error checking then use a linter as I've been saying.

>You don't get the same wrap-around as with integers
Who the fuck wants their numbers to wrap around? "Yes, I'd like the EXACT wrong answer, please."

>We'll hit 2^31 seconds in 2038. To remedy this, years before, most unicies moved to 64-bit value, which works until year 296 533 310 768.
Javascript can only count to 2^53. But I'm sure there'll be a replacement for Javascript sometime in the next 285 million years.

>Was talking about ES5, and TCO is not supported currently by anything. Yes, you can do recursion without it, but for e.g. recusing down a large list you'll overflow the stack (half millionon SpiderMonkey).
Your main argument appears to be that Javascript lets you be a colossal retard when here's other, better ways to do what you want to do. Its like saying "Guns are stupid, watch how I can shoot myself in the foot with this one" - You can be a retard in any language.

>XMLHttpRequest doesn't solve any big problem. Mostly useful for chats and such, otherwise refreshing wouldn't be such a problem.
Retrieving content without a big clunky page refresh is why the web is now an application delivery system rather than a simple document retrieval system. It's not the best and, it'd be nice if we could overhaul it, but it is what it is.
>>
>>53775212
>I did. No one gives a shit. I was the guy that got that retarded SOAP no encoding with a 15 year old protocol dev test I posted about here.
>On top of that, the API was broken and when I told them it wasn't online they just ignored me.

I got a job quite easily in the UK.

If you want to post your resume on a short-expiring pastebin, (minus the incriminating details) maybe anons could provide suggestions and/or laugh at you?
>>
>>53775855
Already did and they did.

It's a portfolio problem.


Should I just put every little thing I do on github? Like my messing with Foundation while learning it?
>>
>>53775895
I put tutorial projects up, things like a MEAN stack todo list.

How long have you been looking for a webdev role? Also which language(s)?
>>
>>53775641
>Texas

Bruh.
>>
>>53775895
Have you had any interviews? Interviews tend to be more about whether or not they actually like you rather than how qualified you are.
>>
is WebGL and js the future of high performance web dev? Are there any competitors that utilizes hardware accelleration on websites?
>>
>>53776002
I've been looking for a webdev role for 5 days.
I use PHP and javascript, but need to learn more apparently. I have some classes for react and vue lined up.

The problem is that I don't have any tutorials to do in the languages I know. I'm going to pump out 50 million pages using APIs.

I actually forgot to put a portion of my pet project in there where I calculate the distance between US cities. I'll do that when I get home.

>>53776047
Yeah, it's embarrassing. Like not being able to get pussy in a whore house.

>>53776135
Not a one.
>>
>>53776264
>I've been looking for a webdev role for 5 days.

5 days is nothing. Most places you applied to probably haven't even looked at the stack of resumes yet.
>>
>>53776264
>I've been looking for a webdev role for 5 days.
3 of those days being.... EASTER WEEKEND. You muppet.

It took me 5 weeks to find a web dev job.
>>
How do I check the theme I made for Wordpress (php) for vulnerabilities?

Is there some kind of tool I can use for that?
>>
>>53776864
You can use an auto-hacker which fills everything with injections or you can Google common vulnerabilities and try to inject it yourself. Lastly, you can just hire someone to fuck with it.
>>
>>53776864
>use wordpress
>want to use random plugins and themes from 3rd party developers because its so convenient.
>instead spend effort on trying to make a site that runs on random plugins and themes from 3rd party developers secure.

Might as well make your own site from scratch desu senpai.
>>
>>53777151
The theme is actually an effort of mine to integrate my old website into Wordpress, so I can use it's backend. But it feels a bit like I'm building two sites on top of each other. In some regards Wordpress is really extensive in what it can do. And in other regards it's quite limiting.
>>
i can't be the only one who finds this very sexy

data = array
(
'name' => 'anon',
'browses' => array
(
'g' => array
(
'wdg',
'sqt'
)
)
);
>>
>>53776526
>It took me 5 weeks
FUGGGGG

I don't want to work here for another 5 weeks.

I'm just going to really amp things up and go from deving 4 hours a day to like 8 or 10.
>>
>>53777582
>array
you trollin?
>>
>>53772169
>You haven't set one then. SSH uses keys that you generate and never have to enter.
That is only, if you have an appropriate public and private key pair in ~/.ssh. SSH defaults to Unix account passwords.
>>
>>53775625
See >>53765864
>>
>>53776242
WASM (with WebGL, if you want) is the future. C/C++ already has a decently working compiler to it.
>>
>>53777582
What language is this?
>>
>>53778030
Well they need to fix their shit. The hackbot targeting digitalocean was able to crack my rsa keypair fucking somehow.

I had to beef that thing up so much that only my home computer can login to it.

Basically that dudes droplet is going to be a botnet slave in a week if he doesn't fix his shit.
>>
>>53778261
Disabling SSH passwords is the first thing to do on a new server.
>>
File: 030f9f7ee617e1f81cff9c585.jpg (14 KB, 319x316) Image search: [Google]
030f9f7ee617e1f81cff9c585.jpg
14 KB, 319x316
-Experience with popular javascript libraries like bootstap, jquery or angular
>>
How hard would it be to create a simple imageboard? I know some html/css and JavaScript. Just not sure how to go about it or if I should use a framework. Any advice would be appreciated.
>>
>>53778253
Looks like PHP
>>
>>53778439
>create form
>store input to database
>while loop through database and display on page.


A """""basic"""""" imageboard is like some level 1 stuff. You should know how to do quote highlighting with js and css already. That's basic.
>>
>>53778488
Okay, thanks thats what I was thinking. Now I'll just have to work on making the front end look pretty.
>>
>>53778611
Do that last.
>>
How's the typical task distribution scenario in your webdev office?

Here's mine:

Before it used to be:
Client -> ProjMgr -> Me
And everything went smoothly.

Now they changed vice pres and the scenario is now:
Client -> ProjMgr -> TaskForwarder1 -> TaskForwarder2 -> TaskForwarder3 -> Me

It's full of shit to be honest. The instructions/details get messed up before it even reach me. Fucking bottleneck TaskForwarders. They put their own opinion on the project details/info instead of original client requirements. So no matter how effort I put my work it just gets into endless back-and-forth revision oblivion. Fuck em
>>
>>53778920
Would suggesting that the new approach killed productivity or forwarding it up to someone that can get you fired?
>>
All of these startups are boring.

Do I really want to build a limo CMS for limo services and provide help desk for the computer illiterate clients? I would spend the whole day teaching people how to type name in the name field and what a submit button does.

Is help desk a common thing web developers do in startups?
>>
float on CSS is confusing as fuck.
>>
Did anyone come up with any ideas about a project we could collaborate on?
>>
>>53779282
A new CMS for news websites that isn't WordPress but has no-refresh loading of new articles with optional infiniscroll.
>>
>>53779008
Depends on how chill they are. I remember some guy in one of these threads got fired for sending an email to his boss in light of changes he thought would have been beneficial.
If you have a good relationship with the PM, start there. I'd casually bring up the issue to him to gauge his reaction then take it from there.
>>
>>53779579
That guy from the thread was also a major dickhead about it iirc.
>>
>>53779282
Working on realtime imageboard in Golang and TypeScript. It already has a functioning web server, websocket handler, database post reader and formatter to JSON, basic things like config parsing, templates and daemonisation. Currently making the frame for thread event subscriptions and a friend is finishing various C bindings for image handling. More contributors are always welcome. It's fairly well documented and tested (no client-side tests yet though). I can drop a link, if anyone's interested. Not that it isn't very easy to google.
>>
>>53779804
I found it. I don't think I can be of any help (unless its front-end stuff) right now since I don't no Go/C.
Seems pretty well put together though, keep it up.
>>
>>53764895
Yeah okay, you do it in 4 hours
>>
>>53780128
Front end is actually an issue, because me, the other dev and another one, that has been busy this year, are all backend people. We can write the functional backbone of the client well, but not when it comes to UX/UI. That said, this backbone and its server-side handlers need to be written first, before refining the UI.
>>
>>53780313
Post it up and let's see if we can contribute.
>>
>>53780535
https://github.com/bakape/meguca
>>
>cant find web dev job
>proceed to working shitty game test job
>broke as fuck
>depressed

web dev is all a meme unless you're pro engineer level
>>
What kind of skills/languages does one need to make something similar to this?

http://brantsteele.net/hungergames/reaping.php

Loading up some pictures, playing around with a few parameters, and then free clickplay through the simulator for fun random events.

The extend of my knowledge is only python/C for work, which doesn't seem applicable for a tiny browser game.
>>
>>53780729
Python with Flask, JS, CSS, HTML. If you want, you can write your client in C and compile to asm.js/WebAssembly with emscripten.
>>
I've been interning at a company for about 9 months now. One of the things they've been pushing for since I started interning there is moving all of their server-side coding from ASP.NET to node.js.

It seems like server-side JavaScript is the way the industry is heading from what the people there tell me and the other interns. I've gain a lot of experience working in node.js and have become really familiar with it, along with client-side HTML/CSS/JavaScript.

My question is this: if I wanted to get a full-time job as a web-developer in the future, is it sufficient to only know JavaScript for both server-side and client-side scripting in this day and age or should I still learn something else as well such as C# or PHP?
>>
onclick is not a replacement for <a>

Not being able to middle click things to open in a new tab is incredibly frustrating.
>>
>>53780606
Looks fine to me, don't know why you would want anything more. Although the position of the reply button is annoying.
>>
>>53781000
How so?
>>
I'm revisiting my Haversine function page.


The geodata I have in my table has a LOT of duplicates.

How can I get rid of duplicates with same 'city' and 'state'?
>>
Need a header for my Indeed resume that describes what I "do". Would I be going too far if I put "web development" even though I haven't really done anything?
>>
>>53781000
To clarify, the link in the header is to a site running the previous version written in Node.js. The UI for that is largely unchanged from what the previous dev left it as. There are however many inherent design flaws, I am trying to correct with version 2. For example, the message protocol and everything that leads to it is very variadic and bug-prone. A lot of code is spent on hiding the moderation capabilities from regular users. Much rather expose those as a separate API. A board page, like you see on 4chan does not facilitate realtime updates, because a change in thread order or new threads cause a lot of viewport jumping. We were thinking of making a more sophisticated semi-realtime thread catalog to solve this. It is these new UI parts that we generally suck at designing. But like I've said, bit too early to work on them on more than visual draft level.
>>
>>53780942
Learning new stuff is always good. Try to learn another back-end language. Please consider either Python or Ruby (C# is cool but mostly used in Windows environments, PHP is plain not cool)
>>
>>53781188
No, you can put anything on your resume if you are fine with it coming up in the interview, and it can't be disproven easily, pretty much.
>>
>>53781222
What are you going to do with it once you are done?

Sell it to 4chan? Start your own imageboard?
>>
>>53781241
Thanks that's comforting. Not that anything will come of it, but I have to get used to fudging the truth a bit if I'm ever going to get anywhere.
>>
>>53781246
The end goal is the software itself: a modern, easy to deploy and manage, performant imageboard.

Technically already have a small (30-200 concurrent users) imageboard running the previous version. But I mostly let them do their own thing and am more interested in the software. They pay for their own server and sysadmining it isn't hard. Good test bed too.
>>
>>53781024
Anyone? It's mySQL
>>
I have zero knowledge of where to start when I want to build a site, but it seems to me that I should start with HTML, CSS and JS to develop a foundation to become proficient on the front end? Then I read shit about bootstrapping and angularjs or nodejs. Is this a decent place to start?
>>
>>53781945
No. Start with HTML, CSS and JS.
>>
>>53781388
How is the market for OSS image boards? Are you guys making the best software out there or is there someone who really beats you?
>>
>>53781945
Learn modern HTML, CSS, and Javascript. The backend depends a lot more on what you are trying to develop.
>>
>>53782094
What if I'm trying to develop your mom?
>>
when you use
.getJSON
for an ajax call to a controller's method, does it create an instance of that class that the method belongs to?

    $.getJSON("/fetchsitetech/lookupTag/" + technology, function(data) {
... }
>>
>>53782105
I'd suggest D.
>>
>Cofound startup with good friend
>He does design and frontend development, I do backend work
>Work on a project for two years
>Almost finished, just gotta finish a feature
>He starts to have doubts
>Commits less and shit
>Today he tells me that he's just bailing

Fuck. I'm useless at design, so I need a partner to help me with this. But I don't know any other fucking designers.

How do I find somebody? Do I just put up flyers or some shit?
>>
>>53782142
You're the Ruby guy, aren't you?
>>
>>53782150
I feel like there's more than one of those.

I'm the ImageHex guy, if that's who you're talking about.
>>
>>53782094
Thanks for responding. In terms on what I want to backend, I don't even know because I don't know what exists or whah I want. I'll start with html, css, js
>>
>>53782142
Maybe your software is shit and he realized it?
That happens a lot in startups.
>>
>>53782175
That is the one I'm talking about.

[spoiler]I'm sure your design will be better than your friends.[/spoiler]
>>
>>53781945
Don't fall for the angular/react/ember/backbone memeshit. Anyone who designs a site which has its main functionalities only work when JS is enabled should be castrated and force-fed their own dick. None of these SPA JS memeframeworks are designed to work well with using JS/ajax when JS is enabled and then using standard HTML for form submissions and content as a fallback if it isn't.

If you absolutely HAVE to swap in templates using JS, just use Handlebars and its precompiled templates.
>>
>>53782110
wait i'll follow up on this

i dont really understand controllers in the MVC architecture -- are they instantiated into objects? they are classes and not static so they must be created into an object whenever they're called, right?
>>
>>53782217
Nice b8 m8, I almost r8 8/8 but I r8 2/8
>>
>>53782212
Maybe. I'm pretty garbage at designing things now, but maybe if I read some books and stuff I'll get better.

Just to give me a starting point, what didn't you like about his design?

>>53782207
Well, he did mention that the site was "Such a huge piece of shit in so many ways." I don't look at the frontend stuff very often, but I like the way my backend is laid out. Sensible separation of concerns, good tests. It was always pretty nice to work on—in my opinion, anyway.

I edited some of his CSS recently, and it was a huge pain in the ass. Lots of absolute positioning and shit. So maybe that's what he's talking about.
>>
>>53780942
JS is bullshit
read about the recent scandal regarding npm and laugh
>>
>>53782237
For starters, search should be on the right of navbar to the left of the sign in stuff.

Browse can be by itself on the left by logo.

The browse button almost looks like a search bar.
>>
>>53782237
Looks like you were a lot better at backend that he at frontend.

By the way, I just checked your site. Please add a very small spinner somewhere so that the user know that something is happening when clicking shit. Otherwise I click a lot like an idiot.
>>
>>53782245
>Because it's possible to write bad code, ALL code is shit.
>>
>>53782236
Kill yourself, seriously, just kill yourself right now.

9 times out of 10 when I see all these shitty SPAs on the web right now I can't help but think "Why is this an SPA? It would function just as well if it were static and maybe a few dozen lines of jquery". That's the reality for all you faggots using angular, react and so on, a bunch of retards destroying the web, absolutely shitting on HTML standards, absolutely shitting on HTML semantics, all because you want some pretty site which doesn't have refresh when you click a link.
>>
>>53782265
I have no idea if that's the case, but it might be. I've been programming for about two years longer than he has.

The reason it's delayed is because we're using Turbolinks. It has a feature to put a progress bar at the top of the page, but we (or, well, guess it's "I" now) haven't enabled that. For... some reason. I'll fix it.

>>53782256
I'll write those suggestions down. Thanks!
>>
>>53782275
it's not only the bad code, m8. the issue wasn't even "bad code". it's all the fucking bullshit around node.js
>>
>>53782237
Did you guys found a business before creating your website?

pls don't do that. Don't even bother with it until 10k in revenue annually.
>>
>>53782289
Also it's best to scrap the design completely. If you ever start making money then your friend will sue the shit out of you.
>>
>>53782286
sounds like you're stuck in the past, pham
>>
>>53782311
We founded a business. He owned 49% of it.

I didn't feel like getting into ownership disputes once we started making money, so we had it all laid out ahead of time.

>>53782324
I'm having a lawyer friend draft a contract that signs over all rights to all IP he created for the site over to me, along with his shares of the company.

Thankfully, he's being really nice about it and doesn't want any compensation. I'm still going to give him $5, just to make the contract easier to uphold in a court of law, but I really appreciate that he's not trying to fuck me on this.
>>
>>53782289
can you pay for a redesign?
I haven't seen your website, but, perhaps, it could be a good idea to pay a pro for a complete redesign, no?
>>
>>53782286
Well mate, you need to choose the right tool for the job. If do are in fact building a complex application, then use a framework.

If not, I guess it depends. Maybe you want to have a music player on your blog or some shit, It's can be easier with a SPA.
>>
>>53782359
I am a broke college student with no money.
>>
in php is it quicker to declare a variable outside of a loop? e.g.

foreach($A as $a){
$temp = $a;
}
$temp;
foreach($A as $a){
$temp = $a;
}


which loop will be quicker?
>>
>>53782357
>I'm still going to give him $5
That's kind of funny.

Also with your design, I still have no idea what the website does. I know what it does because we talked about it, but the features aren't implemented and nothing describes the website on the front page. It's extremely important.
>>
>>53782379
ah
well, sometimes people will help you for free, or for recognition, etc., try finding someone to help you, I dunno
>>
>>53782379
Hey man, even Zuckerberg could do basic web design.

Once he had millions, he hired a motherfucking designer.
>>
>>53782385
why does it matter?
>>
>>53782416
ah a nihilist

hello
>>
>>53782325
Stop it. No matter how much you hail AngularJS and nodejs backends as the new and hip technology, it's never going to get anywhere.

At the end of the day you're still a bunch of retards who thought it'd be a good idea to:
- create a package manager written in JS
- create software written in JS
- create database systems written in JS

The reason? Because fuck being a real programmer and learning something like C, lets just use JS for everything!
>>
>>53782385
>"foreach"
>indentation
>PHP
>wow
>>
>>53782401
Any idea of how I can indicate what it does on the front page? I don't know if having a little diagram outlining how you can tag images and commission art would be too much. It sort of feels like it.

>>53782408
I'm really bad at design. But hopefully I can get better.

>>53782402
I'm going to take a crack at it on my own for a while. See how it goes, and such.
>>
>>53782446
Wow. I just watched you go full retard.
>>
>>53782446
lmao i was talking about your vendetta against having pages which don't refresh
>>
>>53782385
I'm not particularly familiar with PHP, but in general it won't matter.

For loops don't create a new stack frame or anything, so at least for primitive types that don't have any fancy initialization, it doesn't matter where in a function you declare them. It should be equivalent to declaring them all at the start of a function.

If you are in a language with destructors or something like that, or if in general the variable going out of scope will cause some work to be done, then there could be a difference.

Take this answer with a grain of salt, because PHP is a weird language and I wouldn't be too surprised if they did something stupid.

As a general rule, though: you should only compromise on clearly showing intent in your code for performance if you've done profiling to verify that it is worth it. If a variable is only used in the scope of a for loop, declare it in the for loop. People reading your code will know they don't have to keep track of the variable in their head after the loop ends, and the compiler will tell you you made a mistake if you accidentally try to use it.
>>
>>53782451
MAKE $ WITH ART!

Probably the easiest tag line. Then follow with a short paragraph about how it works.

Also make categories for different kinds of art and filtering based on "most favs", "newest" etc.
>>
>>53782646
also drop the gray and go with a dark pastel blue.
>>
File: imagehex-color-black-text.png (24 KB, 1920x566) Image search: [Google]
imagehex-color-black-text.png
24 KB, 1920x566
>>53782661
The grey in the header logo?

Our real header is supposed to look like this, but he thought it contrasted poorly with the rest of the top bar. I guess I'll lighten the top bar to alleviate that.

The art filtering stuff exists on the backend. I'll add a frontend for it.

Right now my main issue is that our branch to work on commissions is a shitload of commits ahead of master. So I think I'll just dummy out the controller actions for commissions, then merge and push it up.
>>
>>53782093
See http://www.9ch.in/overscript/
There are a ton of one time imageboards in many languages , that are no longer maintained. As for being the best, the only nontrivial realtime imageboards are ours and doushio - the project we forked from, that is no longer in development. In terms of performance, quite sure we have that even in v1. Especially a lot of work has gone into making image thumbnailing faster.
>>
File: xWPC26m.png (312 KB, 506x662) Image search: [Google]
xWPC26m.png
312 KB, 506x662
>>53782446
>web development using C
>real programmer
I'm sorry that a modern multi-paradigm language like JavaScript is too complicated for you to grasp.
>>
>>53783510
I never said it had to be exclusively or only C.

And is that seriously your argument?
>hurr you can't say it's bad because u dont understand it, it's a modern-day multi-paradigm language!!!
It's a fucking mess and should not be used when alternatives are usable.
>>
>>53783641
Thats not a problem with JS, but a problem with the dominant webdev mentality.
>>
>>53780606
When you said "live" you weren't kidding. This is neat.
>>
>>53783033
Nah, the whole bar. Try this #027DBB
>>
>>53783499
nice job!
>>
File: 1458639163757.png (335 KB, 1280x720) Image search: [Google]
1458639163757.png
335 KB, 1280x720
>>53783641
What language should be used then? PHP? Or are you going to suggest a meme language like Python or lmao Ruby
>>
>>53785066
use Go faggot, only language that isnt slow as a snail these days
>>
>>53785066
Python a bad language? Good luck defending that.
>>
I have this form:
<form method ="post" action="">
First name:<br />
<input type="text" name="firstname" size="32" maxlength="32" /><br />
Last name:<br />
<input type="text" name="lastname" size="32" maxlength="32" /><br />
Email:<br />
<input type="text" name="email" size="32" maxlength="255" /><br />
Gender:<br />
<input type="radio" name="gender" value="male" checked="checked"> Male<br />
<input type="radio" name="gender" value="female"> Female<br />
<input type="radio" name="gender" value="other"> Other<br />
State:<br />
<select name="state">
<option value="ACT">ACT</option>
<option value="NSW">NSW</option>
<option value="NT">NT</option>
<option value="QLD">QLD</option>
<option value="SA">SA</option>
<option value="TAS">TAS</option>
<option value="VIC">VIC</option>
<option value="WA">WA</option>
</select><br /><br /><br />



<input class="formbutton" type="submit" name="submit" value="Submit" />
<input class="formbutton" type="reset" name "reset" value="Reset" />
</form>


I currently submit it with this PHP:
<?php


if(isset($_POST['submit']))
{
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "ancpage";

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$sql = "INSERT INTO student (last_name, first_name, email, gender, state)
VALUES ('".$_POST["lastname"]."','".$_POST["firstname"]."','".$_POST["email"]."','".$_POST["gender"]."','".$_POST["state"]."')";



$name = $_POST['firstname'];
if ($conn->query($sql) === TRUE) {
echo "Thank you $name, your form has been submitted<br />";
} else {
echo "Error: ", $sql . "<br>" . $conn->error;
} $conn->close();



}
?>


Now this works fine and does everything I want it to. The problem is, due to criteria (inb4 not doing your homework) all behaviour of the page needs to be controlled with JQuery. (TBC)
>>
>>53785191
(Cont.)

Is there some way I cal half-arse a solution so that the form doesn't (or barely) needs to be changed but it's still controlled by JQuery?
>>
>>53785094
Haven't tried it but it seems gud. But Node is fast as shit m8, asynchronous programming too strong.

>>53785098
The language itself is OK, though I don't like how it does lambdas, multi-line anonymous functions would be nice. JavaScript does it a lot better.

Regardless of the merits of the language, the circlejerk community and the zealous memelords that inhabit it are intolerable.
>pythonic
No.
>>
>>53785265
Node may be async but it is single threaded m8
>>
>>53785295
By design, because threads are cancerous.

If you want to use more CPUs, you just run multiple instances of the application on your server(s) behind an nginx load balancer. Scaling up or down is easy.
>>
>>53785379
having multiple instances is less efficient than having good multithreading tho
>>
>>53785393
Its probably quite marginal, plus CPUs are cheap.

And if you want threading in node theres webworker-threads module on npm, though I haven't tried it.
>>
>>53785191
>$sql = "INSERT INTO student (last_name, first_name, email, gender, state) VALUES ('".$_POST["lastname"]."','".$_POST["firstname"]."','".$_POST["email"]."','".$_POST["gender"]."','".$_POST["state"]."')";

Jesus Christ, is SQL injection still this much of a thing?
>>
>>53785593
SQL is optimised specifically for injection attacks.
>>
>>53771745
You should configure nothing manually. It will fuck you over down the road. Learn Ansible.
>>
>>53780729
All of it can be done in client-side JS.
>>
Speaking of millions of 11 line JavaScript modules..

Is there a decent one to basically just run $.ajax() ? I've just realised I'm slimmed down until I'm importing the whole jQuery just to do this.

I realise it's only a short function.. but it's bigger than left-pad and everyone's defending that.
>>
>>53785643
fetch api
>>
>>53785191
>
$sql = "INSERT INTO student (last_name, first_name, email, gender, state) VALUES ('".$_POST["lastname"]."','".$_POST["firstname"]."','".$_POST["email"]."','".$_POST["gender"]."','".$_POST["state"]."')";


Please, either use an ORM or at least do some form of escaping to prevent SQL injection.

>all behaviour of the page needs to be controlled with JQuery.

Look up "jQuery submit POST form", and this way you can make it so that when you click the Submit button, the data will be sent to the PHP file and you can read it just as you read it now.

You can get the output ("Thank you, $name...") to appear on the page with the form on it if you handle the response from the jQuery POST request.

Note that you should also validate the state (to makes sure that it's something in your list) and you should validate the gender too.

There are ways of validating the e-mail address, but I wouldn't roll your own way of doing that, nor use some hastily found regex.
>>
If I want to develop via my mobile phone, what android compatible editor qould you suggest? I'm thinking edit, save and ftp/ssh.
>>
>>53785379
Threads are great when you have an reasonable abstraction on top of them, like CSP (Go), STM (Clojure) or actors (Erlang, Scala, any JVM language + Quasar and others).
>>
>>53785688
I've tried a lot them, and none was really good on a phone (tablets are another matter).
>>
>>53785066
I second using Go. Node is good, but not being multithreaded is a huge drawback. And no, clustering is a dirty hack.
>>
>>53785379
Do yourself a favour and read up on communicating sequential processes.
>>
>>53785529
They don't share memory, so it's more like a parallel processes model
>>
>>53785593
>>53785674

There's no security criteria on this assignment. I understand your points, but unless I lose marks for it I'm not going to bother. Also, the reason the PHP is on the same page is because we have a limit on the number of files we can submit.

Thanks though.
>>
File: css.png (351 KB, 734x598) Image search: [Google]
css.png
351 KB, 734x598
Please guys, I'm desperate.

>pic related

I can't align those divs along that red line so they get aligned with the div above on BOTH sides. At the same time, I want them to be aligned to the LEFT. Also, I have invisible margin between the posts, dev tools don't show anything and I don't see any CSS style that adds the margin. Currently, I gave them some percentage width, but I tried playing with that already, it doesn't work. Even if they look like they are aligned, changing the screen size messes everything up, and the last post even breaks from the flow while it should just get narrower. Wtf...
>>
>>53785786
>use go
>clustering is a dirty hack
How to spot a hobbyist: the post
>>
>>53786005
Single machine clustering, retard.
>>
How do u guys make #hastags and retrieve #hashtag values in js?
Imma use it for $.grep(#hashtags)
So of I type something like www.url/#ToolsModelID2791827

My code looks kind of stupid:

function makeUrl() {
var r = document.getElementById("input1").value;
var z = window.location.href;
console.log(z);
var y = "#" + r;
console.log(y);
var newUrl = z+y;
console.log(newUrl);
}


function extractVariableFromUrl() {
// var str = newUrl;
var str = window.location.href;
var pos = str.search("#");
console.log("pos " + pos);
var urlLength = str.length;
console.log("urlLength" + urlLength);
var res = str.slice(pos,urlLength);
console.log("res " + res);
alert("variable fetcher " + res);

}

extractVariableFromUrl();
>>
>>53786034
>Clustering is not okay except when it is okay.

Do you have an actual argument or are you just trying to justify a gut reaction?
>>
>>53786188
>>53786034
>>53786005
>>53785856
>>53785829
>>53785786
>>53785700
>>53785529
>>53785393
>>53785393
>>53785295

Guys, come on. We're web developers! Let's not pretend we know the first thing about parallel programming
>>
>>53770719
The only thing i know about bootstrap is these:
.container
.row
.col-( lg | md | sm, meaning large medium small)-(1 to 12, being the grid system)

most of the time I google the docs for usage and leave others as is.
>>
>>53786234
This is the kind of petty impotent bickering that belongs in /dpt/
>>
>>53770719
just study how the grids work and just make your own predefined css classes. bootfat is originally intended for twitter @fat (McDo) usage. I bet they also invented the "burger" in the menubar. fucking bloatstrap.
>fat
>mdo
>McDo
>burger
>bloatstrap
>>
>Website is down because Cloudflare DNS propagation is fucked
https://www.cloudflarestatus.com/

Anyone want to shoot me?
>>
Sublime or notepad++?
>>
>>53770719
Try including actual documentation snippets in your tabtrigger:

<snippet>
<content><![CDATA[
<!--begin list-group-->
<ul class="list-group list-group-custom">
<!--Don't use the standard .btn classes-->
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item"><span class="badge">14</span>
insert paragraph</li>
</ul>
...
]]></content>
<tabTrigger>bslist-group</tabTrigger>
</snippet>


Or just add an additional *-custom override:

<snippet>
<content><![CDATA[
<!--begin badge-->
<span class="badge badge-custom">42</span>

/* badge */
span.badge-custom {
background-color: #000;
border-radius: 2px;
}

<!--/badge-->
]]></content>
<tabTrigger>bsbadge</tabTrigger>
</snippet>


But yeah... just use grids. Not worth the time learning all of that crap
>>
>>53786380
Sublime or Atom. Notepad++ is garbage
>>
>>53786188
Because one is a necessity to scale horizontally over the network and the other is a dirty, slower, less memory efficient, limited functionality solution to not having multithreading.
>>
>>53786342
CloudFlare is unstable shit. Have had only problems with them. If you need a CDN, get Cloudfront or something.
>>
What kind of languages and libraries are employers looking for in resumes?
>>
Why does everyone here seem to call anything that they don't like a "meme"? Do words just have no meaning anymore in this place?
>>
>>53786719
get off the computer grandpa xd
>>
I have an informational site with guides on it. No login required anywhere.

Should I still make my website https?
+ gives a slight seo advantage
+ users might feel safer
+ all sites will make the switch eventually
- costs ad revenue and certificate expenses
- I have to do more maintenance
- you risk those warning messages in the uses browser if you make a mistake
- it barely adds any security benefit

What do?
>>
>>53786652
An array of buzzwords.
>>
>>53786719
Meme is also used to refer to fads that will blow over.
>>
>>53786719
Calling everything a meme is a meme.
>>
I'm a student and web dev already sounds like a horrible field to get into.

>constantly learn new meme technologies
>as a front-end, work on a simple shit that actually takes unbelievable number of hours
>work with lazy and boring people
>on top of all that, never get much credit and get shitted on by "real" programmers, which is kinda true, almost anybody can get into this field.

I already have to listen people around me constantly talking about paying treehouse for le wordpress courses.

I'm sick of it all.
>>
>>53786783
Become backend.
>>
>>53786575
I use Cloudfront for CDN, I use Cloudflare for DDoS protection & DNS.
>>
>>53786746
So something like this:
var resume = ['buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword', 'buzzword']
Thread replies: 255
Thread images: 23

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.