2026-09-14 17:16

Status:


GA - Module 1 - Generative AI Basics for Software Development

==Generative AI Basics for Software Development

  • Introduction to Generative AI in Software Development:
    • Generative AI- basically tools that have helped developers code faster and smarter

    • Modern AI- basically, you can just have a prompt that would instruct the AI on what to do or how to create it, and then the AI would proceed to help you out and create these database models or the UI or API or whatever it is that you asked for it to use

    • These tools like github copilot, claude code, and all other such things

    • Generally you can have an AI agent understand your entire codebase and your entire model, and have it help you build things like components, state logic, and unit tests

    • AI-powered development workflow

      • Morning stand-up where the AI reviews commits from the previous day and provides the developers with different suggestions
      • Feature development, where the AI generates initial implementation across multiple different files and what not
      • Code review, in which the AI automatically scans for any security vulnerabilities and bottlenecks before human review
      • Then the AI would generate tests and test cases for the code, including things like edge cases and all of that good stuff
    • Autonomous AI agents - these basically allow for you to do other work while they would actually function like real life software devs, in the sense that they would analyze a code base, identify problems, add fixes, generate tests, and then submit pull requests

    • they are good for automated maintenance of daily tasks like updated and code formatting or documentation

    • And can generally be used for a lot of things like bug fixes and reports

    • You can add in screenshots over to your AI in order to fix a UI, and its really good based on what you generally give it, it can find code vulnerabilities, fix UI issues, and all of the general other stuff you would expect an AI to do, basically, our jobs are so fucking over

    • Although AI does make it very fast to produce and commit code, a real life person still has to actually review it and make sure that it is all good and functional before it can be pushed

  • Leveraging Generative AI in Software Development Lifecycle:
    • Role of AI in SDLC includes: requirements gathering, design, development, testing, deployment, and maintaince, so basically it touches upon every single part of the entire SDLC

    • In requirement stores, it can process user stores through the natural language processing, to pick out the different needs that they might have, picking out the most important ones automatically

    • It can basically use LLMs in order to extract insights from interviews, tickets, and documents, and auto check them against business rules

    • Also allowing for fast analysis of historical data, and easy creation of requirement documentation

    • During design, an AI might be able to provide architectural recommendations and system diagrams from descriptions you provide

    • Your AI can generally understand larger architecture needs, and therefore use them to analyze requirements and constraints, giving out suggestions based on the given trade offs

    • It can help you plan successful design, and also include ways to make your code more efficient and optimized

    • It can also look directly from code and create documentation and design very easily

    • In development they can actually generate code for you, and refactor it as well

    • It provides high level understanding of your code and your code base, with the needed awareness of context for writing into the codebase

    • Tools like cursor, Github Copilot, and Claude Code all are used in order to develop complex functions from natural languages and prompts, with real time review and refactoring

    • For testing, they can write tests for you, including ones that would require certain edge cases that a regular developer might not think of, they can also predict potential failures and areas of error

    • They can create really good tests for things like future issues and edge cases, making sure that you code is very bulletproof and does what you need

    • It has things like unit, m 2 m, black-box, all of the good different kinds of tests there are

    • In deployment, AI can be a part of or manage an entire CI/CD pipeline, and automatically add in things like security scanning as well

    • Integrates intelligence throughout the entire pipeline for better delivery

    • It embeds continuous vulnerability checks and maintains velocity in the idea of production, allowing for faster and better CI/CD

    • In maintenance, it can help to monitor the performance, patch updates, and also predict system failures while maintain automated update tasks

    • Yeah bro its AI, it exits

  • Large Language Models:
    • Large Language Models (LLMs) are basically AI models that are trained on millions and billions of different points of data in humongous datasets

    • They use deep learning techniques to learn from things like books, research papers, code repos, and websites, basically the whole internet, or whatever anthropic can get their hands on

    • They have multimedia capabilities, and most can generally process, and even create, text, images, audio, video, and code directly, making them very useful for use

    • This lets them produce coherent and contextually relevant outputs

    • They excel in natural language processing, which allows them to basically converse like a real human being

    • The intelligence of them allows for them to use different tools and integrate web searching and analysis. They can call different functions, and if run locally on a system, they are able to autonomously execute tasks on your machine

    • This also allows them to actually understand and comprehend very large code and databases

    • Some popular models include: Claude, Gemini, Mistral, GPT-4, LlaMa

    • Claude this is the popular one from anthropic, and emphasizes safety, reasoning capabilities and problem solving, and an extended context windows (sometimes over 200, 000) tokens

    • GPT is open AI’s models and they basically have things like Multimodal processing, and advanced reasoning

    • These are the things that would power things like ChatGPT, and are the things that are also integrated across many Microsoft ecosystems

    • Gemini is Google’s advanced multimodal AI system, which powers many different google services, and offers but does not exceed or necessarily currently excel in common tasks like text, code or visual things

    • LlaMa this one is Meta’s open-source model and this basically means its the only free one out of all of the other models here, it has good support and a lot of research is going into it, but because it is not paid, it does not have as strong reasoning capabilities

    • These larger models are much better at overall code base reasoning and are therefore able to understand repository-level code, general entire applications from scratch given just natural human language descriptions, allow for grand architecture planning for large applications, and help with real time root cause debugging

    • Given natural output and real tests and reasoning, they are able to provide outright issue detection, suggest contextual fixes, and generate automatic patches with real runtime-behavior

    • They are basically like another very smart dev that works along side you at basically lightning speed, allowing human devs to code much faster and give them a lot of tool acceleration, and explanations as well

    • Pasted image 20260914194713.png

    • They are trained on VAST amounts of different frameworks and programming datasets, and are therefore generally knowledgeable on nearly every single concept out there

    • They are great for real time leveraging of programming concepts and for allowing code generation and creation very quickly and easily

    • They can search code repos, and check out docs on the fly was well, allowing for people to basically get a decent idea of all of the tools as long as something exists out there online

  • Natural Language Processing and It’s Significance:
    • Natural Language Processing is basically the process of taking in natural human text as an input, and then processing it into something that the AI model could genuinely understand

    • This is actually very similarly done inside of the parser process inside of the programming language pipeline because you take in real works and then tokenize them and turn them into real instructions

    • Transformer models use self-attention in order to bidirectionally split up the text, allowing for better capturing of context than older approaches

    • Vector Embedding basically convert text into numerical representations, allowing for things like semantic search and similarity matching beyond just simple work interpretation

    • Pre-trained foundation models which allow for engineers to fine-tune them or prompt-engineer them, takes away the need for you to train your given model from scratch

    • In more traditional approaches, you would have manual feature engineering and statistical methods, think of how the number AI works basically

    • However, now there is this concept of transfer learning where you just take a model that is already taught based on these billions of tokens and it just takes in input and you can shape it a bit more given whatever you want it to specialize in

    • This is done via things like Retrieval-augmented generation (RAG) or Fine Tuning

    • NLP Frameworks

      • Hugging Face Transformer, which has thousands of pre-trained models, and includes some big names like BERT, GPT, T5 and other domain-specific variants
      • It also integrates very easily with matrix dependent math libraries like PyTorch and TensorFlow
      • LangChain orchestrates LLM-powered apps, and it uses chains, agents, and memory, making it ideal for complex applications
    • Some LLM providers in the current market include: OpenAI GPT, Anthropic Claude, Google Gemini, and Meta LlaMa, which are all basically super smart and great for use

    • There are also cloud based AIs that you can access with an API: AWS Comprehend, Azure OpenAI service, and Google Vertex AI

    • Vector Databases like Pinecone, Milvus, Qdrant, Chroma, and others are critical for RAG implementations and semantic search using embedding

  • Reading: Tokens in Generative AI:
    • What are tokens?

    • Tokens are the fundamental units that large language models (LLMs) use to process text. Think of them as the “currency” of AI; everything you pay for is measured in tokens.

    • Before any AI model processes your prompt, it breaks down your input into tokens using a process called tokenization. These tokens don’t always align perfectly with words:

    • “Hello world!” → 3 tokens: [“Hello”, “world”, ”!”]

    • “AI-powered” → 3 tokens: [“AI”, ”-”, “powered”]

    • “tokenization” → 2 tokens: [“token”, “ization”]

    • Tokens directly influence several critical aspects of working with AI models:

    • Token usage directly affects cost. Every API call incurs a charge based on the number of tokens used, both for input and output.

    • The number of tokens also impacts performance, as higher token counts can increase response latency.

    • Additionally, each model has a maximum token limit (for example, 200K, 1M, 2M). This is known as a context window.

    • Better token management leads to better quality of outputs.

    • Therefore, it is important to know how many tokens your text contains.

    • Real-world insight: Output tokens typically cost two to four times more than input tokens. So, optimizing your prompts and responses can significantly reduce the expenses.

==Glossary

TermDefinition
Agentic capabilitiesLarge language model (LLM) features that enable tool use, function calling, web search, and autonomous task execution.
AI agentA system using LLMs and tools to execute multi-step workflows autonomously.
AI bug detectionAn AI process that identifies and proposes fixes for code issues based on patterns and runtime behavior.
AI pair programmingReal-time coding assistance provided by artificial intelligence (AI) tools such as GitHub Copilot and CodeWhisperer.
AI-assisted code generationTools such as Copilot, Cursor, and Windsurf that generate code or refactor existing code based on natural-language prompts and project context.
AI-generated documentationAutomatic creation of diagrams and technical documents directly from code or system context.
AI-native developmentA development approach that embeds AI models and automation into every phase of the software development lifecycle (SDLC) to improve speed, quality, and collaboration.
Architectural recommendationsAI-driven suggestions for optimal system architecture based on requirements and constraints.
Automated security integrationContinuous AI-based vulnerability scanning is embedded directly into development and deployment workflows.
Automated test maintenanceAI updates or removes tests as the codebase evolves to keep test suites accurate and relevant.
Autonomous testingAI systems that independently detect, analyze, and fix software defects.
CI/CD (continuous integration / continuous deployment)Automated processes that build, test, and deploy code to streamline software delivery.
Code generationThe ability of an LLM to create complete functions or applications from natural language prompts.
Context windowThe amount of information a large language model can process at one time.
Design pattern recognitionAI detection of proven design patterns from past projects to guide new system designs.
DevSecOpsA practice that integrates continuous security checks into DevOps workflows throughout development and deployment.
Fine-tuningTraining a pre-trained model further using domain-specific data.
HallucinationWhen an LLM generates plausible but incorrect or fabricated outputs.
Incident predictionAI detection of anomalies and early-warning signals that forecast system failures before they occur.
Infrastructure optimizationAI-driven monitoring that automatically adjusts computing resources to maintain optimal performance and manage costs.
Intelligent CI/CD orchestrationAI-enhanced pipeline management that predicts build times, analyzes changes, and recommends optimal deployments.
Intelligent refactoringAI-powered restructuring of code to improve clarity and maintainability while preserving behavior.
Intelligent test generationAutomatic creation of unit, integration, and end-to-end tests based on code and requirements.
Large language model (LLM)An advanced AI system trained on massive datasets to process and generate language, code, and multimodal content.
LLM frameworksLibraries such as Hugging Face, LangChain, and LlamaIndex for building NLP applications.
Machine learning (ML)field of AI where models use algorithms to learn from data to make predictions and automate decisions.
Multimodal capabilitiesThe ability of AI models to understand and generate text, images, audio, video, and code.
Natural language processing (NLP)A field of AI that enables computers to understand, analyze, and generate human language.
Performance optimization modelingAI simulation that predicts system performance under different loads and recommends scaling strategies.
Performance testing optimizationAI-driven load simulations that uncover performance bottlenecks before deployment.
Predictive defect detectionAI analysis that identifies high-risk areas of code likely to contain defects.
Predictive deployment analyticsAI analysis of patterns and history to identify the safest and most efficient deployment windows.
Predictive requirement modelingAI analysis that forecasts future requirements and estimates complexity using historical data.
Prompt engineeringCrafting precise prompts to guide LLM behavior.
Real-time code reviewInstant AI feedback that flags security issues, style errors, and best-practice violations as code is written.
Requirement validationA quality check that ensures requirements are accurate, consistent, and aligned with business rules.
Requirements analysisThe process of interpreting business needs and converting them into clear, structured requirements.
Retrieval-augmented generation (RAG)An architectural framework that improves the accuracy and reliability of LLM outputs by retrieving relevant, up-to-date information from external data sources before generating a response.
Semantic searchA search method that retrieves meaning-related results rather than keyword matches.
Software development lifecycle (SDLC)A structured process for planning, designing, building, testing, deploying, and maintaining software systems.
Transformer modelA neural architecture using self-attention to understand context in text.
User story generationThe automated creation of user stories and acceptance criteria from high-level business descriptions.
Vector databaseA specialized storage system that indexes data as high-dimensional vector embeddings, enabling efficient similarity searches to retrieve the most contextually relevant information.
Vector embeddingsNumerical vector representations of text that are used for semantic comparison and retrieval.

References