[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]

Preferred Web Frameworks and why >Django >It's python

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: 102
Thread images: 10

File: 1445768477_598060_dac5_2.jpg (42KB, 750x422px) Image search: [Google]
1445768477_598060_dac5_2.jpg
42KB, 750x422px
Preferred Web Frameworks and why

>Django
>It's python and you can get things done really fast
>>
File: flask.png (10KB, 180x161px) Image search: [Google]
flask.png
10KB, 180x161px
>Flask
>It's python and you can get things done really fast
>>
File: smooth-spiral.png (13KB, 167x246px) Image search: [Google]
smooth-spiral.png
13KB, 167x246px
Scala + Play
because job security

It goes way over the head of most pimple-faced fresh graduates :)
>>
>>60866076
Django is only relevant for old fashioned CRUD. Bad ORM for complex queries. Hard to work with React/Angular
>>
>>60866106
Definitely Flask.
>>
Rails because it does all the boilerplate for you, get your CRUD app to production in half the time compared to django.
>>
>>60866242
> Bad ORM for complex queries
You can use SQL alchemy
> Hard to work with React/Angular
?
>>
>>60866287
how?
>>
>>60866269
> Rails
Take your shit and go away
>>
>>60866249
Just able to confirm.
>>
>>60866296
Sorry I'll take it back to my $140k/yr remote devops job where my apps actually ship to production. Do you even ship bro?
>>
>>60866076
I use Node because it's like me: capable, dangerous and with a wicked sense of humor.
>>
just a reminder that django scales
https://www.slideshare.net/road76/scaling-django
>>
>>60866220
Heard play is gay because it uses globals everywhere
>>
>>60866351
Hello Pajeet
>>
File: werkzeug.png (19KB, 180x180px) Image search: [Google]
werkzeug.png
19KB, 180x180px
>>60866076
I only make simple stuff and don't interact with browsers much.

Werkzeug + Custom REST router class suits me pretty well.
>>
File: vibe.d.png (9KB, 205x58px) Image search: [Google]
vibe.d.png
9KB, 205x58px
>>60866076
>>
I like Bottle + uWSGI.
>>
>>60866999
What's the big advantage of Bottle over plain Werkzeug?
Routing with decorators feels unnatural to me and last time I used it the configuration was all over the place, plus the relative imports fail when using reloader
>>
>>60867110
I haven't used Werkzeug so I couldn't say. I haven't really had a need to configure Bottle so it's as easy as

app = Bottle()

@app.get('/path')
# function that handles get requests

@app.post('/path')
# function that handles post requests


and so on. But I'll check out Werkzeug.
>>
>>60866076
>>60866076

Daily reminder that Django is a cuck framework:

https://github.com/django/django/pull/2692
https://github.com/django/django/pull/2692
>>
>>60867415
Well since Django is clearly btfo, what's the next best option? Learning python 3 for netsec and want to figure out more uses for it
>>
>>60867415
What's best next option then? Back to CGI scripts? How's https://learnbchs.org/
>>
>>60866220
>:)
>no caret
kys
>>
Node.js + Express

>can be written quickly and easily
>handles JSON (which is basically universal at this point) better than any other language
>has a package for literally everything
>is pretty lightweight and fast (not extremely but usually good enough)
>very dynamic and easy to adapt to changes
>webscale
>>
>>60868207
I see you like working with callbacks.
>>
>>60868273
I use promises for everything and they're not bad. Kind of fun actually.
>>
>>60866076
C + Linux Sockets
You all disgust me
>>
spring
its not a meme
>>
File: spring-logo.png (6KB, 346x202px) Image search: [Google]
spring-logo.png
6KB, 346x202px
Spring
>arguably the most advanced backend framework
>huge amount of resources
>industry standard
>battle-tested in enterprise
>has many modules and seamlessly integrates with many implementations of JEE standards, which together provide advanced solutions for everything you could ever need in a backend application
>has great IDE support in both IntelliJ and Eclipse
>strikes a good balance between implementing new features and keeping backwards compatibility
>supports both manual configuration approach and "convention over configuration" approach with Spring Boot
>gratis and libre
>backed by VMware, Inc.
>has a dedicated developer conference taking place every year since 2006 https://springoneplatform.io/
>officially supports Kotlin
>is used by Amazon, Disney, Samsung, Mercedes-Benz, Visa, ESPN, Bank of America and many others
>>
>>60868397
>cons
it's Java
>>
>>60868443
and that basically ruins it
if you must do java, yes, use spring, but otherwise just use anything else. even nodejs is better at this point. java (and especially in the enterprise) is pure cancer
>>
>>60868443
>officially supports Kotlin

also there's nothing wrong with Java
>>
>>60868515
>even nodejs is better
this statement is never true
>>
>>60868397
Nice copy-and-paste of buzzword-laiden text. I'll bet you have no idea what half the words mean.
>>
>>60868665
I wrote it myself and then saved it for threads like this one. So I guess it technically is a copy-and-paste
>>
>>60868636
>there's nothing wrong with Java
http://www.fizzbuzz.enterprises
>>
>>60868689
>some guy wanted to make a joke and overused the shit out of design patterns to write a fizzbuzz
is this supposed to be an argument? you can write 1000 LOC fizzbuzz in any language if you try
>>
>>60868397
I agree Spring is great and all, but this is about your "preferred" framework. I took that to mean the one you personally like to use. Do you really like writing Spring code more than something written in a scripting language?
>>
>>60868712
yes, I use spring boot for my current hobby project
>>
Used flask alembic.

Now i use Node. Just werks
>>
>>60868719
my god... have you ever tried node.js though? it's 1000% comfy
>>
>>60868726
I did. it's okay, nothing spectacular
>>
>>60868726
>nodejs
I keep hearing about this and I want to get into it. How do you recommend I proceed?

I don't know js at all. I know python, ruby, java, scala, php.
>>
>>60868766
install npm + node. install express. make a "hello world" web server (follow the instructions in express docs). keep fucking around with express to learn about routing and middleware. explore the vast npm modules and start building web apps.
>>
>ctrl+f "laravel"
>0 results
thread full of neets discussing frameworks again
>>
File: IMG_0519.png (58KB, 576x402px) Image search: [Google]
IMG_0519.png
58KB, 576x402px
>nodejs
>>
>>60868801
https://www.indeed.com/jobs?q=laravel+php&l=
>671 listings
https://www.indeed.com/jobs?q=spring+java&l=
>11,389 listings

who are you calling a NEET? :^)
>>
>>60868801
>laravel
>go to https://laravel.com/
>The PHP Framework For Web Artisans
>Laracasts
>It's Kinda Like Netflix for Your Career!
That's one of the most hipster pages I've seen in a while.
>>
>>60866076
>It's python and you can get things done really fast
If only Python could do thing really fast.
>>
>>60868801
fuck php desu
>>
>>60868818
>>nodejs
That's just js without the node. Node.js would be this:
getData(function(a){  
getMoreData(a, function(b){
getMoreData(b, function(c){
getMoreData(c, function(d){
getMoreData(d, function(e){
...
});
});
});
});
});
>>
>>60868864
>he doesn't know about promises and arrow functions
>>
>>60868864
in 2011 maybe
>>
>>60868818
what is var x * 3 ?
>>
>>60868689
this is the most retarded fizzbuzz ive ever seen
public class TestConstants {

private TestConstants() {
super();
}

static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ_BUZZ_11_FIZZ_13_14_FIZZ_BUZZ = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ_BUZZ_11_FIZZ_13_14 = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ_BUZZ_11_FIZZ_13 = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ_BUZZ_11_FIZZ = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ_BUZZ_11 = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8_FIZZ = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7_8 = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ_7 = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n";
static final String _1_2_FIZZ_4_BUZZ_FIZZ = "1\n2\nFizz\n4\nBuzz\nFizz\n";
static final String _1_2_FIZZ_4_BUZZ = "1\n2\nFizz\n4\nBuzz\n";
static final String _1_2_FIZZ_4 = "1\n2\nFizz\n4\n";
static final String _1_2_FIZZ = "1\n2\nFizz\n";
static final String _1_2_ = "1\n2\n";
static final String _1_ = "1\n";
static final String STANDARD_FIZZ_BUZZ = "standardFizzBuzz";
static final String SPRING_XML = "spring.xml";
static final int INT_1 = 1;
static final int INT_2 = 2;
static final int INT_3 = 3;
static final int INT_4 = 4;
static final int INT_5 = 5;
static final int INT_6 = 6;
static final int INT_7 = 7;
static final int INT_8 = 8;
static final int INT_9 = 9;
static final int INT_10 = 10;
static final int INT_11 = 11;
static final int INT_12 = 12;
static final int INT_13 = 13;
static final int INT_14 = 14;
static final int INT_15 = 15;
static final int INT_16 = 16;

}
]
>>
>>60868689
>fizzbuzz requiring a thousand lines of code and string constants for every display line
for each in range(1,20):
a=''
if not each%3:
a+='fizz'
if not each%5:
a+='buzz'
if not a:
print each
else:
print a
>>
>>60869017
>>60869072
the joke
-------------------
your head
>>
>>60866076
>It's python
Not necessarily an advantage.
>and you can get things done really fast
As with most relevant web frameworks.
>>
>>60868890
Those don't make Node much better.
>>
>>60869072
>string manipulation when a simple branch would work just as well
>>
>>60868397
 Poo.init() 
>>
>>60869100
an advantage for me since is a language that I like the most and is really fast to write with
>>
>>60868682
Did they pay you well for the copypasta or do they just provide you with the layout and you add the green text and change it for the forum you post it on?
>>
>>60866106
This, Django is a messy framework to learn. Too many abstractions. Forms, Model Forms, Class based Views, Class Based Generic Views, Template Views.
>>
>>60866361
Everything can scale, not out of the box, but you can tweak any framework to make it work, remember all of them are open source.
>>
>>60868284
And nowadays you also have async. So JS is not a pain in the ass anymore.
>>
>>60868397
Try to discover how to handle authentication by hand. It makes a lot with @SpringBootApplication, but then you want to make a specific thing and you have to shoot yourself, between all the version changes and the disparity between SpringBoot and Spring you feel lost.
>>
Nodejs because I can make shit easily without actually having to understand what any of it does
>>
>>60872634
poo().then(() => {loo()});
>>
>>60872683
This is very basic function sir I make much more complex webscripts than this
>>
>>60872695
like that?

poo().then(() => {loo()}).catch(pajeet);
>>
>>60872634
Hello Pajeet
>>
>>60872756
This is not my name sir.. Perhaps you have see my cousin pajeet commenting on Mark Zuckerbergs Facebook post? ;p
>>
>>60866076
Frameworks are for poo in loos.

I use the React/Redux/Immutable.js/Webpack/Node.js masterrace stack.

Especially anyone who writes javascript without Immutable.js is sub-human.
>>
>>60872695
try{
if(inToilet){
throw new Poo();
}
}
catch(Poo p){
Designated.Street.Add(p);
}
>>
>>60872813
I don't think these are good java codes my friend xD you should go back to khanacademy perhaps xD
>>
File: kys-my-man.jpg (147KB, 1500x1500px) Image search: [Google]
kys-my-man.jpg
147KB, 1500x1500px
>>60872813
>>
>>60872841
No, sir, it has more lines and more lines means better code.
>>
>>60872981
Racism aside why do a lot of indians call each other sir and never admit to not knowing anything
>>
>>60873031
Indians have a very strong sens of hierarchy.
And they consider it rude to tell their superiors they don't know something.
>>
>>60868844
>use pypy
>>
>>60866342
Well, not really. We test apps like yours, they are extremly bloat and security is often a mess ...
>>
>>60866106
>>60866249
>>60866076
Tried Django getting started in python about a year ago. It was not beginner friendly. Got onboard for flask but it doesn't handle OOP well because of decorators unless your flask implementation is your 'server' or 'main'.
>>
>>60874432
npm install gentoo
>>
>>60866342

How do you get a remote job like that? I have horrible ibs so I can't do office work. I got into web dev hoping for an entry level remote job. Harder said than done though
>>
>>60874602
Entry level remote jobs are pretty rare. I'm old and in senior roles and companies recruit me, i don't apply, that gives a lot more leeway for me to make demands like a fully remote position.
>>
>>60866076

reactive agile+C# with css grid based rendering containers
>>
File: rails.png (14KB, 640x320px) Image search: [Google]
rails.png
14KB, 640x320px
>>
>>60868766
>I don't know js at all.

Then start by learning JS. NodeJS is basically just regular JS, minus a few things, plus a few things. Since most instances where you'd need to use Node for a fullstack app are probly gonna use at least some JS too, you'd be doing yourself a favor.

Also, >>60868795 is right. NPM is yuge.
>>
>>60866242
>Hard to work with React/Angular
Django-REST
>>
>>60867415
not as cucked as drupal who fired a dev for having problematic consensual sex https://www.garfieldtech.com/blog/tmi-outing
>>
>>60877215
Lol the hypocrisy
>>
>>60868864
Today:
async function getLotsOfData() {
const a = await getData()
const b = await getMoreData(a)
const c = await getMoreData(b)
const d = await getMoreData(c)
const e = await getMoreData(d)
...
}
>>
Which web dev framework is best for making tons of money from freelancing?
>>
>>60877669
cocks.js
>>
>>60874432
I started learning it and I found it pretty beginner friendly for a dev that already knows how Python works
>>
>>60878079
I thought pussy.js had a higher market value? Where can I go where people give cocks.js a high value?
>>
>>60867415

>leader instead of master
>follower instead of slave

What the fucking fuck... how?!?!? How are people cucked to this level???
>>
>>60878805
this is very common in tech
>>
>>60866351
Your post makes me fell ashamed that I use node
>>
>>60874602
More likely than not he's a shit-posting NEET.
Thread posts: 102
Thread images: 10


[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.