Homebrew [WIP]NTRDB

  • Thread starter Thread starter OctoNezd
  • Start date Start date
  • Views Views 29,148
  • Replies Replies 221
  • Likes Likes 23
upload_2017-2-27_20-16-56.png

Installed SSL properly
 
  • Like
Reactions: adrifcastr
Hey when i try to upload a plugin i don't see a button to publish. I have already published one plugin
 
Hey when i try to upload a plugin i don't see a button to publish. I have already published one plugin
 
I've been looking at the code and have successfully deployed the python site on my local environment.

However, I'm really confused : Why did you use Python to code the backend of your website?

This is gonna sound like a subjective and elitist opinion, but when I see the lengths you go through to implement basic website features like route-handling, POST/GET HTTP requests, database and REST Api, and yet certain routes don't render well due to having the wrong Content-Type being applied or something revolving around the way you manipulate response headers, and judging from my 4 year+ career experience in web development, I wonder if it would have been better to write it in NodeJS using the ExpressJS engine with a few middlewares thrown in?

Again, not trying to be an ass. I don't have much experience with Python aside from writing file transformation and manipulation scripts that I run once and forget about, but I really believe it could've been done with much less time and efforts using at least some HTTP server framework for Python that's similar to what ExpressJS can do. Response headers are handled manually, which is error-prone and won't scale well in the future.

I think this is some impressive code, don't get me wrong, the complexity of the process is impressive, however there's without a doubt a much faster and easier way to write the backend of your website that's also less error-prone.

This is what's not making me want to contribute to the codebase; There isn't enough abstraction with the way you handle serving HTTP requests, making it more painful than it should be.

But really, don't take it personnal, I'm not dissing you, I can tell you're well-versed in Python and are very comfortable in that language just by reading your code, so I know you'll make it in the end. All i'm saying is, with how simple that website's use is (essentially it's a web interface for CRUD interactions with your plugins database coupled with authentication for plugin authors to update their own publications themselves) it could've been done faster and easier, and less error-prone.
 
Last edited by DiglidiDude,
I've been looking at the code and have successfully deployed the python site on my local environment.

However, I'm really confused : Why did you use Python to code the backend of your website?

This is gonna sound like a subjective and elitist opinion, but when I see the lengths you go through to implement basic website features like route-handling, POST/GET HTTP requests, database and REST Api, and yet certain routes don't render well due to having the wrong Content-Type being applied or something revolving around the way you manipulate response headers, and judging from my 4 year+ career experience in web development, I wonder if it would have been better to write it in NodeJS using the ExpressJS engine with a few middlewares thrown in?

Again, not trying to be an ass. I don't have much experience with Python aside from writing file transformation and manipulation scripts that I run once and forget about, but I really believe it could've been done with much less time and efforts using at least some HTTP server framework for Python that's similar to what ExpressJS can do. Response headers are handled manually, which is error-prone and won't scale well in the future.

I think this is some impressive code, don't get me wrong, the complexity of the process is impressive, however there's without a doubt a much faster and easier way to write the backend of your website that's also less error-prone.

This is what's not making me want to contribute to the codebase; There isn't enough abstraction with the way you handle serving HTTP requests, making it more painful than it should be.

But really, don't take it personnal, I'm not dissing you, I can tell you're well-versed in Python and are very comfortable in that language just by reading your code, so I know you'll make it in the end. All i'm saying is, with how simple that website's use is (essentially it's a web interface for CRUD interactions with your plugins database coupled with authentication for plugin authors to update their own publications themselves) it could've been done faster and easier, and less error-prone.
Question: would I have to take a computer science class at my high school to go to college for anything related to computer programming?

Sent from my SM-G550T1 using Tapatalk
 
it could've been done faster and easier, and less error-prone.
Yeah man, just use PHP next time, it's pretty much built for handling web requests, setting response type headers is as simple as "header('Content-Type: application/json');", there's seriously no reason to have done it in Python /s

Dude wrote it in what he knows, using the methods he knows. Maybe Node is easier for you, PHP is easier for me, hell RPG may be easier for some 80 year old IBM programmer, but that doesn't mean it's the answer to his problem. If you want to contribute, cool, contribute, but don't bash on the way he implemented it because "it could be easier". There's easier things than Node too.
 
  • Like
Reactions: OctoNezd
Yeah man, just use PHP next time, it's pretty much built for handling web requests, setting response type headers is as simple as "header('Content-Type: application/json');", there's seriously no reason to have done it in Python /s

Dude wrote it in what he knows, using the methods he knows. Maybe Node is easier for you, PHP is easier for me, hell RPG may be easier for some 80 year old IBM programmer, but that doesn't mean it's the answer to his problem. If you want to contribute, cool, contribute, but don't bash on the way he implemented it because "it could be easier". There's easier things than Node too.
Code:
self.send_header('Content-type', 'application/json')
 
@OctoNezd NTRDBI requires the links to be direct links for raw plg files. please find a way to reject links to zip files, and point it out in red that raw plg file-links are needed, else the plugins won't be downloaded by ntrdbi
 
@OctoNezd NTRDBI requires the links to be direct links for raw plg files. please find a way to reject links to zip files, and point it out in red that raw plg file-links are needed, else the plugins won't be downloaded by ntrdbi
How about auto-unzipping? I know that some people adds .zip links because there multiple regions
 

Site & Scene News

Popular threads in this forum