-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using API for the dictionary script #204
Comments
I think the original dictionary script should be fine as it uses the Python's dictionary module which is sort of similar to an API. Python's module are packages which are installed locally with the script.Pros:
Cons:
APIs (Application Programing Interface) are sort of like 'bridges' that connect the user and the API's host server to retrieve data that the user specifies[[ User's script or program ]]<=======>[[ API ]]<========>[[ Another program or online Server ]] Imagine, the dictionary script is a customer in a restaurant, APIs are similar to the waiters of the restaurant and the kitchen is the server or another program that is hosted online. The API takes the info of what the user wants, send it to the server, take the data that the server sends back and deliver it back to the user. Pros:
Cons:
So yeah both have their own pros and cons but I think it's your choice to use the one that's the most suitable for your project. I'm also a novice in programming so if there's any mistakes in my explanation, feel free to correct me : ) But I do hope you can a better glance between API and python modules :D |
Thanks a lot NINJA NOODLE for answering my doubt. I am just 15 yrs old now, and I just have a little experience in python. Thanks again for such an exhaustive and highly detailed explanation. Have a great day... |
I am not sure how that dictionary script is working. But I might offer you a simpler approach. Using an API can be a good idea as it makes the program simple. I don't know the pros and cons of using an Api but if I am wrong, please excuse me and I sincerely apologise and ask you to explain.
The text was updated successfully, but these errors were encountered: