+ 1

How can I make a dynamic code?

Code which is dynamic, light weigh and efficient.

16th May 2019, 3:30 PM
Vivek
Vivek - avatar
3 Answers
+ 2
Gotcha. Do you have a particular goal in mind for the program? More so, what's the actual problem you're solving or program you're creating? The same concept holds true as what I said above, in which you'll need some means of storing the data and then interact with the database in order to populate it and make it dynamic. I ask what your program is going to be only because I may have some tips for it. Otherwise, Java / C++ both interact very easily with databases, so you'll want to learn something like SQL or NoSQL. Java with SQL: http://www.ntu.edu.sg/home/ehchua/programming/java/jdbc_basic.html https://docs.oracle.com/javase/tutorial/jdbc/basics/processingsqlstatements.html https://www.geeksforgeeks.org/performing-database-operations-java-sql-create-insert-update-delete-select/ https://alvinalexander.com/java/java-mysql-select-query-example C++ with SQL: https://www.geeksforgeeks.org/sql-using-c-c-and-sqlite/ https://www.geeksforgeeks.org/database-connectivity-using-cc/ https://docs.microsoft.com/en-us/azure/sql-database/sql-database-develop-cplusplus-simple http://www.sqlapi.com/ https://www.codeguru.com/cpp/data/database-programming-with-cc.html ^The links above you get you started with learning more about how to interact with SQL via those languages. I just did some searching for you, so I can't say which resources are better over the others, but they all appeared to be relevant. Master interacting with databases and you'll find it much easier to create dynamic code. Also note, depending upon the type of program you're creating, a database is technically anywhere data is able to be stored and retrieved; this includes local files. So you can also store data into a text file and retrieve it that way, and that's equally viable in order to create something that's dynamic. However, if it's critical information that you don't want others to see or you don't want others to change, it's not a secured means of doing it and thus something like SQL is the more logical option. Best of luck
17th May 2019, 1:10 PM
AgentSmith
+ 1
What type of program are you trying to create and with what language? Let me know and I can give you advice tailored to your need. A good way of making things dynamic is to use a database, then you can have it load whatever data is being stored at that moment. When the database updates the data then it'll populate the data based on what's in the database. That's essentially the basics of how dynamic systems work since it isn't hardcoded or static data.
16th May 2019, 3:59 PM
AgentSmith
0
#AgentSmith I am using java and c++ and trying to create a dynamic and efficient code.
17th May 2019, 2:19 AM
Vivek
Vivek - avatar