• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

New AAC.. But not made in PHP

oen432

Legendary OT User
Joined
Oct 3, 2014
Messages
1,244
Solutions
41
Reaction score
1,321
Location
Poland
GitHub
Oen44
Well it's my choice! You're of course welcome to use something else, but I appreciate your feedback nonetheless
Ofc it is your choice. I have no intention of talking you out of this project.
right now the main focus is 1.2.
1.3 is the development version which is also the newest, when 1.3 is done, it will be versioned as 1.4.
You can write bad code on any language =). The performance you talk about has 0 impact, you are likely to be waiting for I/O or network latency than waiting for Python... Ruby is also slow and theres Ruby on Rails still being used!
It's language syntax that sucks, bad code has nothing to do with this. But you will be waiting for Python to finish executing and execution time is what matters. Ruby also sucks, entire code looks like pseudocode, hell PHP is also ugly as hell (fuck these $ signs) while we are on the topic of web development.
 
Last edited:

Levi999x

AoT
Joined
Dec 14, 2017
Messages
1,430
Solutions
19
Reaction score
706
Location
Germany
Well it's my choice! You're of course welcome to use something else, but I appreciate your feedback nonetheless. ❤️




I appreciate the info, maybe at some point I'll look into it, but right now the main focus is 1.2. ♥️

why 1.2 and not 1.3?

just asking
 
OP
Tarek1337

Tarek1337

Legendary OT User
Joined
Jun 9, 2012
Messages
3,581
Solutions
3
Reaction score
1,163
Location
Sweden
Sorry for the sudden silence, I got a bit busy in March with military stuff, then in April I caught COVID-19 and was sick for like three weeks or so.

Now that I'm banned from Discord, I'll have more time to work on this, hopefully I'll have something to show in the upcoming days. <3
 

Znote

<?php echo $title; ?>
Staff member
Global Moderator
Premium User
Joined
Feb 14, 2008
Messages
6,868
Solutions
243
Reaction score
1,707
Location
Norway
GitHub
Znote
Hello hello! So for the past few days I've been working on a new AAC, .. that is made in Python 3.8 (currently using FastAPI with Jinja 2)

That is really cool! :D
I made my bachelor thesis in Python 3 about 7 years ago (Znote AAC is 9 years old, omg...), wrote a backend json API with Flask. If I didn't already have Znote AAC today (or then), I would probably have built it using Python, and later/now in Golang. Not because of performance, but because these are great languages to learn. And that is the best reason to build anything in an open source community.
Python is super relevant today, and they have a great tools to learn AI and machine learning, which very well may be the future of all software things.

And when it comes to an OT website, no matter which language you opt for, it will not be the bottleneck. (bad code probably will). So picking a language should boil down to what you would like to learn, what you would like to code in.

I miss some sort of tiny portable mysql server (its almost as if I'm missing sqlite), so it would be easy to create tiny self contained (TFS, database, web) server stack in one easy bundle. But then again I must admit, I should probably just learn docker.

PHP is also ugly as hell (fuck these $ signs) while we are on the topic of web development.

Whaat?! I feel like a badass punching in those dollar signs yo! :cool:
But since I'm using a localized keyboard, I have to macro-bind it for efficient usage. (Else I have to press altGr-4 to instantiate a variable). xD
 
OP
Tarek1337

Tarek1337

Legendary OT User
Joined
Jun 9, 2012
Messages
3,581
Solutions
3
Reaction score
1,163
Location
Sweden
That is really cool! :D
I made my bachelor thesis in Python 3 about 7 years ago (Znote AAC is 9 years old, omg...), wrote a backend json API with Flask. If I didn't already have Znote AAC today (or then), I would probably have built it using Python, and later/now in Golang. Not because of performance, but because these are great languages to learn. And that is the best reason to build anything in an open source community.
Python is super relevant today, and they have a great tools to learn AI and machine learning, which very well may be the future of all software things.

And when it comes to an OT website, no matter which language you opt for, it will not be the bottleneck. (bad code probably will). So picking a language should boil down to what you would like to learn, what you would like to code in.

I miss some sort of tiny portable mysql server (its almost as if I'm missing sqlite), so it would be easy to create tiny self contained (TFS, database, web) server stack in one easy bundle. But then again I must admit, I should probably just learn docker.



Whaat?! I feel like a badass punching in those dollar signs yo! :cool:
But since I'm using a localized keyboard, I have to macro-bind it for efficient usage. (Else I have to press altGr-4 to instantiate a variable). xD
I really appreciate it seeing you comment on this thread, ZnoteAAC is one of my current inspirations, just because it's simply made, but very useful and performant.

Hopefully I'll be able to achieve something similar but in Python!
 
OP
Tarek1337

Tarek1337

Legendary OT User
Joined
Jun 9, 2012
Messages
3,581
Solutions
3
Reaction score
1,163
Location
Sweden
So while working on the create account portion! I noticed there's a secret field for the accounts table.

What is it for? Is it two-factor authentication or password related?
I tried reading the TFS source code, but my C++ knowledge is not the greatest, I appreciate any response.
 

forgee

Veteran OT User
Joined
May 9, 2011
Messages
321
Solutions
16
Reaction score
270
Location
Sweden
GitHub
forgee
So while working on the create account portion! I noticed there's a secret field for the accounts table.

What is it for? Is it two-factor authentication or password related?
I tried reading the TFS source code, but my C++ knowledge is not the greatest, I appreciate any response.
Yes, it is for two-factor authentication.

Best of luck. 👍
 

Znote

<?php echo $title; ?>
Staff member
Global Moderator
Premium User
Joined
Feb 14, 2008
Messages
6,868
Solutions
243
Reaction score
1,707
Location
Norway
GitHub
Znote
So while working on the create account portion! I noticed there's a secret field for the accounts table.

What is it for? Is it two-factor authentication or password related?
I tried reading the TFS source code, but my C++ knowledge is not the greatest, I appreciate any response.

Yep, Two-factor authentication uses a standard known as RFC 6238 to generate authentication tokens, and the secret key is stored in db as account.secret. I have an implementation of it here (setup). and here (login).
 
Last edited:
Top