[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
Is this the future you chose? Please make it stop.
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: 48
Thread images: 6
File: mean_small_vertical.png (14 KB, 157x276) Image search: [Google]
mean_small_vertical.png
14 KB, 157x276
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 (35 KB, 600x239) Image search: [Google]
header.jpg
35 KB, 600x239
>>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 (442 KB, 907x475) Image search: [Google]
1425434364013.png
442 KB, 907x475
>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 (5 KB, 303x167) Image search: [Google]
engie.jpg
5 KB, 303x167
>not using BTXS
>>
File: 1430033054767.gif (45 KB, 296x300) Image search: [Google]
1430033054767.gif
45 KB, 296x300
>>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 (739 KB, 1636x1823) Image search: [Google]
vomit.jpg
739 KB, 1636x1823
>>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 replies: 48
Thread images: 6

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.