GithubHelp home page GithubHelp logo

ada-developers-academy / linkedlistblog Goto Github PK

View Code? Open in Web Editor NEW
1.0 32.0 24.0 30 KB

Implementation of a linked list using Active Record and Rails

Ruby 75.31% JavaScript 2.27% CoffeeScript 1.44% CSS 3.08% HTML 17.90%

linkedlistblog's Introduction

Linked List Blog

This in-class live coding exercise is an example of a very basic blog website in Rails, using a linked list to store each post's comments.

References

The goal with this exercise is to build an implementation of a linked list data structure by explicitly managing the references that ultimately form the links in between each node in the list.

What Are References?

In general, references are any piece of data that allows a computer program to access another piece of data. For example your social security number might be a reference to your tax information in an IRS database. However, the floating point decimal number 5.3 is not a reference because it directly IS the data.

There are two broad kinds of references: identifiers and locators.

Where Are References Found?

Here are a few examples of both kinds of references, many of which you may be familiar with already:

Identifier reference Locator reference
Social Security Number Street Address
ISBN Latitude/Longitude
SQL table id column Memory Address
URI URL

As we can see, references are used all over the place both in our computer systems and our formalized social systems.

Why Are References?

References are often used because its not beneficial or possible to store a copy of the referenced data at each location where such a reference would be used. This might be due to constraints on data storage, but it might also be a result of how complicated it would be to update each copy when the data changes.

linkedlistblog's People

Contributors

hamled avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.