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

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 318
Thread images: 37

File: js.png (24KB, 500x500px) Image search: [Google]
js.png
24KB, 500x500px
Death to PHP

> IRC
#/g/wdg @ irc.rizon.net
Web Client: https://www.rizon.net/chat

> Tutorials & Resources
https://www.codecademy.com/ — Learn to code.
https://www.bento.io/tracks — Start here if you’re new.
http://www.theodinproject.com/ — Alternative to above, focused on Ruby on Rails back-end.
https://developer.mozilla.org/en-US/Learn/Choose,_Install_and_set_up_a_text_editor — Choosing a code editor.
https://libraries.io/ — Discover new open source libraries, modules and frameworks.
https://www.coursera.org/browse/computer-science — CompSci courses.

> Getting Hired
https://pastebin.com/4YeJAUbT/ (embed) (embed) — NEET Guide to Web Development
http://elliotec.com/how-i-got-a-job-in-web-development/

Previous thread: >>51293789
>>
PHP is the past, the present and the future.

Deal with it hipsters.
>>
first for Angular.JS
>>
i want to buy a domain. Unfortunately my initial wish is taken so i thought something like MyFirstWord-MySecondWord.com

Now, i also plan to take email address. Is it possible to have something like [email protected]?

Are you even allowed to have character "-" in email?
>>
What is your opinion on material design for web development? I think it looks great. However, it looks like all frameworks that provide it (angular material, material design lite and polymer) only support IE 10 and upwards.

I mean, that's a great thing for performance and readability (you need less polyfills and other hacks), but my company isn't ready to give up on IE 8 kekusers yet.
>>
>>51348266
>future
Maintaining broken shit on life support counts as a future, I guess.
>>
File: srkgbhuabrlauyheb.png (15KB, 300x309px) Image search: [Google]
srkgbhuabrlauyheb.png
15KB, 300x309px
Can we talk about fucking retard things web developers do, also?

>form entry
>Email Address field
>copy paste is disabled
>confirm email address field
>copy paste is disabled
>hit tab
>tabs to a help link in the tooltip for the current field instead of the next field
Fucking seriously. If anyone in this thread does any of this I will personally skullfuck you.
>>
>>51348266
Whose future? Yours? I feel terribly sorry, m80. So sorry.

PHP was a nice idea executed poorly. Literally every general purpose language does the job that PHP claims to specialize in better now. Much better. So much better that there is simply no reason to use PHP anymore.
>>
>>51348286
http://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-email-address
There are various ways of doing it. Could come from your host, could use something like Google apps or could host your own mail server.
>>51348379
The fuck why?
>>
>>51348386
>>51348335
Deal with it
>>
>>51348401
>There are various ways of doing it. Could come from your host, could use something like Google apps or could host your own mail server.

i know that, i will have host handling my email address but i'm interested whether i'm able to use [email protected]? That "-" is puzzling me
>>
File: Damar,_2375.jpg (100KB, 400x393px) Image search: [Google]
Damar,_2375.jpg
100KB, 400x393px
Who here is ES6 only?

Come on- everyone who is not indian should be raising their hand.
>>
>dhtml
>>
>>51348429
Did you even fucking click the link or try to google it yourself?
>>
>>51348266
Agreed, PHP is not going anywhere. I work primarily in a .NET environment and enjoy every aspect of it over PHP. However, I'm not naive enough to think that NodeJS, RoR, C# or Java will ever replace PHP entirely as far as backend technologies is concerned. PHP is very easy for most people to pick up so I don't see it going anywhere, especially when the LAMP stack is so prevalent.
>>
>>51348451
>ES6
>not already using ES7 candidate features
>>
>>51348453
I did, everyone says about host name, not domain name
>>
>>51348451
My company doesn't seem to know that build systems exist. So I'm going to write shitty ES4 code (MUH IE 8!!!!) for the rest of my life.

I'd use Typescript instead of ES6 if I had the choice, though. It also has ES6 features and type safety and proper autocompletion in editors.
>>
>>51348501
Same thing.
>>
>>51348286
https://en.wikipedia.org/wiki/Email_address
"The domain name part of an email address has to conform to strict guidelines: it must match the requirements for a hostname, consisting of letters, digits, hyphens and dots."

Took less than a minute of google.
>>
>>51348517
Was about to mention Typescript. I love how everyone thinks ES6 is bringing groundbreakingly new features to frontend development. TypeScript has literally had Classes, Inheritance, Interfaces, and Strongly Typed JS for years now. All without having to worry about compiling your ES6 code using Babble to make sure you can support older browsers.
>>
>>51348548
ok, thanks
>>
>>51348567
Literally no one thinks that; coffee script and typescript have been doing this for ages- something everyone knows

It is just a better standard being put in place.
>>
>>51348237
>Death to PHP
Ideally, I agree. In practice, there are still a lot of jobs where I'm told I must use PHP. I think a big reason is deployment; PHP is guaranteed to work on whatever shitty shared host the client insists on, while most other solutions need a VPS.
>>
I can code websites, but I know nothing about adding a backend so that clients can edit/add/remove their products
>where do I start in terms of backend for premade websites /g/?
>>
>>51348681
Isn't this going to be fixed by docker?
>>
>>51348770
Just use Wordpress. Anything else and most of the job will be spent rewriting Wordpress features.
>>
>>51348237
>Death to PHP
Oh look, it's this thread again
>>
>>51348379
ctrl+shift+i, then edit the input field...
>>
What are some good website ideas to make? I can make a full site using Node/Flask/Django and other techs as well. i do this for my job, but i have no inspiration on what to do on my own. Are there any good ideas left out there? I'm not trying to make millions, but i want to make things that at least wont cost me much for the experience and resume fodder.
>>
>>51349612
Do an imageboard.
>>
>>51348849
newfag detected
>>
>>51348266
>Deal with it hipsters.

This. These SJW c_U_c_k_s and their meme languages/ frame networks are a joke.

>>51348386 >>51348335 Stay butt blasted mad, it ain't going anymore

>>51348483 Spotted the working man, agreed.
>>
>>51349612
Anon, someone gave me a handful of ideas at one point so I'll share:
-wikis: editable and informative, user uploaded data
-pizza restaurant: for displaying promotions, carrying over coupons, and filling in forms
-band pages: to host media content and tour news
-editorial news sites: showcasing heavy body copy and media lists of articles
-retail websites: showcasing product, carrying over to carts
-a blogging or social media site: for showcasing user profiles, password and login checkers etc


Tl;dr
Think of any sites you've used ever in your life and categorize it, try to replicate features and code away
Hope that helps
>>
>>51348483
>compares PHP to a group consisting of a non-blocking I/O framework, an MVC framework for database-driven applications, and two computer languages
You must really know what you're talking about. Thank you for reinforcing my beliefs about .NET programmers.
>>
>>51349612
Sell cupcakes. Dirt cheap supply-wise and they sell like hotcakes.

Or just sell hotcakes.
>>
>>51348681
>implying the companies that matter run their websites on shared hosts

>>51348777
>docker fixes everything
You would have to install docker on the shared host you moron.
>>
so i am learning javascript and then a backend language, either rails or django. should i do odin project or just read books like eloquent javascript and the hartl rails tutorial. also is codecademy good?
>>
>>51348379
>allowing websites to block your actions
retard
>>
>>51353583
If you are learning javascript, node is an option as that is done in js. Django and Flask are both pretty good. Django is a bit more heavy and does a bit more "magic" so it might have a steeper learning curve. Flask should get you up and running faster, but eventually you'll have to build stuff yourself that django gives you for free. Depends on what you are doing.
>>
>>51353247
>this anon sounds decent

>>51348483
>bet he also likes salesforce
>>
>>51353583

rails and django aren't languages. They are frameworks. Rails = Ruby language, django = python language

git gud
>>
need some help with ajax
    //works
$.ajax({
url: '/image?file=img000.jpg&_method=DELETE',
method: "POST",
})
//doesnt work
$.ajax({
url: '/image',
method: "POST",
data: {
'_method': 'DELETE',
'file': object[uid].name
}
})

why doesnt the second aproach work for me.
>>
>>51354934

because you are sending data via a POST, you need to send it via a GET for jquery to append the data to the url
>>
>>51354970
oh, I see.. I was using blueimp php file to handle upload and they do use $_GET for this example.

thx, already lost too much time on this.
>>
How do you fucking extend the fucking event emitter in ES6, fucks sake, been stuck with this for days.


var EventEmitter = require('events').EventEmitter;

class Test extends EventEmitter{
constructor(){
this.a = 'ddd';
}
}

// this.a = 'ddd';
// ^
//ReferenceError: this is not defined
>>
>>51355047
you might have to initalize a outside constructor inside the extension class with
var a = 0;
before
>>
File: image.png (346KB, 650x632px) Image search: [Google]
image.png
346KB, 650x632px
I want to create a classifieds ad website similar to gumtree and craigslist. I have basic knowledge of html and css but dont know anything about back end development. How long would it take me to build it from scratch while learning on the way? Should i just buy an html template from evanto and tweak it??
>>
I use Perl and Catalyst for web development, and I don't use Javascript except for very minor things.

Maybe I'm just stuck in the early 2000s, but modern website designs look awful and websites have become bloated as fuck with tons of JS.
>>
>>51355183

is it your job?
>>
>>51352156
>frame networks
>frame... network...
u wot m8?
>>
>>51348517
I have bad news for you...
The JScript language(what runs on IE8) is nearer to ES3 as to ES4...
I'm in the same situation, btw
>>
$ cat script.js                           
let a = 'ddd';
$ babel script.js --out-file out/script.js
$ cat out/script.js
let a = 'ddd';

epic.
>>
>>51356091

what is you're point?
>>
>>51356213
Somehow, "let" survived the conversion.
>>
>>51356272
$ cat script.js 
'use strict';

let a = 'ddd';

let b = () => console.log(a);

b();

class C {

}
$ babel script.js --out-file out/script.js
$ cat out/script.js
'use strict';

let a = 'ddd';

let b = () => console.log(a);

b();

class C {}


It's literally everything.

at least it removed unnecessary newlines...
>>
>>51356091
>>51356272
>>51356308
it's because you didn't read the documentation.

babel6 is new and requires you to tell it what to do.
use the es2015 preset and it'll do what you want.

https://babeljs.io/blog/2015/10/31/setting-up-babel-6/
>>
File: image.jpg (50KB, 500x500px) Image search: [Google]
image.jpg
50KB, 500x500px
>>51355082
Somebody answer pls
>>
>>51356520
Do you know JS?
>>
>>51355082
>How long would it take me to build it from scratch while learning on the way?

As a commercial project? Very long.

You're gonna make a lot of mistakes and you'll have to constantly refactor your code, you'll spend a shit ton of hours on google trying to solve problems that aren't even that hard just because you won't know what exactly you're looking for.

I've been there, I know.

Getting the basics down and really, really knowing them before starting something is key imo.
>>
File: mean stack.jpg (9KB, 264x191px) Image search: [Google]
mean stack.jpg
9KB, 264x191px
Literally don't get why NodeJS is such a big thing. JS is already bad enough on the frontend, why have it on the backend too?

Can we stop with the meme JS frameworks as well?
>>
>>51356623
desu javascript shouldn't exist at all. The only language that has ever made me wanna kill myself.
>>
>>51356623
ES6/7 is fine. Memeworks.js are retarded hipster bullshit though.
>MEAN
Mongo is not even ACID and Angular is a horrible abomination of bad design and shit performance.
>>
is there even any point in using babel for node?
>>
>>51356623
I like it :^)

but then I'm a front-end guy
>>
>>51357059
Async/await? Are those available in node 5?
>>
>>51356815
>ES6/7 is fine.
really? it's still a mystery to me how "good JS" is supposed to be written (or if it's even possible).
>>
>>51357232
What exactly is puzzling you? Perhaps you can show some examples.
>>
>>51357254
What is the development strategy for making large Javascript programs?

In Java it is clear:
break the problem down into classes each of which solves a small part of it. Use OO concepts such as encapsulation, abstraction, packages, and design patterns in your development to ensure scaleable and understandable code.
>>
>>51357496
use a js framework
>>
>>51357496
sorry to say, but nodejs is the best for that. you make modules and import them, and manage packages with npm. there are also a fuck ton of build tools.
>>
>>51357496
Break the problem down into modules. Use OOP or functional concepts, where more appropriate. Higher order functions are a powerful tool. Understand the difference between classical and prototypical OOP and leverage advantages such as mixins, multiple parent inheritance and runtime prototype mutation. Many Java development patterns can be used in JS, but most are unneeded. I think much of the JS bashing comes because people try to use it as a classical OOP language and get asspained, when something is different, even if a much simpler solution is available.
>>
Hey web devs!

I have no clue about web development, but everything that excludes web development.

Whats the best way to record an audio via a website without the need to install tools?
>>
Hi, Laravel question here.

Trying to output a string inside an blade template with localization:

{{ trans('validation.confirmed', ['attribute' => 'password']) }}


I'm using the default language files:

return ['confirmed' => 'The :attribute confirmation does not match.']


I want to replace the used attribute with something else. Currently the output is:

The password confirmation does not match.

So what do I've to place inside my language file to do so? I've found the attributes array at the end of the file, but nothing happens when i place a

'password' => 'random'


What am I missing?
>>
>>51357647
http://www.html5rocks.com/en/tutorials/getusermedia/intro/
>>
>>51357661
Thanks!
>>
:)
>>
>>51357827
for what purpose?
>>
I want a fb app that lists public events by popularity. That's it. I don't think I need fb login for that, but how can I access the search without it? And why is developing an fb app is such a pita, applying for all kinds of shit beforehand? Why they don't provide a simple rest api for public content?
>>
>>51348237
hey, i was explaining to my friend about FizzBuzz and he was saying how that's a dumb way to weed out canditates, someone on this board had a link to a guy who was asked to write it on the whiteboard and failed it and would not stop writing it.
Does anyone have that link? its the example i need.
>>
I'm working on a 3D Browser MMO. See screenshot.

It's written using Javascript, it's just me at the moment so I'm looking for team members.
>>
>>51358186
how are you making it?

how much JS u know?
>>
>>51357654
Why don't you use Laravel custom validators and the error message system?
>>
>>51358186
>browser

TRASH
R
A
S
H
>>
idk what to do anymore

I need to learn AngularJS, practice CSS, and learn more about JS.

I already feel burnt out. Fuck.

Has anyone gotten around this?
>>
>>51349694
Not him, but I'm working on it.
>>
>>51358262
I dont understand your question
>>51358331
suck my dick
>>
>>51358186
What is it about? What state is it in? What's your goal? etc etc...

Tell me about it.
>>
>>51358358
what exactly are you trying to learn to build? better large websites? single page web apps? UI? etc

front end library burn-out and fatigue is a very real thing though, the pace of change is ridiculously fast on the front end
>>
>>51358388
It's super early alpha, it's playable to a certain degree but some optimisations still need to be made. The goal is to create something that can be played on any web browser that supports WebGL
>>
>>51348451
I do, but must ES6 features implemented in all of the browsers are about 25% as performant as the ES5 equivalent (just go benchmark a simple for-of loop), Chrome barely has any of them, and IE/Edge have literally none of them. So from a professional standpoint it's pretty obvious why it's not being used.
>>
>>51358434
What do you do in it?
>>
>>51358388
the url is www.playmfe.com if you want to test it out
>>
>>51358358
>AngularJS
Use Aurelia instead. It's infinitely better.
Aurelia lets you write clean easily readable and well-structured code, unlike Angular's horribly unintuitive, over-engineered and ugly boilerplate-ridden mess.
>>
>>51358481
there really needs to be some sort of list of frameworks now.
How many are there now? 20?
>>
>>51358481
>Aurelia
I'm looking to get a job. I've never seen Aurelia mentioned but I've seen AngularJS mentioned multiple times.
>>
>>51358512
If you want a job learn C#, PHP, or Java, idiot
>>
>>51358476
That's transpilers like Babel exists. So you don't have to wait for and rely on slow-ass browser implementers to add decent, working standards-compliant implementations of all the new features.
>>
File: 1388299303043.gif (2MB, 278x213px) Image search: [Google]
1388299303043.gif
2MB, 278x213px
>>51356623
>MEAN
>>
>>51358499
I have no idea, but probably many.
>>
>>51358524
maybe if I was backend, but I'm not.

There are plenty of frontend frameworks. saying to learn backend languages/ c# is stupid
>>
>>51353583
Since no one else answered this, Codecademy is fucking dreadful. You can get all the shit you supposedly learn from Codecademy just from reading the first couple chapters of a book on what you want to learn. All you do on there is copy code verbatim
>>
>>51358479
Explore, complete missions, gather items, improve your character. In the future players will join gangs and take over different zones in the city
>>
>>51358544
how it is financed? What are you offering?
>>
>>51355047
You need a super call in the constructor before you can use this in it.

const { EventEmitter } = require('events');

class Test extends EventEmitter {
constructor() {
super();

this.a = 'ddd';
}
}
>>
>>51356623
why is it worse than your favourite language? You can write shit code in any language
>>
>>51357921
finding asian porn
>>
>>51358512
Aurelia is fairly new, so that's probably why. It's still in alpha, but will most likely be releasing their first beta next week.

It's already very feature-rich, and incredibly easy to integrate with non-framework stuff like jQuery for the type of stuff that requires operating directly on underlying DOM elements (unlike Angular's ghastly contrived "directives").
It's just incredibly nice to work with, unlike Angular which mostly just makes me want to rip my hair off.
>>
>>51358596
Just because you can write shit code in any language doesn't mean you can write good code in every language.
>>
>>51358599
this guy is going places
>>
>>51358616
I dislike angular too but you have to listen to the big boys
>>
>>51358558
It's not really finance because most of the expenses such as the dedi server, domain .etc are paid out of my own pocket. I'm offering hope, dreams and possibilities... of money
>>
>>51358599
/g/ - the movie
>>
>>51356623
ES5 and older is pretty horrible, but ES6+ is fairly manageable.
The only major downside to javascript in any form that I can think of is the lack of type specification, but I believe ES7 is working on fixing that, and there's also stuff like TypeScript which has types and transpiles to javascript.

I think the main reason Node.js is such a big thing is because it's incredibly easy to get started with, and has a huge amount of libraries available for just about everything you can possibly imagine ever needing in a backend or frontend.
>>
>>51358476
>Chrome barely has any of them, and IE/Edge have literally none of them.
Edge has literally almost all of them. Chrome has a fair bit:

https://kangax.github.io/compat-table/es6/
>>
>>51358599
Nigga WTF are you doing, LIKE %FOO% isn't using index and is slow as fuck. Even greping fucking plain text file probably would be faster.

Either start using full text search (introduced in mysql 5.6 i think) or use something specifically made for this kind of shit like elasticsearch.
>>
>>51358718
>Either start using full text search (introduced in mysql 5.6 i think)
Thank's, I'll take a look at that.
>>
>>51358664
so no incentive really, you can quit anytime leaving others with sunk costs.
Where should I sign up to work for free delivering your dreams? Do I get peanuts at least? Do you realize how insulting is that? If I want to look at possibilities of money, I just have to open my spam folder.
>>
php doesnt kill people, people kill people.
>>
>>51358630
which I never implied. Why does it suck more than java? C#? C? Discussing mainstream, proven languages is a red herring.
>>
>>51358753
PHP is still making those people kill themselves. It is to blame. These people would still be alive if PHP did not exist.

>butbutbutbutbutbutbutbutbutbut it's slightly easier to set up apache with mod_php than to set up other languages! That makes a HUUUUUUUGE difference!
No.
>>
node js question
i want to store a list of simple json objects on the disk, append to it as i go and maybe query it later
what module do i get
i've never really done anything with databases before
>>
>>51358741
I've been working on this project since 2012, you are not delivering my dreams, i'm offering you the possibility to join a great project and if you simply had the capability of delayed gratification then you would realise that your efforts would pay off in the long run. I don't understand what your interests are, if you're looking for a challenge or for money, this is an anonymous image board so I'm throwing everything out there.
>>
>>51358791
look into NoSQL db's (mongodb, etc), they pretty much store javascript objects as each entry directly
>>
>>51358801
no matter how much someone contributes to it you will always see it as your project because you've been working on it for 3 years, if you're not offering shares/money then why should someone else work on your pet project?

take off the rose tinted glasses mate
>>
Can't node.js just use mysql instead of mongo? What is the appeal of mongo, anyway? That it understands json?

Do you write your queries in javascript (I fucking hope not).
>>
>>51358791
just use MongoDB and Mongoose.js
>>
So i'm going to make a bittorrent ratioless tracker in Node.js. Wish me luck, boys.
>>
>>51358900
of course i'm offering a percentage of profits dude, I mentioned this in my earlier post, however what you need to do is sort out your personality dude as you're getting quite rude to someone for no reason
>>
>>51358934
except he was not rude at all

you were asked what are you offering, don't see any numbers, except empty words. You are full of shit bruv.
>>
>>51358524
If you're willing to work in SF then knowing a handful of Hipster.js 2016 frameworks will get you far
>>
>>51359033
Who the fuck would mention business numbers on /g/? gtfo edge lord unless you've love your throat slit drop me your facebook
>>
>>51359076
>edge lord

anyone who are looking for team members? Not that I thought it was a serious offer, but thanks for taking the bait. Enjoy your game going down the shitter with you.
>>
meteor or Socket.IO ?
>>
>>51359139
No, not anyone that's looking for team members, you are wrong. I now understand your sorry existence, so do yourself a favour and slit your wrists and let the blood drip onto your pathetic excuse of a body, this the only thing I would enjoy seeing today you colossal faggot
>>
File: lmfdelwqkh.webm (1MB, 1440x838px) Image search: [Google]
lmfdelwqkh.webm
1MB, 1440x838px
I want to center this thing.
What do.
Current sass file
http://pastebin.com/T7x5J98s
>>
>>51359364
#foot { margin: 0 auto; }
>>
File: 2eUvgkl.png (143KB, 1426x702px) Image search: [Google]
2eUvgkl.png
143KB, 1426x702px
>>51359415
Nope
>>
>>51359431
try it on your table instead
>>
>>51359441
Still getting cutoffs.
>>
>>51359431
>>51359441
oh wait nevermind, you put your table to display as inline, so margin will do nothing.
why do you this? try inline-block. and then margin 0 auto.

post a codepen or something.
>>
File: BvizeRn.png (262KB, 1440x691px) Image search: [Google]
BvizeRn.png
262KB, 1440x691px
>>51359458
Now I'm getting interesting results.
>codepen
Oh boy. I bet you'll laugh at me for being this terribad.
http://codepen.io/anon/pen/vNbLKz?editors=110
>>
Thanks mate!
>>
>>51359506
this is a huge mess and some very weird choices, I'm not even going to comment on it.

But removing all styling from #table and adding text-align: center to #foot seems to work.
http://codepen.io/anon/pen/KdJVNV?editors=110
>>
When will meteor be good?
>>
>>51359618
That's what sass compiles to. It's fucking awful to read the actual css it compiles to, though.
>>
>>51359655
The whole package is a mess, not only the CSS.

also in codepen you can set it to SASS and it'll compile for you while you edit sass.
though I generally prefer the scss syntax.
>>
File: mio-scared-02_zps2bcf9ff2.gif (650KB, 320x480px) Image search: [Google]
mio-scared-02_zps2bcf9ff2.gif
650KB, 320x480px
>>51359687
>The whole package is a mess
How do I improve and does it require to register so that it would let me use sass instead?
>>
>>51359723
click the cogwheel in the css tab and set it to SASS.

just tinker around, look how others do something.
https://developers.google.com/web/fundamentals/

instead of floating everything, you could use flexbox for example (if your browser requirements allow that)
don't use pixels, that might not work out on other densities like phones where pixels are much smaller
>>
>>51358916
>>51358869
>>51358791
Don't use MongoDB. It does not provide read and write consistency and thus is unfit for any production use. At least until https://jira.mongodb.org/browse/SERVER-17975 is closed, which has been open for 7 months now. If you need a JSON store RethinkDB, Riak and CouchDB are great alternatives.

>>51358915
Of course you can use any database that has a driver for node, which is almost all of them.

>>51359223
Meteor is locked into Mongo, so Socket.io or SockJS, if you want a lighter library closer to the Websocket standard.
>>
I'm reading up on html5 elements.

Is <nav> purely semantic? Or does it have an actual in page function - ie: is it a div?
>>
>>51359832
>RethinkDB, Riak and CouchDB are great alternatives.
Which one of these is most similar to MongoDB?
>>
>>51359905
pretty much everything is semantics
>>
>>51359916
everything in html5 you mean?

I'm asking from a purely semantic standpoint - if nav has some kind of functionality, then it's not purely semantic - eg: if it also functions as a div, then it's not _just_ semantic
>>
why don't you guys recommend w3schools?
>>
>>51359914
That depends on use case and what exactly you wanted to use mongo for
https://www.rethinkdb.com/docs/rethinkdb-vs-mongodb/
http://docs.basho.com/riak/latest/theory/comparisons/mongodb/
http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis

>>51359956
Because it's limited, often false and MDN exists.
>>
File: tiddies.jpg (119KB, 540x402px) Image search: [Google]
tiddies.jpg
119KB, 540x402px
>>51357827
>Gaytube
I..is this for you?
>>
>>51359956
because it used to be shit and had wrong information.
they fixed a lot of stuff already, but the mindset is still set.
>>
>>51359978
While thorough, MDN often do not word their documentation in a beginner-friendly manner.

If you're a scrub that just wants to find out what parameters a method includes, w3 is a quick and dirty way of doing it
>>
>>51359979
>his fetish is based on a gender
I'm the purest version of yellow fever.
>>
>>51357827
Several porn sites have an API available,.. and you will end with a very big database, where LEFT JOINs and COUNT(*) are bad for performance.
>>
File: LhX7L0N.gif (616KB, 500x234px) Image search: [Google]
LhX7L0N.gif
616KB, 500x234px
>>51358599
>>
>>51360345
Nice.
>>
>>51359949
>if it also functions as a div, then it's not _just_ semantic

But div is just a generic element container. It doesn't do anything special. Most to all the elements in html5 (and any made up tags) are just semantic, because they all act like a div
>>
>>51360907
does anyone actually bother using them?

shit just seems like a needless complication
>>
>>51360961
Apparently the only tags that you might ever actually need are a, img, div and form. Everything else is either deprecated or does not exist anymore.
>>
>>51360961
because
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>

Sucks ass

Marking up your code with semantically meaning helps developers understand the code, and helps crawlers understand the code.
>>
>>51360961
>>51360907
it has no special rules. it's extremely pointless.
>>
>>51361016
but no one does this. properly attributed classes are all you need.
>>
>>51348386
that's why fb & google use it... & 4chan
>>
how do I get into webdev if I can program at a decent level in traditional programming languages, but absolutely hate PHP

it seems like the only fucking thing you people use is CMS like joomla or wordpress, or PHP
>>
File: cpanel-logo.png (12KB, 555x200px) Image search: [Google]
cpanel-logo.png
12KB, 555x200px
Would you guys say it's better to manually set up and maintain a webserver or use cPanel/some alternative?
>>
my js god friend:
>Wait these idiots think js is a better language? LOOOOOOL
>Js is the worst language in the history of anything


he's literally better than all of you combined in JS
>>
File: Screenshot (3).png (414KB, 1920x1080px) Image search: [Google]
Screenshot (3).png
414KB, 1920x1080px
>>51361061
>but no one does this.
Everyone does this, then they attempt to make horribly class names to make up for it. Using good element names, classes that describe the content generically (not the style!), and attributes can make html readable, and css not a pain.
>>
>>51361154
Is your friend Paul Irish?
>>
>>51361154
Doubt it. Anyone who has experience in js, knows that js is far better than other languages. It's easy and power is very useful. It's just the nimrods who get caught up in the fact that type coercion exists and can't handle it.
>>
>>51361230
How many languages have you mastered so far?
>>
>>51358186
can I play
>>
>>51348323
Fuck all versions and everything about IE
>>
>>51361253
JavaScript, Java, C, C++, C#, Python, PHP, SQL (if you call that a language), and a few others that I haven't "mastered" but know.
>>
>>51361173
those procedurally generated class names are to optimise for speed and to ensure universal application across their network.

They're unique ids and work better that way.
>>
>>51361173
also OneDrive > GDrive, Jonathan.
>>
What does "mastering" a language require?

I've done C++, Python, pascal, PHP & javascript for a 10 years, I wouldn't consider myself a master in any of them for I still look stuff up.
>>
>>51358596
Lack of proper multi threading, for one.
>>
>>51361378
you think php-fpm style multi process and dynamic process spawn is best? or do you python all your server-side?
>>
>>51361061
Ma nigga
>>
>>51361325
>mastered C/C++
>implying is better than JS

You had better be trolling.
>>
>>51361173
but they're semantic too? just abbreviated to save characters. e.g. "logocont" obviously = logo container, "tophf" = top half, etc.

they keep a glossary in their documentation that you can just search through. it's not obfuscated.
>>
>>51361365
Same here. True wisdom when it comes to computing is that the more you know the more you know you don't know.

I've worked with countless people who claim to be "masters" of a programming language. They are almost always the same people who make stupid fucking mistakes and or break shit because they were too arrogant to admit they don't know something and look it up or ask for help.
>>
>>51361470
Kek. C/C++ is like the worst out of all of them (except for PHP, that can go burn in hell). Nothing but maybe video games, kernels, and embedded devices should use those languages anymore.
https://news.ycombinator.com/item?id=7835802
Not to mention their syntax is ugly as sin (just look at lambdas in c++14), using out parameters is straight retarded, and the Hungarian notation/Allman prevalent style can go kill itself.

>>51361513
Yeah, but it's 11 divs (and 1 form) nested deep for an input box. And sure, those make sense, but what about ctr-p, jhp, tsf, tsf-p, sfibbbc, sbtc, sbibtd, sbibod, gstl_0 sbib_a, sbib_b, and gs_lc0? (the class names for the 12 elements that contain the 1 input) I'd bet some are generated, but all I'm arguing for would be some better named elements. Instead of using 8 divs for the navigation, why not use <nav> <ol> and <li>? Why not reduce the complexity?
>>
File: Capture.png (387KB, 1366x748px) Image search: [Google]
Capture.png
387KB, 1366x748px
>>51361724
>Instead of using 8 divs for the navigation, why not use <nav> <ol> and <li>?
hey man, they spend billions of dollars and hundreds of man hours optimising their shit. just trust that they know better about their architecture.

fwiw shit like pic related is precisely why I don't use Angular. I don't give a shit how fast it is, this type of junk isn't remotely editable for a purely front-end dev.
>>
>>51361817
you aren't supposed to edit the output of such frameworks.
>>
>>51361817
The real reason is that they are still supporting old ie, where custom tags make it throw a hissy fit (also: if it's not broken why fix it?)

The only reason why that example of angular looks horrible is the ng-repeat has 4 filters, a style attribute with left and width calcs, and a ng-class.

That's not going to be in your editor anyways
>>
>>51361909
making quick edits in dev tools is essential for live mock-up work.
>>
>>51361973
A good framework uses livereload, a quick edit takes less than a second to compile and appear.
>>
>>51361973
So? You can easily edit the css in the window. What more do you want?
>>
>>51359832
>MongoDB. It does not provide read and write consistency
Sure it does. Just run it in safe mode.

> If you need a JSON store RethinkDB, Riak and CouchDB are great alternatives.
Or just store JSON blobs in Postgres, which has a binary JSON mode.

>Meteor is locked into Mongo, so Socket.io or SockJS
Also Meteor is not lightweight at all.
>>
File: hank.jpg (9KB, 208x210px) Image search: [Google]
hank.jpg
9KB, 208x210px
>finally got my first job as web dev
>required to learn template systems and orm
>>
>>51361817
>Angular
>fast
I hope you are talking about development time, because Angular is slow and bloated.
>>51362151
>Sure it does. Just run it in safe mode
Nice reading comprehension. Even with the 'majority' write concern option mongo can still not guarantee consistency, which leads to possibly stale reads and writes.
>>
>>51362161
When you learn them you never wanna go back though.
>>
>>51358186
reminds me of the projects my friends made for their graduate degree in game dev. how many people are in your team?

graphics are ridiculously dated, I honestly doubt you'll garner any fanbase whatsoever, but good luck and everything.
>>
>>51362350
Was mostly being sarcastic. MongoDB is thoroughly fucked, imo. Their write concern problems have gone on long enough.
>>
>>51362493
You mean you'll never wanna go back to template systems and ORM after you learn about Meteor or Express?
>>
Any Ember.js devs?
>>
>>51362910
>Meteor
>>
>>51356546
Nah not at all

>>51356584
Thanks for the help sadboys2001 squaddd
Any realistic time estimates like 1 year??
>>
Where do you get your design ideas from /wdg/?
>>
>>51362493
template systems are conceptually wrong and evil
>>
any of you use emacs?

for web dev, is it superior to sublime?
>>
>>51363340
An artsy friend.
>>
>switch over to library that generates HTML rather than writing it myself
>it just outputs everything with no white space

This bothers me
>>
>>51363534
which one
i'm interested
>>
>>51363611
https://hackage.haskell.org/package/lucid-2.9.3
>>
>>51363626
>haskell
nevermind
>>
File: 1432937638408.jpg (13KB, 230x230px) Image search: [Google]
1432937638408.jpg
13KB, 230x230px
>>51363714
>>
File: 1431063497779.gif (135KB, 320x425px) Image search: [Google]
1431063497779.gif
135KB, 320x425px
>>51363855
>>
>>51363714
>>51363855
>>51363869
>>>/g/dpt
>>
File: 1430970902116.png (514KB, 720x720px) Image search: [Google]
1430970902116.png
514KB, 720x720px
>>51363900
>>
>>51357827
a spider for.... porn?
GREAT BALLS OF FIRE ITS AN AMAZIN IDEA
>>
>>51348483
>lamp stack
do you even vagrant
Also, I'm the other side of the coin. I love PHP and everything associated with it- including technologies that surround it. I really dislike .NET . C is fine
>>
>>51358933
i was looking for php ones and all i found was shit. best of luck
>>
>>51357654
>>51358296
This. It's way too god to even bother re-creating the wheel.
the errorbag allows you to retrieve errors and just format them the way you want.
>>
Whatever happened to Aptana Studio?
>>
>>51361011
Don't forget title
>>
>>51364729
Seeing that 4 never came out, it's likely ded.
>>
How does one decide what language to learn for the backend? I'm really torn on this, since I don't know much about any of them, it's hard to make choices when you don't know much, it's also too easy to make the wrong one.
>>
File: 1447447537045.jpg (89KB, 497x593px) Image search: [Google]
1447447537045.jpg
89KB, 497x593px
>webdev
literally SJW-tier
>>
>>51364947
if youre frontend dev already go with node and save yourself some time
>>
>>51365048
>node
https://archive.is/7b1iG
>>
>>51365048
This, or you might want to try Elixir if you want your backend to be WebScale™


Or just go with php, like everyone.
>>
>>51365064
>>51364987
What is this eggplant meme
>>
>>51365138
yeah, i wanna know too.
>being slow on memes
>>
>>51365138
>>51365258
I'm just gonna quote the OP of the current /pol/ thread

>SJWs in tech have finally gone off the rails.

>A user commented in a discussion thread about the node.js code of conduct which included an eggplant emoji. How did node react?

>First, they banned him - they accused him of trying to intimidate woman contributors with the 'phallic' eggplant. not only from the CoC repo, but also from all of node.

>Next, they created a thread to discuss how to punish him: https://archive.is/7b1iG

>Finally, they got anorexia and deleted the thread. The user remains banned.

>How can we save tech from the SJW plague? First Mozilla, now node.js. What next? Will Linus be executed for not being feminist enough?

>For continued lulz, see https://github.com/nodejs/inclusivity/issues where such important programming questions are being raised as "Inclusivity to the non neurotypical."
>>
>>51365283
sjw can ride node into the fucking ground all they want, nothing of value will be lost.
>>
>>51365283
what happened with mozzila again? was it the annoying lady or something git fired, called annoying?
>>
>>51365473
True lmao

>>51365502
I don't know what started it but it's just SJW central now and hasn't done anything good since
>>
>>51365527
I almost don't want to go into web dev. because of how SJW it seems.

hopefully a war will break out soon and bring these naive fucks back to reality
>>
>>51365783
it's already begun, the eggplant uprising is happening!
>>
File: 08Acm3b.jpg (864KB, 1094x732px) Image search: [Google]
08Acm3b.jpg
864KB, 1094x732px
Anyone know any nice free dynamic graphics i can use to illustrate statistics and numbers on my page? Basically i just want to show simple stuff like diagram, piechart, progressbar, or whatever that dynamically changes depending on results fetched from database.

Its for a dashboard where higher-ups can view quick and simple stats about employees and their performance, want it to look minimalistic and simple.
>>
>>51365783
I can agree with this. All the SJW, trans, political correctness, feminism, feelings and etc. retardation is first word problems born out of too much peace. War drives progress and likewise peace brings social degradation.
>>
>>51365502
They fired the CEO, because he was against gay marriage.
>>
>>51366046
really? Holy shit. It's a bad time to be alive when you can't express your political views without being fired for them. How is that not illegal?

I thought you can't be fired for stupid shit.
>>
>>51366108
Apparently you can in clapistan. Mind that wasn't just any CEO, but Brendan Eich. It kind of shows the value scale at Mozilla, if some tumbler misogynists are more authoritative than the creator of JS.
>>
>>51366108
>>51366174
And founder of Mozilla, for that matter. Literally driven out of his own company.
>>
>>51366108
>>51366174
>>51366210
>dat conservative kekfest
just get gay married already, geeze.
>>
>>51366046
>They fired the CEO, because he was against gay marriage
And not even openly. They uncovered records of a donation he made to an anti-gay organization years ago and forced him to step down over that. He wasn't actively advocating against gay marriage or even talking about it.
>>
WW3 will rid us of this plague, right?
>>
>>51366046
>>51366210
was this before or after pocket?
>>
>>51366910
Before.

Firefox started really going to shit shortly after they forced Eich to step down.
>>
>>51366925
they should have just kept him even if he was against hay marriage. going on a political witch hunt is not what the future of mozzila needs
>>
>>51367003
>hay marriage
*gay
>>
>>51365942
Chart.js
>>
Hope you guys aren't using Node now that it went full sjw
>>
File: maymay.png (268KB, 755x548px) Image search: [Google]
maymay.png
268KB, 755x548px
>>51368400
Don't worry anon, I'm spreading the word already
>>
>>51365942
d3.js
>>
>>51368455

>install gentoo
kek
>>
Are HTML and CSS as easy as they seem? I'm learning them quickly, but worried that I might be missing something. Is most of the webdev difficulty with Javascript and a backend language?
>>
So I'm learning web development with python / flask. Am I fucked or should I keep going?
>>
>>51368952
It's all pretty easy once you figure out how all the different pieces fit together. The hardest part will generally be the backend if it does anything more complex than just serving an index html.
>>
>>51361091
I run a number of cPanel servers for a hosting company.

I do it because 100% of those customers can't tie their own shoelaces and likewise can't build a website unless it starts with a Wordpress 1-click installer.

I would in no way run a business of that shit.
>>
>>51369917
If you use pypy, keep going.
>>
File: 1377189518058s.jpg (3KB, 125x121px) Image search: [Google]
1377189518058s.jpg
3KB, 125x121px
>>51348237
Do I need a portofolio as back end dev
>>
>>51370998
Yes.
>>
File: electricity.gif (2MB, 540x302px) Image search: [Google]
electricity.gif
2MB, 540x302px
Considering that writing out path for node requires sucks, has anyone tried creating an object that defines all paths in an application and making it global, so that you could do something like

var routes = require(path.lib.routes);


?
>>
>>51371646
What about relative paths?
var module = require('../mylib/module');
>>
>>51371662
For me they often quickly turn into
require('../../../../module');
>>
>>51371741
Maybe it's time to publish your common modules in a private npm repository.
>>
File: 1428663570396.jpg (141KB, 800x916px) Image search: [Google]
1428663570396.jpg
141KB, 800x916px
Is everything in Bento videotutorials/lessons ?
>>
>>51356815
I'm not a MEAN guy, I'm using sqlite and php+slim2, but Angular seems to fit very well for the type of experience I'm striving for in my application and I haven't run into any performance issues yet. If it is so bad, can you recommend me an alternative?
>>
>>51365942
nvd3.js
>>
I might need to learn some javascript, what are some good resources to start with?
I have programming experience, but not in web development.
>>
What editors you use? I assume that emacs or vim are not good for webdev right?
>>
RoR, Django or some Node shit for a new project?
>>
>>51372353
do you even read anon??
>>51368400
>>51368455

now its only RoR and Django..
>>
>>51372395
I care about technology, not your little social campaign
>>
>>51372431
well, the answer is the same then..

both Ruby and Python are better than JS.
>>
>>51368400
You know what, I think I'll still learn Node, who cares about a bunch of angry vaginas.
>>
>>51372597
>who cares about a bunch of angry vaginas.
people who spend all their time complaining that are unemployable because of icky girls

aka most of /g/
>>
>>51371873
Not him, but Aurelia.
>>
>>51348237
Daily reminded that web devs aren't real developers.
>>
What Editors do you guys use?

Im using Brackets at the moment, loads quicker than ATOM and LiveDeploy is nice.
>>
>>51372896
http://strawpoll.me/6020914
>>
File: s2.qwant.jpg (382KB, 1360x900px) Image search: [Google]
s2.qwant.jpg
382KB, 1360x900px
>>51372878
not true, they are so pro they can program on turned off laptops.

>>51372628
>being a SJW hipster
>being emplayable
pick one
>>
I wanna go back to the earlier 00s when all I had to do was to process input and render html without all this mental masturbation we have today.
>>
Alright you fucks, help me out here

I'm a retard and I can't figure out how I'm supposed to add libraries to XAMPP. I need to use the gnupg extension from PECL, but I can't install it without the GPGME library. I have that installed on my system, but PECL doesn't recognise it - I can only assume that is because XAMPP has it's own sandbox environment. How the fuck do I install a library to it?

Thanks in advance
>>
>>51372218
I use notepad++ and/or netbeans (HTML/PHP variant).
>>
rate my fizz buzz, i have to send this in.

for (var increments = 1; increments <= 100; increments++) {
var fizzbuzz = "";
if (increments % 3 == 0){
fizzbuzz += "Fizz";}
if (increments % 5 == 0){
fizzbuzz += "Buzz";}
console.log(fizzbuzz || increments);
}
>>
>>51372218
Atom.
>>
File: 1431434986158.png (750KB, 854x853px) Image search: [Google]
1431434986158.png
750KB, 854x853px
>>51373537
>>
>>51348237
Death to Java shit
>>
>>51373655
hahaha awesome.
i hate this damn code but it is a requirement to pass. i'm kinda nervous what else i'll have to pass.
>>
>>51373645
i've been using atom for about 3 months. I can happily say it's been a good program. minor minor nuances but been good.
>>
Serious question. Is PHP really shit and not worth learning even with the new version coming or is it /g/ being /g/?
>>
>>51374174
/g/ is being /g/

PHP is, even though a dated language, still a very solid platform to develop in/from.

It is also still being improved itself, be it slowly.
>>
I want to make a plane ole site with no or very little interaction. Do I use Jekyll or just use a bootstrap theme or something
>>
>>51374174
i get paid $70K a year to develop php

do you want to learn a meme language or get paid?

its amazing powerful and can do everything from console commands talking over sockets, to memebook
>>
So if javascript and PHP are apparently shit, what are the better alternatives?
>>
>>51374582
jekyll is only the website generator, you can use bootstrap, semantic-ui or whatever shit you want
>>
>>51374795
javascript truly is shit but you can always transpile from typescript or coffeejs although the later is not cool anymore
don't fall for the "php is shit" meme.
>>
File: 1441680406797.jpg (99KB, 655x653px) Image search: [Google]
1441680406797.jpg
99KB, 655x653px
>>51373655
literally dying right now holy shit
>>
>>51374795
No alternative for client side scripting and even if, JavaScript isn't a bad language, it doesn't force you to do hateful things like prefixed variables. Otherwise C# is a very cool language for backends, especially when you find some way that isn't ASP.

Another thing I hate about PHP, mixing front end code and back end code in the same file.
>>
File: 1.jpg (98KB, 1653x528px) Image search: [Google]
1.jpg
98KB, 1653x528px
If anyone is running a website with ads,
how much could i get with this kind of traffic? (with a discreet banner)
>>
Does anyone know how to make MMO class/skill simulators like these?

http://www.tosbase.com/tools/skill-simulator/
http://calc.irowiki.org/
>>
https://studio.code.org/s/mc/reset
>>
>>51375611
Depends on your content.
>>
>>51373537
>>51373537
Although it doesn't actually matter (due to variable hoisting), you're creating the fizzbuzz variable everytime the for statement increments.

var fizzBuzz = function(incrementTo) {
var result;
for (var i = 1; i <= incrementTo; i++) {
result = "";
if (!(i % 3)) {
result += "Fizz";
}
if (!(i % 5)) {
result += "Buzz";
}
console.log(result || i);
}
};


You could even create a function of it which allows the user to pass in a value for increments to go to. This function would also keep your fizzbuzz and increments variables from polluting the global scope.

Also, 0 is not truthy (true), so you can simplify the if statement.
>>
File: webpi.ashx.png (6KB, 200x200px) Image search: [Google]
webpi.ashx.png
6KB, 200x200px
Does anyone here have any idea if I should continue learning C#, or move onto some other language?

C# is fun to write in as it's strongly typed, but I don't like how it's strongly coupled with Microsoft. I've used a little PHP (but so far not enjoyed it), and I've used Node.JS (and really enjoyed it).

NEETs need not answer, I'm looking for professional opinions only.
>>
what exactly does does Node do? is it like Flask? you tell the server what pages to display and all that good stuff?
>>
What's the best persistence layer to use with Silex?
>>
>>51377017
node + express is like flask
the point of node is to be only asynchronous (mono thread).
>>
Any tips for someone about to embark on his first freelance deal?
>>
>>51376483
1. Listen for click
2. Look up data in a structure/AJAX
3. Append
4. goto 1
>>
File: 1441994960693.jpg (25KB, 400x386px) Image search: [Google]
1441994960693.jpg
25KB, 400x386px
>>51361173
>using Google's optimized procedurally generated classnames as an actual example
>>
>>51377109

how much do you make freelancing? whats the project
>>
I know I know, it's PHP, but my course makes me study PHP.

I'm really stuck here, how can I make this save the values of the $values array into the file without appending them to the end of the file? I need the existing lines to be re-written, I've tried everything.

function write($values)
{
print_r("Escribiendo al archivo los valores <br>");
print_r(count($values));
print_r($values);
$resultadosFileW = fopen("resultados.txt","wb") or die("error abiendo");
print_r(count($values));

for($i = 0;$i <= count($values);$i++)
{
fwrite($resultadosFileW,"\n\r".$values[$i]);
}

}
>>
File: phplove.png (15KB, 1054x188px) Image search: [Google]
phplove.png
15KB, 1054x188px
>>
>>51373537
>increments
>){
>;}
You monster
>>
>>51378632
>>){
Nothing wrong with that.
Thread posts: 318
Thread images: 37


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.