[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 | Click for more| Home]

Is this the future you chose? Please make it stop.

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: 48
Thread images: 6

Is this the future you chose? Please make it stop.
>>
>>47729563
No
>>
>>47729563
No it's not the future I chose but I'm glad something is replacing PHP and Apache because I'm sick and anything new is welcome
>>
>>47729563
What are the top two?
>>
>>47729595
>implying it will replace PHP and Apache
What is shared hosting?
>>
>>47729614
MongoDB and well...
>>
>mongodb
shit
>angular.js
shit
>express.js
decent framework
>node.js
decent platform
>>
>>47729614
MongoDB
Express.js
>>
>>47729563
Anglular JS's pretty neat and MongoDB can be useful if used properly, but fuck node.js and everything associated with it.
>>
>>47729563
You've gotta admit that it still beats shitty vanilla PHP code written by someone who learned how to program though outdates tutorials online.
>>
>>47729626
How is express.js a "decent framework" compared to Zend2 or Symfony2?
>>
>>47729644
everything beats shitty PHP code
>>
>>47729645
it's written in js and not php
>>
>>47729644
Wait a few years when the first parts of node will be heavy deprecated. You will see this as in every "easy" language. You want to talk about Perl? I've seen it all.
>>
>>47729676
Okay, that's 1:0 for Zend2
>>
File: header.jpg (35KB, 600x239px) Image search: [iqdb] [SauceNao] [Google]
header.jpg
35KB, 600x239px
>>47729563
>>
>everything.js
>rust has awful syntax
>go still doesnt have generics
>you are still a virgin
the future rocks doesnt it
>>
>>47729780
Why would you need generics in web development?
>>
>>47729780
The lack of generics isn't its only problem. Go's typesystem is abysmal in general, and error handling is needlessly verbose. It also forces you to write imperative code. Most good languages enable you to write in a somewhat functional style, but with Go you can't because of limitations in the type system.

It's also annoying as hell that unused imports/variables cause compile errors. I wouldn't mind if I was warned about it, or if I could somehow add a flag to disable it, but you can't do shit.
>>
Just row against the tide, and use Perl and Nim.
>>
>>47730042
>It's also annoying as hell that unused imports/variables cause compile errors. I wouldn't mind if I was warned about it, or if I could somehow add a flag to disable it, but you can't do shit.
It's so compile times aren't shit, what is the point of you adding unused shit?
>>
>>47730059
/thread
>>
>>47730059
>use Perl and Nim
'no'
>>
>>47730149
Explain further or you're a M.E.A.N.ie.
>>
File: 1425434364013.png (442KB, 907x475px) Image search: [iqdb] [SauceNao] [Google]
1425434364013.png
442KB, 907x475px
>not being SANE master race
>>
>>47730178
I don't like Perl's syntax, and I feel that Nim is a little overkill for webdev.
>>
>>47730042
is this not "somewhat functional style" compared to other strongly typed imperative languages?
package main

import (
"fmt"
"math/rand"
"time"
)

var delay = 200 * time.Millisecond

func pickFunc(fns ...func()) func() {
return fns[rand.Intn(len(fns))]
}

func produce(c chan func(), n int, fns ...func()) {
defer close(c)
for i := 0; i < n; i++ {
c <- pickFunc(fns...)
}
}

func main() {
// time is frozen on Playground, so this is always the same.
rand.Seed(time.Now().Unix())

x := 10
fns := []func(){
func() { x += 1 },
func() { x -= 1 },
func() { x *= 2 },
func() { x /= 2 },
func() { x *= x },
}

c := make(chan func())
go produce(c, 10, fns...)

for fn := range c {
fn()
fmt.Println(x)
time.Sleep(delay)
}
}
>>
>>47729563
>angular
i wish this was good, just gets impossible to maintain for big, complex projects
try aurelia
>>
What's wrong with MongoDB?
>>
>>47730233
>mutable state
nope, not really.
x gets mutated by the functions in that array, which is not a functional way of doing it.
>>
>>47730256
how does a language like c++ do it?
>>
>>47730240
http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/
>>
>>47730238
>big, complex projects

have you heard of ember?
>>
>>47730262
C++11 (and the later standards) support generics and lambda functions, so FP is possible in C++ to some degree.
>>
>>47730278
And anonymous functions are in Go too
>>
>>47730265
yes, there are too many frameworks to try.. i like the look of handlebars too, might give it a try since that is the templating engine they use

should probably try react too.. makes my skin crawl to use a facebook product but its probably ok
>>
>>47730330
actually never mind, looked at react, its shit
>>
>>47730307
True, but you can't implement generic anonymous functions which limits your possibilities greatly.

Most higher order functions require generics.
>>
>>47730330
handlebars is great
>>
File: engie.jpg (5KB, 303x167px) Image search: [iqdb] [SauceNao] [Google]
engie.jpg
5KB, 303x167px
>not using BTXS
>>
File: 1430033054767.gif (45KB, 296x300px) Image search: [iqdb] [SauceNao] [Google]
1430033054767.gif
45KB, 296x300px
>>47729626
>he runs JS serverside
medium-rare kek
>>
I don't see anything wrong with NodeJS being combined with AngularJS.
I use them now for my project.
Tell me why I shouldn't use it
>>
>>47730420
why would there be anything wrong with it, make up your own damn mind you scrublord
>>
File: vomit.jpg (739KB, 1636x1823px) Image search: [iqdb] [SauceNao] [Google]
vomit.jpg
739KB, 1636x1823px
>>47729645
>PHP
>>
>>47730412

The web tools and technologies are so fucking disastrous in their present state that JS isn't really that bad of a thing relatively.
>>
>>47730446
compared to php i guess
at least node has some strong use cases like highly parallel request handling
>>
>>47730427
>why would there be anything wrong with it
You tell me
>>
>>47730263
The title of the article is clickbait, MongoDB is better than a traditional SQL database if you're not a retard with his head up his arse who only uses software because it's popular and know when to use it and when not to.
Thread posts: 48
Thread images: 6


[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]
Please support this website by donating Bitcoins to 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
If a post contains copyrighted or illegal content, please click on that post's [Report] button and fill out a post removal request
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 4Archive shows an archive of their content. If you need information for a Poster - contact them.