Programming Language Concepts You can see the first part of the PLC question and answer series here. In this post, we’ll still be focusing on the earlier days of language development. Some topics inside of this set include Lisp, ALGOL, COBOL, BASIC, PL/I, APL, SNOBOL, SIMULA, Prolog, Ada, and C. Before going through, can you answer this question? All modern languages owe some of their design to _____ or ______. 105. Who developed Lisp? – John McCarthy 106. What type of language is Lisp? – Functional programming language 107. True or False? Lisp is purely functional. – True 108. What are
Category: Programming
Programming Language Concepts One of the easiest methods that I use to learn new topics is by creating notes on the subject and then turning those notes into questions and answers. Remembering answers to questions just seems more natural. I was able to memorize these 104 questions and answers in less than a few hours. I wanted to start doing this for some topics that I find pretty interesting. To begin, here are some questions and answers to Programming Language Concepts (PLC). I’m reading your mind right now and the answer is yes, there will be more. 1. Name 3 reasons
Constructing the Java Data Structure Certain data structures in Java can be created by you (yes you). In this example, we’ll go ahead and create an ArrayList data structure that has some of the methods that the built-in ArrayList class has. We’ll create 2 constructors: The default constructor that creates an ArrayList with a default size of 10. Constructor that allows an initial size to be passed to the array. We’ll also create a number of methods: void add(Object x); A method that allows you to place an Object at the end of the ArrayList. void add(int index, Object x); A method that allows
Java’s Data Structure Illustrated One way to get exposure to a specific data structure is to simply read the documentation. But it won’t sink in thoroughly until you create your own example. In this article, we’ll look at the LinkedList class. The phone directory seems to be the example of choice by most college professors to introduce this data structure. Within our phone directory program, we’ll want to be able to: add a new record, delete the current record, change the first name of the current record, change the last name of the current record, change the phone number of the current record,
Solving Anagrams Step by Step I was briefly looking through some sample Computer Science course questions and came upon one that stated: Create an anagram program in Java that reads a text file and computes the anagrams of the words. If the words are anagrams of each other, put them on the same line; if they’re not, print each one on a new line. The anagram program should create a new text file. The only data structure that you can use is an array. You must create your own sorting algorithms. This was my solution to it. Make sure to
When to ‘break’ and When to ‘continue’ There are a couple of ways to interrupt a loop: we’ll explore break and continue. break In the following example, a loop-continuation-condition is set to test if the number is less than 20. If true, the number variable will increment by one and the current value of the variable number will be added to the total as is defined by the variable sum. So if we let the following loop continue without any sort of interruption, the number will be 20 and the sum will be 210. However, adding the keyword break after the test is performed within the while loop will cause the loop to
Configuring GoDaddy with DigitalOcean In another article, I write about how to deploy a Laravel Application to DigitalOcean. Now, we have to point the domain to the Droplet so that people don’t have to type in an IP address. https://blog.devgenius.io/quick-way-to-deploy-a-laravel-app-to-digitalocean-d212f088bcc5 DigitalOcean Once you log into your DigitalOcean account, click on the Networking tab in the left sidebar. In the image below, it’s the third link from the bottom. You’ll be brought to the networking screen with the Load Balancers tab selected. You’ll want to click on the Domains tab to move to the Domains section. Enter your domain name. In my instance, I’ll enter skinlabbyingarn.com. Click on the Add
Scenarios Where They Fall Short If you think this article is going to be about developers not knowing how to use Unit Tests, that’s not what it’s about. Unit testing is an art form in its own right. When a developer has extensive experience in writing unit tests, the application becomes beautiful. No more random bugs that you have to tackle in a class that you didn’t even touch but was affected by your code elsewhere. No more wasting unnecessary time; just run the tests after your changes and watch them go. You could argue that even if the developer
Choosing Your Tech Journey People that are just starting out their learning journey have the tendency of asking this question. Web Development is a Programming type. Mobile App Development is another type. What I’ve found is that Programming usually means software development using Java or Python languages that run on the user’s machine and web development means using a web-based language to produce web-applications. Now that we have clarity around the question, it’s time to formulate the answer. I’m a big believer of learning to program using an object oriented programming language first before deciding to specialize. Picking a language
My Laravel Journey: Books That Paved the Way I became a web-developer when YouTube tutorials weren’t still that popular. Everyone was just starting out and I had no idea where to begin. Since I didn’t know much about development, I didn’t even know which questions to ask. I pieced together a rudimentary understanding of what web-developers do by catching tech-talk from some of my coworkers in the software development department (I wasn’t in that department yet). What I heard was, “something something PHP.” Well, maybe PHP could help me, so I set out to learn PHP. I had enough sense to
