Coder Social home page Coder Social logo

links's Introduction

Links

I love to collect bookmarks in my browser of choice of high-quality, interesting, and generally useful writing I find on the web.

To me, they feel very precious, and I want to have full control over what happens to them.

Keeping them only in my browser is therefore not an option. Sticking to this hacker ethos of mine, I also decided to not use any popular file format for storing structures data like this (e.g. JSON, TOML, YAML, etc.).

All of them are both overkill and too complicated for me to be certain, that I can grasp and control every single one of their details. I want to be able to parse and process my bookmarks without all the overhead connected to them.

Choosing which format to use, I was careful not to fall into the diy-just-worse trap.

The design I landed on looks as follows:

  1. In a links file, every line is an atomic unit.
  2. The first line in a links file is a bookmark's title (a title line).
  3. Each title line is followed by another line that represents the bookmark's URL. (a URL line).
  4. Each URL line is followed either by another title line or the end of the file.

As you can see, this is brutally simple to parse and only uses newline characters, which don't appear in URLs and are not needed in page titles. You could say this is like CSV with commas replaced by newlines and two fixed columns, which eliminate the need for a special row delimiter.

So far, I have only written a pretty-printer for this format. As you can see, it neatly fits onto a single page of a screen. From here, it's possible to quickly add any utility that's desired.

links's People

Contributors

thass0 avatar zdox avatar

Watchers

 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.