|
<< Click to Display Table of Contents >> Navigation: Telegram > 2020 > 05 > 26 > Telegram_2020-05-26T12 |
2020-05-26T12:10:11
Yeah, a typical site will have hundreds or thousands of files
2020-05-26T12:10:50
and if, for instance, a file that is accessed only through AJAX, and it has an error in the SQL — I can easily fix it and replace it
2020-05-26T12:29:43
All those separate files also often lead to breakage... people forget to update all files and most things are not tightly bound and late bound so errors only show up at run time. PHP is horrid in so many aspects.
2020-05-26T12:30:00
I agree
2020-05-26T12:30:22
Ive rarely met a dev who actually like PHP and when i do its usually a dev with minimal experience and usually nothing other than PHP - ie theyve never used anything else.
2020-05-26T12:30:25
But I can fix a huge class of simple errors without touching anything else
2020-05-26T12:30:38
And you can break stuff unknowingly more likely the same way :)
2020-05-26T12:31:13
Yeah, I had to use it for a year — and the thing that was most useful to me — was learning the architecture of web apps at a deeper level
2020-05-26T12:31:36
And the language itself is uglier than a hyena
2020-05-26T12:31:39
Can't stand it
2020-05-26T12:31:44
It will force you to. :) For your IW app, try the HTML redirect... very easy and very effective.
2020-05-26T12:32:02
I don't know how to use that
2020-05-26T12:32:13
yeah PHP is fine for small scripting tasks and not bad at that.. but as soon as you get beyond a few hundred lines it falls over quickly.
2020-05-26T12:32:15
redirect...
2020-05-26T12:32:41
There are several ways but the easiest is make a simple JS redirect that says \loading\ and goes to your start URL
2020-05-26T12:32:57
then when upgrade, put a new instance of app at new URL, and then change the HTML to point to it.
2020-05-26T12:33:05
old users will remain at old instance, new users will go to new instance.
2020-05-26T12:33:43
ie type: link mydomain.com \\myapp1
next is
type: link mydomain.com \\myapp2
And you can cycle back and forth or just go 1, 2, 3, 4 and keep taking offline older ones.
2020-05-26T12:34:21
can I hide the myapp2?
2020-05-26T12:34:22
HTTP.sys lets you easily share ports with diff URLs.. IIS too but HTTP.sys is way easier, especially for automation.. a bat file with a few lines could do what you want.
2020-05-26T12:34:53
well you need some thing to differentiate instances.. ports (which have their own set of issues) or paths or something....
2020-05-26T12:35:21
you coudl use type: link ww1.lorenscompany.com and ww2....
2020-05-26T12:36:00
that's a possibility
2020-05-26T12:36:07
we wanted a clean, fixed URL
2020-05-26T12:36:21
but we could make it reasonably transparent
2020-05-26T12:36:50
www. could be your start point redirect... then it redirects to ww1 or ww2
2020-05-26T12:37:19
so to the user, it is a fixed url.. only changes after they start the app... many older load balancers worked this way.
2020-05-26T12:37:20
makes sense
2020-05-26T12:38:50
and as soon as everyone is off the old one, I can bring them back to the original one))
2020-05-26T12:39:11
or leave them on new... and it becomes \current\... then next time 1 becomes new...
2020-05-26T12:39:33
ie 1 is current now...
upgrade:
1 becomes old, 2 becomes current.
next upgrade..
2 becomes old, 1 becomes current.
2020-05-26T12:40:13
yeah, but if we wanted to the original URL to be showing as much as possible, we could just bring 'em all back as quickly as possible
2020-05-26T12:40:18
I got it, thanks for the suggest!
2020-05-26T12:42:00
you could use a start URL, then set new session of each app as root url as a redirect back to www.. that way if they enter ww1.. they will go to www... which wil then sent hem back to current be it 1 or 2...
2020-05-26T12:42:22
ie any new sesino witout start URL you redirect back to www so it can redirect then again to 1 or 2
2020-05-26T12:42:32
that'll work
2020-05-26T12:42:36
and for redirect from www to 1 or 2 use start paths.
2020-05-26T12:43:03
This huge IW app that I'm building — will run for months or years, we're not sure yet
2020-05-26T12:43:27
When it's finished we will switch resources to developing an app, so that we don't have to deal with back button issues and the like
2020-05-26T12:44:29
IW can handle the back situation pretty well by disabling it effectively in many cases. Alexandre can assist there.
2020-05-26T12:44:47
17 can deploy as SPA which also can kill the back button even better.
2020-05-26T12:44:48
Yeah, I'll get that feature when I upgrade
2020-05-26T12:44:51
Looking forward to it
2020-05-26T12:45:03
Yeah, gotta have true SPA soon
2020-05-26T12:45:31
Right now — every time a student answers a question, the webapp gets hit, even if only via AJAX
2020-05-26T12:45:45
Gotta change it so that it only reports back at the end of all the questions
2020-05-26T12:46:06
17 can do that pretty easily.
2020-05-26T12:46:11
can't wait
2020-05-26T12:46:31
I have all the sound clips, videos and images off-loaded to a big CDN
2020-05-26T12:46:51
Got the PG off on a different, powerful server
2020-05-26T12:47:18
So the IW app has much less to deal with
2020-05-26T12:47:32
I should be able to get session sizes down pretty small
2020-05-26T12:47:33
yes, good a practice to have
2020-05-26T12:48:36
With my IW app just flinging text around — we're hoping to be able to service a lot of users per instance
2020-05-26T12:49:16
Tons of different alphabets, but it's just text
2020-05-26T12:49:32
IW apps can easily handle many thousands of users per instance without much tuning needed.
2020-05-26T12:49:39
glad to hear it
2020-05-26T12:49:55
I'll keep you posted as to the numbers we'll achieve
2020-05-26T12:50:08
??
2020-05-26T12:50:20
It will literally be the biggest site ever for teaching languages
2020-05-26T12:50:50
We'll have over 700 languages available in the first two years
2020-05-26T12:51:28
And it will feature something that no other site has ever even attempted — you will be able to study ANY of the languages from ANY of the other languages
2020-05-26T12:51:40
So if your native language is Zulu — you can learn Portuguese from Zulu
2020-05-26T12:51:50
And you can learn Mandarin Chinese from Portuguese
2020-05-26T12:52:01
And Armenian from Korean
2020-05-26T12:52:09
etc to the power of n
2020-05-26T12:54:46
———-
2020-05-26T12:54:49
New issue
2020-05-26T12:54:54
Did you guys ever fix this?:
2020-05-26T12:54:56
2020-05-26T12:55:02
It should be:
2020-05-26T12:55:09
2020-05-26T12:55:19
cool
2020-05-26T12:55:28
I have an older version, and so I might not be seeing the change that you already made
2020-05-26T12:55:36
type: mention @Alex7691
2020-05-26T12:55:50
specifying the type has not been needed for maaany years
2020-05-26T12:56:09
and slightly bloats the page size needlessly
2020-05-26T12:56:22
not a huge issue, but no sense in not fixing it