{"id":201,"date":"2026-03-07T18:36:09","date_gmt":"2026-03-07T18:36:09","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/edown001\/?page_id=201"},"modified":"2026-03-07T18:39:35","modified_gmt":"2026-03-07T18:39:35","slug":"cyse250-programming-for-cybersecurity","status":"publish","type":"page","link":"https:\/\/sites.wp.odu.edu\/edown001\/cyse250-programming-for-cybersecurity\/","title":{"rendered":"CYSE250 &#8211; Programming for Cybersecurity"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Course Overview<\/h2>\n\n\n\n<p>This course focused on learning programming concepts and how they apply to cybersecurity and IT systems. Programming is an important skill for cybersecurity professionals because it helps with automation, troubleshooting, and understanding how software works behind the scenes.<\/p>\n\n\n\n<p>During this course I learned the basics of writing and reading code, understanding how programs run, and how servers and applications communicate. The class also introduced concepts related to server-side programming and how developers use code to handle requests and responses on a network.<\/p>\n\n\n\n<p>Through different assignments and coding exercises I gained experience working with programming logic and learning how to break down problems into smaller steps. This helped me better understand how systems process information and how applications operate in real-world environments.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-light-gray-background-color has-text-color has-background has-link-color wp-elements-2ea7d5e91100e55c076f673354336d5a\"><code>\/\/STEP 1: Add required MODULES\r\nconst fs = require('fs');\r\nconst http = require('node:http');\r\n\r\n\/\/STEP 2: Create an HTTP server object\r\nconst server = http.createServer();\r\n\r\n\/\/STEP 3: Register a listener for the request event\r\nserver.on('request', (req, res) =&gt; {\r\n\r\n  \/\/STEP 5: Asynchronously read the contents of the current working directory\r\n  fs.readdir(\".\/\", (err, folderList) =&gt; {\r\n\r\n    \/\/STEP 6: In the callback send the response to the client\r\n    if (err) {\r\n      res.end(\"Internal Server Error\");\r\n    } else {\r\n      res.end(folderList.toString());\r\n    }\r\n  });\r\n});\r\n\r\n\/\/STEP 4: Server listens on port 3000\r\nserver.listen(3000);\r\n\r\n\/\/ WRITE YOUR CODE HERE<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Artifact: Node.js Server Program<\/h2>\n\n\n\n<p>One programming assignment involved creating a simple server using Node.js. The goal of the exercise was to understand how servers respond to requests and how programs can interact with the file system.<\/p>\n\n\n\n<p>The program creates a basic HTTP server that listens for requests. When a request is received, the program reads the contents of the current directory and returns the list of files to the client.<\/p>\n\n\n\n<p>This assignment helped show how a server can process requests and return information to a client.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reflection<\/h2>\n\n\n\n<p>This project helped me better understand how servers and applications communicate across a network. Writing the code also helped me see how programming logic works step by step. Each part of the program had a specific role such as creating the server, listening for requests, and sending a response back to the client.<\/p>\n\n\n\n<p>The assignment also showed how programming can interact with system resources such as files and directories. Understanding this process is important in cybersecurity because many security tools and systems rely on scripts and automated processes.<\/p>\n\n\n\n<p>Overall this course helped strengthen my technical skills and gave me a better understanding of how software and servers operate behind the scenes. These programming skills will continue to be useful as I develop my career in cybersecurity and information technology.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Course Overview This course focused on learning programming concepts and how they apply to cybersecurity and IT systems. Programming is an important skill for cybersecurity professionals because it helps with automation, troubleshooting, and understanding how software works behind the scenes&#8230;. <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/edown001\/cyse250-programming-for-cybersecurity\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":27908,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/pages\/201"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/users\/27908"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":4,"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/pages\/201\/revisions"}],"predecessor-version":[{"id":205,"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/pages\/201\/revisions\/205"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/edown001\/wp-json\/wp\/v2\/media?parent=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}