|
|
|
|
|
by Vox_Leone
532 days ago
|
|
I have been using LLM to generate functional code from *pseudo-code* with excellent results. I am starting to experiment with UML diagrams, both with LLM and computer vision to actually generate code from UML diagrams; for example a simple activity diagram could be the prompt on LLM 's, and might look like: Start -> Enter Credentials -> Validate -> [Valid] -> Welcome Message
-> [Invalid] -> Error Message Corresponding Code (Python Example): class LoginSystem: def validate_credentials(self, username, password):
if username == "admin" and password == "password":
return True
return False
def login(self, username, password):
if self.validate_credentials(username, password):
return "Welcome!"
else:
return "Invalid credentials, please try again."
*Edited for clarity |
|
1. https://sqreen.github.io/DevelopersSecurityBestPractices/tim...