├── .gitignore ├── .github ├── CODEOWNERS ├── PULL_REQUEST_TEMPLATE.md ├── workflows │ └── main.yml └── ISSUE_TEMPLATE.md ├── 02_05.md ├── 03_02.md ├── 02_02.md ├── 03_03 ├── 02_03.md ├── 04_02.md ├── CONTRIBUTING.md ├── NOTICE ├── 07_02.md ├── 02_04.md ├── 07_03.md ├── README.md ├── 01_03.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .tmp 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Codeowners for these exercise files: 2 | # * (asterisk) denotes "all files and folders" 3 | # Example: * @producer @instructor 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /02_05.md: -------------------------------------------------------------------------------- 1 | 1. TAG Framework Prompt: 2 | "Your task is to resolve a bug in the snippet below. You will review the code as a senior software engineer. The goal is to tell me what the error is and how to fix it." 3 | ``` javascript 4 | JSON.parse("[1, 2, 3, 4,]"); 5 | JSON.parse('{"foo": 1,}'); 6 | ``` 7 | 8 | -------------------------------------------------------------------------------- /03_02.md: -------------------------------------------------------------------------------- 1 | 1. "Hey ChatGPT, your task is to generate test data for an e-commerce app. We need data that covers various customer profiles, shopping carts, and transactions" 2 | 3 | 2. "Create test data for a streaming platform like Netflix. Include user profiles, viewing habits, and interaction with content." 4 | -------------------------------------------------------------------------------- /02_02.md: -------------------------------------------------------------------------------- 1 | 1. TAG Framework: 2 | Prompt: 3 | "GPT, your task is to recommend a suitable approach for developing a product feature. I need you to suggest best practices for handling streaming functionality in Javascript. The goal is to ensure that people don't illegally stream movies without a subscription." 4 | -------------------------------------------------------------------------------- /03_03: -------------------------------------------------------------------------------- 1 | 1. Prompt: 2 | "Hey, I need you to generate JavaScript test scripts for my e-commerce app. The scripts should cover customer interactions, shopping cart functions, and transaction processes." 3 | 4 | 2. Prompt: 5 | "Hey, create JavaScript test scripts for a streaming platform. The scripts should test user interactions with the content, including viewing, rating, and pausing." 6 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Copy To Branches 2 | on: 3 | workflow_dispatch: 4 | jobs: 5 | copy-to-branches: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v2 9 | with: 10 | fetch-depth: 0 11 | - name: Copy To Branches Action 12 | uses: planetoftheweb/copy-to-branches@v1.2 13 | env: 14 | key: main 15 | -------------------------------------------------------------------------------- /02_03.md: -------------------------------------------------------------------------------- 1 | 1. TAG Framework 2 | Prompt: 3 | "Hey ChatGPT, your task is reviewing code as an expert code reviewer. I need you to review the code below and suggest possible improvements based on industry standards. The goal is to ensure the code is concise, quality, and clear. 4 | ```javascript 5 | var x = 1; 6 | 7 | function doSomething() { 8 | x = 3; 9 | console.log(x); 10 | var x; 11 | } 12 | 13 | doSomething(); 14 | console.log(x); 15 | “ 16 | ``` 17 | -------------------------------------------------------------------------------- /04_02.md: -------------------------------------------------------------------------------- 1 | 1. Prompt: 2 | “Hey ChatGPT, I have this code snippet that’s supposed to sum up array elements, but it’s throwing errors. Can you help me debug it?” 3 | 4 | ```javascript 5 | function calculateSum(arr) { 6 | let sum = 0; 7 | for(let i = 0; i < arr.length; i++ 8 | sum += arr[i]; 9 | return sum; 10 | } 11 | ``` 12 | 13 | 2. Prompt: 14 | I need to prevent a divide-by-zero error in this Python function. Any suggestions, ChatGPT? 15 | ```javascript 16 | def divideNumbers(a, b): 17 | return a / b 18 | ``` 19 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | Contribution Agreement 3 | ====================== 4 | 5 | This repository does not accept pull requests (PRs). All pull requests will be closed. 6 | 7 | However, if any contributions (through pull requests, issues, feedback or otherwise) are provided, as a contributor, you represent that the code you submit is your original work or that of your employer (in which case you represent you have the right to bind your employer). By submitting code (or otherwise providing feedback), you (and, if applicable, your employer) are licensing the submitted code (and/or feedback) to LinkedIn and the open source community subject to the BSD 2-Clause license. 8 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2024 LinkedIn Corporation 2 | All Rights Reserved. 3 | 4 | Licensed under the LinkedIn Learning Exercise File License (the "License"). 5 | See LICENSE in the project root for license information. 6 | 7 | Please note, this project may automatically load third party code from external 8 | repositories (for example, NPM modules, Composer packages, or other dependencies). 9 | If so, such third party code may be subject to other license terms than as set 10 | forth above. In addition, such third party code may also depend on and load 11 | multiple tiers of dependencies. Please review the applicable licenses of the 12 | additional dependencies. 13 | -------------------------------------------------------------------------------- /07_02.md: -------------------------------------------------------------------------------- 1 | 1. Prompt: 2 | "HuggingChat, could you provide me with a step-by-step breakdown of solving a binary search tree problem, focusing on understanding the logic behind each step rather than just the solution?" 3 | 4 | 2. Prompt: 5 | "Explain to me as if I'm a beginner how to design a scalable social media application, highlighting key components like database schema, API endpoints, and how to handle high traffic. Please include examples for better understanding.?" 6 | 7 | 3. "Present me with a common debugging scenario involving array manipulation in JavaScript. Guide me through your thought process of identifying and resolving the bug, emphasizing the rationale behind each debugging step." 8 | 9 | -------------------------------------------------------------------------------- /02_04.md: -------------------------------------------------------------------------------- 1 | RISE PROMPT Framework 2 | 3 | 1. "ChatGPT, you will act as a senior software engineer with JavaScript knowledge. I want to look up a name from 1 million student records in the database. I know the theory behind data structures and algorithms. Can you guide me through the steps for a JavaScript function to return the name with the best time and space complexity? My expectation is for the algorithm to be fast and efficient during the query." 4 | 5 | 2. "ChatGPT, you will act as a senior software engineer with JavaScript knowledge. I need a feature that allows me to filter my search results based on certain criteria. I'm familiar with the concept of data structures, but I need a step-by-step guide on how to implement this in my codebase. My expectation is a functional and fast search result." 6 | 7 | 8 | -------------------------------------------------------------------------------- /07_03.md: -------------------------------------------------------------------------------- 1 | 1. Prompt: 2 | "Okay, Huggingchat , ask me about a time I had to work with a team and faced a conflict." 3 | 4 | 2. Prompt: 5 | "In my last project, our team had differing opinions on the project's direction. I proposed that we each present our strategies, highlighting the pros and cons. Eventually, we combined elements from each proposal, leading to a solution that satisfied everyone and enhanced the project." 6 | 7 | 3. Prompt: 8 | “Alright, Huggingchat ,ask me about overcoming a personal challenge." 9 | 10 | 4. Prompt: 11 | “I was leading a project with a tight deadline when I realized my approach was flawed. It was tough, but I admitted my mistake to the team, and we brainstormed alternatives. It taught me the value of vulnerability and teamwork in problem-solving. We met our deadline with a better solution." 12 | 13 | 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 7 | 8 | ## Issue Overview 9 | 10 | 11 | ## Describe your environment 12 | 13 | 14 | ## Steps to Reproduce 15 | 16 | 1. 17 | 2. 18 | 3. 19 | 4. 20 | 21 | ## Expected Behavior 22 | 23 | 24 | ## Current Behavior 25 | 26 | 27 | ## Possible Solution 28 | 29 | 30 | ## Screenshots / Video 31 | 32 | 33 | ## Related Issues 34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AI and Developer Productivity 2 | This is the repository for the LinkedIn Learning course `AI and Developer Productivity`. The full course is available from [LinkedIn Learning][lil-course-url]. 3 | 4 | ![lil-thumbnail-url] 5 | 6 |
If you’re looking for new ways to leverage AI as a software developer, this course was designed for you. Get an essential overview of how you can start using AI to improve your development productivity, creativity, and professional problem-solving skills. Join instructor Temidayo Adefioye as he shows you how to successfully integrate tools like Microsoft Copilot and ChatGPT into your workflow, while also appreciating the value of AI as a supplement rather than a mere replacement for your own personal process.
Learn how to upskill and become an AI-powered developer to remain competitive and innovative in the industry. This course covers the following concepts and provides hands-on examples and demos along the way: the role of AI in development, how to effectively use prompts, code optimization, automated testing and quality assurance, intelligent debugging and issue resolution strategies, collaborative development for remote teams, documentation techniques, interview preparation, and more.
7 | 8 | ### Instructor 9 | 10 | Temidayo Adefioye 11 | 12 | Founder of CodeNest Africa | Mentor @MentorCruise | Author 13 | 14 | Check out my other courses on [LinkedIn Learning](https://www.linkedin.com/learning/instructors/temidayo-adefioye?u=104). 15 | 16 | [lil-course-url]: https://www.linkedin.com/learning/ai-and-developer-productivity 17 | [lil-thumbnail-url]: https://media.licdn.com/dms/image/D560DAQFXw8VOLfLmtw/learning-public-crop_675_1200/0/1715191910801?e=2147483647&v=beta&t=3WBiJ-iMratUneH12lLMImS10OE3mnUF-vX_jCTIzf4 18 | 19 | -------------------------------------------------------------------------------- /01_03.md: -------------------------------------------------------------------------------- 1 | 1. CARE Framework: 2 | Prompt 3 | 4 | "In our app's login module, there's a bug that prevents users from signing in. We need a fix to ensure smooth logins. For instance, if a user forgets their password, the recovery link doesn't work as expected" 5 | ```javascript 6 | function loginModule(username, password) { 7 | let users = [ 8 | { username: 'user1', password: 'pass1' }, 9 | { username: 'user2', password: 'pass2' }, 10 | { username: 'user3', password: 'pass3' } 11 | ]; 12 | 13 | let user = users.find(user => user.username === username && user.password === password); 14 | 15 | if (user) { 16 | console.log('Login successful! Welcome, ' + user.username); 17 | return true; 18 | } else { 19 | console.log('Login failed. Invalid username or password.'); 20 | return false; 21 | } 22 | } 23 | 24 | function sendRecoveryLink(username) { 25 | console.log('Sending recovery link to ' + username); 26 | // Code to send recovery link goes here 27 | } 28 | 29 | // Example usage 30 | let username = 'user1'; 31 | let password = 'wrongPassword'; 32 | 33 | if (loginModule(username, password)) { 34 | console.log('User is logged in.'); 35 | } else { 36 | console.log('Attempting to send recovery link...'); 37 | sendRecoveryLink(username); // Bug: This function is called even if login fails 38 | } 39 | ``` 40 | 41 | 2. TAG Framework: 42 | Prompt: 43 | 44 | "Your task is fixing a bug in our payment gateway. We need you to review the code and suggest improvements . The goal is to ensure secure and smooth payment transactions." 45 | ```javascript 46 | function connectToPaymentGateway(amount, cardNumber, expiryDate, cvv) { 47 | let paymentInfo = { 48 | amount: amount, 49 | cardNumber: cardNumber, 50 | expiryDate: expiryDate, 51 | cvv: cvv 52 | }; 53 | 54 | // Simulate connecting to the payment gateway 55 | setTimeout(() => { 56 | let success = Math.random() < 0.5; // Bug: success should always be true 57 | if (success) { 58 | console.log('Payment successful!'); 59 | return Promise.resolve('Payment successful!'); 60 | } else { 61 | console.log('Payment failed. Please try again later.'); 62 | return Promise.reject('Payment failed.'); // Bug: promise is not being returned properly 63 | } 64 | }, 2000); 65 | } 66 | 67 | // Example usage 68 | connectToPaymentGateway(50, '1234567812345678', '12/25', '123') 69 | .then((response) => { 70 | console.log(response); 71 | }) 72 | .catch((error) => { 73 | console.error(error); 74 | }); 75 | ``` 76 | 77 | 3. RISE Framework: 78 | Prompt: 79 | "ChatGPT, you're the senior database engineer . We have a bottleneck in our data retrieval process . Can you guide us through the steps to optimize it ? Our expectation is faster and more efficient data queries.." 80 | 81 | 4. RTF Framework 82 | Prompt: 83 | "ChatGPT, I want you to play the role of a coding mentor . The task is optimizing my algorithm below for faster processing . Provide the solution in a clear step-by-step format ." 84 | ``` javascript 85 | let array = new Array(); 86 | array[0] = 'apple'; 87 | array[1] = 'banana'; 88 | array[2] = 'orange'; 89 | array[3] = 'grape'; 90 | array[4] = 'kiwi'; 91 | console.log("Array elements are: " + array[0] + ", " + array[1] + ", " + array[2] + ", " + array[3] + ", " + array[4]); 92 | ``` 93 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | LinkedIn Learning Exercise Files License Agreement 2 | ================================================== 3 | 4 | This License Agreement (the "Agreement") is a binding legal agreement 5 | between you (as an individual or entity, as applicable) and LinkedIn 6 | Corporation (“LinkedIn”). By downloading or using the LinkedIn Learning 7 | exercise files in this repository (“Licensed Materials”), you agree to 8 | be bound by the terms of this Agreement. If you do not agree to these 9 | terms, do not download or use the Licensed Materials. 10 | 11 | 1. License. 12 | - a. Subject to the terms of this Agreement, LinkedIn hereby grants LinkedIn 13 | members during their LinkedIn Learning subscription a non-exclusive, 14 | non-transferable copyright license, for internal use only, to 1) make a 15 | reasonable number of copies of the Licensed Materials, and 2) make 16 | derivative works of the Licensed Materials for the sole purpose of 17 | practicing skills taught in LinkedIn Learning courses. 18 | - b. Distribution. Unless otherwise noted in the Licensed Materials, subject 19 | to the terms of this Agreement, LinkedIn hereby grants LinkedIn members 20 | with a LinkedIn Learning subscription a non-exclusive, non-transferable 21 | copyright license to distribute the Licensed Materials, except the 22 | Licensed Materials may not be included in any product or service (or 23 | otherwise used) to instruct or educate others. 24 | 25 | 2. Restrictions and Intellectual Property. 26 | - a. You may not to use, modify, copy, make derivative works of, publish, 27 | distribute, rent, lease, sell, sublicense, assign or otherwise transfer the 28 | Licensed Materials, except as expressly set forth above in Section 1. 29 | - b. Linkedin (and its licensors) retains its intellectual property rights 30 | in the Licensed Materials. Except as expressly set forth in Section 1, 31 | LinkedIn grants no licenses. 32 | - c. You indemnify LinkedIn and its licensors and affiliates for i) any 33 | alleged infringement or misappropriation of any intellectual property rights 34 | of any third party based on modifications you make to the Licensed Materials, 35 | ii) any claims arising from your use or distribution of all or part of the 36 | Licensed Materials and iii) a breach of this Agreement. You will defend, hold 37 | harmless, and indemnify LinkedIn and its affiliates (and our and their 38 | respective employees, shareholders, and directors) from any claim or action 39 | brought by a third party, including all damages, liabilities, costs and 40 | expenses, including reasonable attorneys’ fees, to the extent resulting from, 41 | alleged to have resulted from, or in connection with: (a) your breach of your 42 | obligations herein; or (b) your use or distribution of any Licensed Materials. 43 | 44 | 3. Open source. This code may include open source software, which may be 45 | subject to other license terms as provided in the files. 46 | 47 | 4. Warranty Disclaimer. LINKEDIN PROVIDES THE LICENSED MATERIALS ON AN “AS IS” 48 | AND “AS AVAILABLE” BASIS. LINKEDIN MAKES NO REPRESENTATION OR WARRANTY, 49 | WHETHER EXPRESS OR IMPLIED, ABOUT THE LICENSED MATERIALS, INCLUDING ANY 50 | REPRESENTATION THAT THE LICENSED MATERIALS WILL BE FREE OF ERRORS, BUGS OR 51 | INTERRUPTIONS, OR THAT THE LICENSED MATERIALS ARE ACCURATE, COMPLETE OR 52 | OTHERWISE VALID. TO THE FULLEST EXTENT PERMITTED BY LAW, LINKEDIN AND ITS 53 | AFFILIATES DISCLAIM ANY IMPLIED OR STATUTORY WARRANTY OR CONDITION, INCLUDING 54 | ANY IMPLIED WARRANTY OR CONDITION OF MERCHANTABILITY OR FITNESS FOR A 55 | PARTICULAR PURPOSE, AVAILABILITY, SECURITY, TITLE AND/OR NON-INFRINGEMENT. 56 | YOUR USE OF THE LICENSED MATERIALS IS AT YOUR OWN DISCRETION AND RISK, AND 57 | YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE THAT RESULTS FROM USE OF THE 58 | LICENSED MATERIALS TO YOUR COMPUTER SYSTEM OR LOSS OF DATA. NO ADVICE OR 59 | INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM US OR THROUGH OR 60 | FROM THE LICENSED MATERIALS WILL CREATE ANY WARRANTY OR CONDITION NOT 61 | EXPRESSLY STATED IN THESE TERMS. 62 | 63 | 5. Limitation of Liability. LINKEDIN SHALL NOT BE LIABLE FOR ANY INDIRECT, 64 | INCIDENTAL, SPECIAL, PUNITIVE, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING 65 | BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER 66 | INTANGIBLE LOSSES . IN NO EVENT WILL LINKEDIN'S AGGREGATE LIABILITY TO YOU 67 | EXCEED $100. THIS LIMITATION OF LIABILITY SHALL: 68 | - i. APPLY REGARDLESS OF WHETHER (A) YOU BASE YOUR CLAIM ON CONTRACT, TORT, 69 | STATUTE, OR ANY OTHER LEGAL THEORY, (B) WE KNEW OR SHOULD HAVE KNOWN ABOUT 70 | THE POSSIBILITY OF SUCH DAMAGES, OR (C) THE LIMITED REMEDIES PROVIDED IN THIS 71 | SECTION FAIL OF THEIR ESSENTIAL PURPOSE; AND 72 | - ii. NOT APPLY TO ANY DAMAGE THAT LINKEDIN MAY CAUSE YOU INTENTIONALLY OR 73 | KNOWINGLY IN VIOLATION OF THESE TERMS OR APPLICABLE LAW, OR AS OTHERWISE 74 | MANDATED BY APPLICABLE LAW THAT CANNOT BE DISCLAIMED IN THESE TERMS. 75 | 76 | 6. Termination. This Agreement automatically terminates upon your breach of 77 | this Agreement or termination of your LinkedIn Learning subscription. On 78 | termination, all licenses granted under this Agreement will terminate 79 | immediately and you will delete the Licensed Materials. Sections 2-7 of this 80 | Agreement survive any termination of this Agreement. LinkedIn may discontinue 81 | the availability of some or all of the Licensed Materials at any time for any 82 | reason. 83 | 84 | 7. Miscellaneous. This Agreement will be governed by and construed in 85 | accordance with the laws of the State of California without regard to conflict 86 | of laws principles. The exclusive forum for any disputes arising out of or 87 | relating to this Agreement shall be an appropriate federal or state court 88 | sitting in the County of Santa Clara, State of California. If LinkedIn does 89 | not act to enforce a breach of this Agreement, that does not mean that 90 | LinkedIn has waived its right to enforce this Agreement. The Agreement does 91 | not create a partnership, agency relationship, or joint venture between the 92 | parties. Neither party has the power or authority to bind the other or to 93 | create any obligation or responsibility on behalf of the other. You may not, 94 | without LinkedIn’s prior written consent, assign or delegate any rights or 95 | obligations under these terms, including in connection with a change of 96 | control. Any purported assignment and delegation shall be ineffective. The 97 | Agreement shall bind and inure to the benefit of the parties, their respective 98 | successors and permitted assigns. If any provision of the Agreement is 99 | unenforceable, that provision will be modified to render it enforceable to the 100 | extent possible to give effect to the parties’ intentions and the remaining 101 | provisions will not be affected. This Agreement is the only agreement between 102 | you and LinkedIn regarding the Licensed Materials, and supersedes all prior 103 | agreements relating to the Licensed Materials. 104 | 105 | Last Updated: March 2019 106 | --------------------------------------------------------------------------------