Discussion:
[Wt-interest] Wt with AngularJS
Freddy Martinez Garcia
2015-07-07 03:39:45 UTC
Permalink
hi guys...

I'm not a web developer, so, I wanna make a few question from my web's
knowledge ignorance:

1.- can I use AngularJS with Wt ?
2.- in that case, Is that a good practice ?
3.- can you give me a piece of code as example ?
4.- can I use wthttp with web service ?? Is it a good idea ??
5.- Is wthttp great to use in the production environment with a lot of
connections ??

I'll like to use Wt in my job, but my boss is the best fan of AngularJS in
the world, and that was the first question... in other hands, our system
have a lot of connections and traffics, so I'll like to use c++ and not
python to do that..

Am I correct with my decision ?

best regards



*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *

*C++ and Qt Senior Developer*

*Lic. Computer Science*

*Buenos Aires, Argentina*
Koen Deforche
2015-07-07 07:00:51 UTC
Permalink
Hey,

With what I understand from AngularJS, it might interfere with Wt, since
some of the things both AngularJS and Wt are doing overlap: single page
navigation model, 'components' (aka widgets), event handling.

The main difference is that with AngularJS you are going to be implementing
a client-server application, while with Wt the programming model is that of
a desktop application (i.e. Wt makes abstraction of the browser as an
interactive canvas). Because of this, Wt also will in general yield a more
responsive web application since each user action only involves (at most)
one server round-trip, while for a client-server application (with REST
resources) you may want to pull data from the server in multiple round
trips, ever increasing so as the application becomes more complex.

If you follow the AngularJS philosphy, and treat the server as a collection
of web services with which you will interact, then you could still use Wt
and wthttp to serve those resources, using static resources, but then you
are literally ignoring 99.9% of the Wt library. Nevertheless, wthttpd is a
good choice for web services. Especially in combination with Wt::Dbo you
can implement efficient database-driven webservices. And wthttpd is indeed
very capable because of it's asio-based architecture which means it scales
to any number of connections.

Regards,
Koen
Post by Freddy Martinez Garcia
hi guys...
I'm not a web developer, so, I wanna make a few question from my web's
1.- can I use AngularJS with Wt ?
2.- in that case, Is that a good practice ?
3.- can you give me a piece of code as example ?
4.- can I use wthttp with web service ?? Is it a good idea ??
5.- Is wthttp great to use in the production environment with a lot of
connections ??
I'll like to use Wt in my job, but my boss is the best fan of AngularJS in
the world, and that was the first question... in other hands, our system
have a lot of connections and traffics, so I'll like to use c++ and not
python to do that..
Am I correct with my decision ?
best regards
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
Freddy Martinez Garcia
2015-07-07 13:28:16 UTC
Permalink
thanks for your answer Koen, best

regards




*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *

*C++ and Qt Senior Developer*

*Lic. Computer Science*

*Buenos Aires, Argentina*
Post by Koen Deforche
Hey,
With what I understand from AngularJS, it might interfere with Wt, since
some of the things both AngularJS and Wt are doing overlap: single page
navigation model, 'components' (aka widgets), event handling.
The main difference is that with AngularJS you are going to be
implementing a client-server application, while with Wt the programming
model is that of a desktop application (i.e. Wt makes abstraction of the
browser as an interactive canvas). Because of this, Wt also will in general
yield a more responsive web application since each user action only
involves (at most) one server round-trip, while for a client-server
application (with REST resources) you may want to pull data from the server
in multiple round trips, ever increasing so as the application becomes more
complex.
If you follow the AngularJS philosphy, and treat the server as a
collection of web services with which you will interact, then you could
still use Wt and wthttp to serve those resources, using static resources,
but then you are literally ignoring 99.9% of the Wt library. Nevertheless,
wthttpd is a good choice for web services. Especially in combination with
Wt::Dbo you can implement efficient database-driven webservices. And
wthttpd is indeed very capable because of it's asio-based architecture
which means it scales to any number of connections.
Regards,
Koen
Post by Freddy Martinez Garcia
hi guys...
I'm not a web developer, so, I wanna make a few question from my web's
1.- can I use AngularJS with Wt ?
2.- in that case, Is that a good practice ?
3.- can you give me a piece of code as example ?
4.- can I use wthttp with web service ?? Is it a good idea ??
5.- Is wthttp great to use in the production environment with a lot of
connections ??
I'll like to use Wt in my job, but my boss is the best fan of AngularJS
in the world, and that was the first question... in other hands, our system
have a lot of connections and traffics, so I'll like to use c++ and not
python to do that..
Am I correct with my decision ?
best regards
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
Loading...