Talula
BinaryByter
Do you have a fully functional, kinda dynamic site running webcpp? Furthermore, more and more web development is moving towards client side rendering, how do you achieve this or isn't this planned?
1) i have written a few, ye 2) client side rendering is a task to be done in js, but I might consider adding webapp possibilities to webcpp
BinaryByter
which would facilitate that
Talula
This is why he is supporting it and you can kill yourself trying to understand it.
BinaryByter
This is why he is supporting it and you can kill yourself trying to understand it.
You didnt bring any point as to why C# is better fit for the job
BinaryByter
Also there are many other libs for web cpp
BinaryByter
But thanks for the nice argument ☺️
Talula
You didnt bring any point as to why C# is better fit for the job
Because it's simpler... and I wouldn't have leaks... I don't have to learn to do complex CGI
Talula
If I want to do CGI programming I can use any other language that I think is easier for me.
BinaryByter
Any examples?
Look at my github account, I have - for example - a little todolist
BinaryByter
granted the code of it is a bit of a slaughterfest because I wrote it on a hurry
BinaryByter
but it gets the point across
BinaryByter
https://github.com/Wittmaxi/TodoList/blob/master/todolist.cpp
Talula
Same applies to using complex language not made for what they are supposed to do.
BinaryByter
Not really
Talula
Asad
I think Csharp is not used widely. Popular languages of today is JavaScript, Python, C++, Java, Swift, PHP, Ruby...
BinaryByter
CSharp is used widely but its bloat
BinaryByter
dont use it
BinaryByter
Java and ruby are bloat too, php is weird to use but not too horrible, js is requirement but shouldnt be used with node as thats bloat too
BinaryByter
Python is kinda bloat too but most importantly it has weird syntax and no types
olli
https://github.com/Wittmaxi/TodoList/blob/master/todolist.cpp
how would you implement a chat? reloading the page on every message sent?!
BinaryByter
how would you implement a chat? reloading the page on every message sent?!
no, in a chat i'd use ajax, with some retrieving of data from the js
Talula
JS with Node isn't really that bad I'm using it with our servers with 10000 devices connected to it using WebSockets and it's working perfectly fine...
BinaryByter
BinaryByter
In general you should use webcpp like a kind of php
BinaryByter
Thats its intended use
Talula
Are we talking about how interpreted languages aren worse than compiled ones? Nice
No... I mean for a specific task it doesn't great with very little effort with 0 blocking code.
BinaryByter
Thats its intended use
But doing ajax is possible in php too, as facebook shows
Talula
AJax is done on client side it has nothing to do with backend.
BinaryByter
exactly
Asad
One more question: What languages best suit for back-end web development? PHP? Java? Python? ...
olli
One more question: What languages best suit for back-end web development? PHP? Java? Python? ...
Again, depends on what you are trying to do. If it's pure backend stuff you can go with C++. Otherwise I would choose Node, because it's fast to develop, rather easy to scale and is widely supported
Asad
Pure?
olli
Pure?
If it does not have anything to do with the rendering of the page.
BinaryByter
But do your own judging
BinaryByter
I'd argue that c++ could be more clean to work with, of you use many different things that are implemented in cpp libs
BinaryByter
or if you need a lot of speed
BinaryByter
php is fine for easy things
Asad
I will go with C++, Java and Python
Talula
php, definitely
PHP has limitation for exmple global stack, limitations with websockets (hard to do) and backend server controls the threading.
Talula
And code is blocking which is fine if you're not a bad programmer like me.
BinaryByter
BinaryByter
Eveb the creator of java will tell you not to use it😂😂😂
Talula
Eveb the creator of java will tell you not to use it😂😂😂
I think he doesn't know the difference between Java and JavaScript.
Talula
Why?
Because Java is old and dying...
Talula
My suggestion for backend development is to use Node with JS.
BinaryByter
not even
BinaryByter
both are slow
BinaryByter
(if you dissagree, I challenge you to write a js interpreter that is faster than bytecode ☺️)
Talula
(if you dissagree, I challenge you to write a js interpreter that is faster than bytecode ☺️)
Totally agree with you on that but I'm sorry I wrote our previous system in PHP, it was painful and slow, I rewrote it in NodeJS and it actually feels like 10x faster to my eyes... but I might be wrong but it does.
BinaryByter
Xd
BinaryByter
edgy
uncle
i have been trying to write a program on 2-D array to print in a circular path. just like this picture.__________________ int main(void) { int m=5, n=m, w=0; int arr[m][n]; int i, k = 0, l = 0; m--, n--; while(k <= m && l <= n) { // Print the row left to right for(i = l; i <= n; ++i) { w=w+1; printf("%d ", w); } // Print the column top to bottom k++; for(i = k; i <= m; ++i) { w=w+1; printf("%d ", w); } // Print the row right to left n--; if(m >= k) { for(i = n; i >= l; --i) { w=w+1; printf("%d ", w); } m--; } // Print the column bottom to top for(i = m; i >= k; --i) { w=w+1; printf("%d ", w); } l++; } printf("\n"); return 0; } ________________________________________ i tried thiscode. but it instead gives this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 :http://www.studyalgorithms.com/array/print-a-matrix-in-
uncle
can some one help me pleae.
BinaryByter
@florianbAT
Anonymous
@BinaryByter
Tushar
i have been trying to write a program on 2-D array to print in a circular path. just like this picture.__________________ int main(void) { int m=5, n=m, w=0; int arr[m][n]; int i, k = 0, l = 0; m--, n--; while(k <= m && l <= n) { // Print the row left to right for(i = l; i <= n; ++i) { w=w+1; printf("%d ", w); } // Print the column top to bottom k++; for(i = k; i <= m; ++i) { w=w+1; printf("%d ", w); } // Print the row right to left n--; if(m >= k) { for(i = n; i >= l; --i) { w=w+1; printf("%d ", w); } m--; } // Print the column bottom to top for(i = m; i >= k; --i) { w=w+1; printf("%d ", w); } l++; } printf("\n"); return 0; } ________________________________________ i tried thiscode. but it instead gives this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 :http://www.studyalgorithms.com/array/print-a-matrix-in-
#include <stdio.h> #define SIZE 10 // Size is always even int main() { int i, j, N; int board[SIZE][SIZE]; int left, top; left = 0; top = SIZE - 1; N = 1; for(i=1; i<=SIZE/2; i++, left++, top--) { // Fill from left to right for(j=left; j<=top; j++, N++) { board[left][j] = N; } // Fill from top to down for(j=left+1; j<=top; j++, N++) { board[j][top] = N; } // Fill from right to left for(j=top-1; j>=left; j--, N++) { board[top][j] = N; } // Fill from down to top for(j=top-1; j>=left+1; j--, N++) { board[j][left] = N; } } // Print the pattern for(i=0; i<SIZE; i++) { for(j=0; j<SIZE; j++) { printf("%-5d", board[i][j]); } printf("\n"); } return 0; }
Tushar
This is for even no. of lines only..
Tushar
I am now trying for odd no. of lines
BinaryByter
@BinaryByter
OFF TOPIC
BinaryByter
I think that it wiuld be more efficient since you save the inits of the for loops, but i'm not 100% sure