Design Patterns Software Design Patterns Design patterns are common architectural approaches that have been observed in software engineering practices. A pattern is a description of an approach, how it is expressed in a programming language and what it is used for. Solid Principles In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible, and maintainable. Single Resposibility Principle Open Close Principle Liskov substitution principle Interface segregation principle Dependency inversion principle Gama Categorization (Gang of Four) Design patterns are typically slit into three categories Creational Deal with the construction of objects;constructor, DI, reflection;single statement, stet-by-step Builder Fluent Builder Factory Prototype Singleton Structural Defines the structure (Interfaces, all API) Behavioural Focus on communication among objects Other Pattern...
Open AI ChatGPT Prompt Engineering source: https://www.udemy.com/course/ultimate-chatgpt-course-for-beginners Temperature Temperature controls the randomness of the AI's response and the temperature range goes from 0 to 2. The higher, the more random your response is going to be. So if you set a high temperature like 1.8, your AI is going to become really wild and throw some unexpected and creative outputs out there. But if you go for a lower temperature setting of maybe 0.2, it's going to play more safe and sticking to the most likely responses. Remember, going back to the previous video in the course, when it comes to understanding how ChatGPT actually works, it's based on predicting what the next word is going to be. So higher temperatures means it gets more creative in predicting the next word. Let's take a look at this in action. So I've opened up a new chat. I'm going to tell ChatGPT use temperature 0.2 in our conversation. And you can see, of co...