Преглед изворни кода

Add .swp files to gitignore.
Fix style on writing html.
Add author name to writing meta data.

Lee Morgan пре 5 година
родитељ
комит
e90ff7d6ca
5 измењених фајлова са 13 додато и 169 уклоњено
  1. 2 1
      .gitignore
  2. 4 2
      htmlCreator.js
  3. 7 2
      views/writing/index.css
  4. 0 81
      views/writing/tablets.html
  5. 0 83
      views/writing/touchscreens.html

+ 2 - 1
.gitignore

@@ -1,2 +1,3 @@
 /node_modules
-/content/*
+/content/*
+*.swp

+ 4 - 2
htmlCreator.js

@@ -18,7 +18,9 @@ module.exports = (app)=>{
                 <div class="article">
                     <h1>${meta[0]}</h1>
 
-                    <h3>${meta[1]}</h3>
+                    <h3 class="metaData">By ${meta[1]}</h3>
+
+		    <h3 class="metaData">On ${meta[2]}</h3>
         `;
 
         for(let i = 0; i < article.length; i++){
@@ -99,4 +101,4 @@ module.exports = (app)=>{
     }
 
     traverseDirectory(`${__dirname}/content/writing`);
-}
+}

+ 7 - 2
views/writing/index.css

@@ -9,10 +9,15 @@ body{
 
 h1{
     text-align: center;
-    margin-bottom: 50px;
+    margin-bottom: 15px;
     font-size: 50px;
 }
 
+.metaData{
+    text-align: center;
+    margin-bottom: 15px;
+}
+
 .article{
     background: #C4C6C0;
     width: 75vw;
@@ -115,4 +120,4 @@ h1{
 
         .comment > p{
             font-size: 16px;
-        }
+        }

+ 0 - 81
views/writing/tablets.html

@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-    <head>
-        <meta charset="utf-8">
-        <title>Tablets Are A Stupid Idea</title>
-        <link rel="stylesheet" href="/writing/style">
-    </head>
-    <body>
-        <div class="article">
-            <h1>Tablets are a Stupid Idea</h1>
-
-            <p class="paragraph">The tablet was introduced to the world by Steve Jobs at a convention on January 27, 2010. The fanboy-filled crowd, naturally, went crazy for it. Now, I certainly didn't watch this event. I don't even remember when I heard about iPads or tablets for the first time. It was probably not for several months after this. However, I do remember very well my reaction to it. Fucking stupid. I immediately thought to myself that this was possibly one of the dumbest things that had ever been created. Nobody would want to buy and use that useless thing. I was honestly convinced that this thing would never take off and was waiting to laugh at Apple for having introduced such a moronic product.</p>
-
-            <p class="paragraph">Boy was I wrong. To be clear, I wasn't wrong about the iPad being a stupid fucking product, it most certainly was and still is. However, it did take off and people loved it. The only explanation for this is the cult-like following that Apple has. Apple fanboys will buy literally anything that is created by that company, whether it is useful or not. The level of devotion that many people have to Apple is frightening. The iPad is probably one of the best examples of this. I truly believe that they created the iPad as an experiment to show that their consumers will buy any piece of garbage that they shit out. They were right. There is no purpose to the iPad, and the tablet in general. </p>
-
-            <p class="paragraph">Think about it, how often do you see someone carrying around any other tablet? It's a fairly rare occurrence right? This is because only Apple fans would be tricked into buying something that serves utterly no purpose. Users of other computer products understand that their computer products are tools, meant to serve a purpose. Therefore they almost never purchase them. Apple-boys however, treat the company as a cult, and Stevey as their messiah. Purchasing Apple products is a status symbol and a way of life for them. This is why tablets took off and are so popular, that's it.</p>
-
-            <p class="paragraph">First, let's talk about what tablets are. When Steve Jobs introduced the iPad in 2010, he described them as the middle-ground between a smartphone and a laptop. This is a very accurate description and is exactly what they are, they are just not a good middle-ground. Let's take another example, cars and bikes. Say you like riding bikes, and you like driving cars, so you want to try something in the middle. So, you remove the engine from the car and put pedals in its place so that you can power it, brilliant. Or, if you really like giving your house a deep clean, so you decide to combine your two favorite cleaning products, ammonia and bleach. Tablets are a hybrid abomination of the smartphone and laptop that nobody wanted. They have all of the downsides of both mixed in to one.</p>
-
-            <p class="paragraph">So, what do tablets get from computers? Mainly, the lack of convenience. Yes, computers are somewhat convenient to carry around and get some work done just about anywhere. However, my laptop does not fit in my pocket. When I get into an argument with somebody and want to prove them wrong, I don't reach into my back pocket to pull out my laptop, get on the internet and find some information. I use my smartphone. It's pretty convenient. In a similar manner, I am not reaching into my pocket for my tablet to look up some obscure internet lore. I have to have a bag for it to carry it around, or hold it in my hand and hope I don't drop it. Tablets are simply not convenient.</p>
-
-            <p class="paragraph">Next, lets talk about typing. This is a trait that tablets get from smartphones. Utterly terrible typing experience. The touchscreen is good for typing only short messages, such as texts, or searching something in the browser. You can't type anything meaningful, like a rant about why you hate tablets. If I were to write this on a tablet, it would take me about a month. Of course, you can always buy a keyboard for your tablet to get some meaningful work done, but if you do that, then you just have a less convenient laptop. Now, you have to pull out the tablet, and pull out the keyboard/stand. Connect the keyboard, set up the stand and everything. I can set my laptop down and just open it, the keyboard is automatically connected and I don't have to gently prop up the screen. If you are going to do that, then just get a laptop.</p>
-
-            <p class="paragraph">Another thing to discuss is the power and resources of the tablet. This is also another terrible quality that they get from smartphones. The processors are equivalent to a phone and therefore are weak and under-performing compared to computers. Also, far less storage and RAM in general. Everything about tablets is inferior to laptops in this field. I understand that laptops and tablets both come in many different levels and with different components, however, you will always pay way more for tablet compared to its similar laptop counterpart. The price/value ratio is obnoxious.</p>
-
-            <p class="paragraph">Obviously, the tablet has taken all of the worst attributes from phones and laptops and brought them together into a terrible product.</p>
-
-            <p class="paragraph">Now I want to take a look at Steve Jobs own arguments for the iPad. On January 27, 2010 when he introduced the iPad, he gave a list of things that the tablet would do better than both the smartphone and the laptop. Let's take a look at these things shall we?</p>
-
-            <p class="paragraph">Browsing. I assume he means web browsing here. Nope, dog shit. Laptop/desktop computers are the ultimate experience for this. Mouse/keyboard, large screen real estate etc. The phone is uncomfortable for web browsing, but I can keep it in my pocket, so I will forgive it. The tablet has the interface of the phone, touchscreen typing and all, but a size that makes it ludicrous. It is super uncomfortable and straining to hold it in one hand to type/swipe on the screen of such a large device. My phone is comfortably held in one hand, freeing up the other hand to interact with it. Browsing, again, is the worst of both worlds on the tablet.</p>
-
-            <p class="paragraph">Email. Nope, dog shit. If I am typing a long email or trying to send somebody something over email, I want a keyboard. If I want to send a short message, then why am I using email, that is what texting is for. Even if you are texting, it is much more convenient on the phone due to its easy-to-hold nature. Emailing is best done on a traditional computer, mostly due to the keyboard, but also easy copy/pasting and other conveniences. However, I would rather use a phone than a tablet to send an email because it is easier to hold in one hand while typing with the other. If you send lots of email, the last thing that you want to use is a tablet.</p>
-
-            <p class="paragraph">Photos. I'll give this one partial points. You can hold it up to take pictures and get a better view of the picture on the larger screen, but good luck pressing the button to take the photo without shaking the tablet and messing up the picture. However, when I see people holding up a massive tablet to take pictures, it cracks me up, it is just hilariously cartoonish. It's like clowns who where huge shoes, they're funny because they are so stupidly large and they look ridiculous and out of place. That is what you look like taking pictures with a tablet, a fucking clown. I will always laugh at you and will mock and try to make you feel bad, because you should feel bad. It's still better/easier to just use a smartphone. As for viewing photos, OK, it is a bit better than phones, but not nearly as good as a nice laptop. Editing photos, forget it.</p>
-
-            <p class="paragraph">Video. Nope, dog shit. Taking video with a tablet is a terrible experience. Phones aren't great for this, but their smaller size makes them OK. The larger size of the tablet makes it hard to hold steady and extremely usntable. Forget using one hand to hold it, your hand will be shaking like you're Michael J. Fox. And you are going to get tired real fast. Watching videos, again, takes the worst of both worlds. I can pull my phone out of my pocket to watch some short videos anywhere I want. Ya, the screen is small, but it works in a pinch. Want to watch a movie? You either have to lay it flat on a surface so that you are watching at an angle, or you need a stand, which means you are just using a laptop.</p>
-
-            <p class="paragraph">Music. No advantage. In this category, tablets are the same as smartphones and laptops. If you want to listen to music you are going to be working with the shitty built-in speaker. These speakers are garbage on all of the devices. Therefore, if you want louder music or better quality, you have to get an external speaker. There is no advantage here except an uncomfortable device form. My smartphone connects to a Bluetooth speaker just like your tablet. The difference is that I always have that smartphone in my pocket.</p>
-
-            <p class="paragraph">Games. Are you fucking kidding me!? This is so goddamn stupid that I find it difficult to believe that he actually claimed this. Tablets are the worst possible thing for games. If you want to really play some serious, immersive games, you have to have a laptop/desktop computer (or a console). You simply will never get a decent gaming experience on a smartphone or tablet. However, smartphones do have their uses for playing games. If you like to play casual games or play a game when you are waiting in line for 8 hours at the DMV, smartphones are pretty cool for that. Again, it's in your pocket. As long as the game is designed to be played with one hand, it can be a decent casual gaming experience. How the fuck do you play any game on a tablet? It is the worst thing that I can imagine. You have to hold it from the side with one hand, straining against gravity to keep it steady while the metal and glass warps. Touch the screen to interact with it and you push the whole screen downward because you are holding it from one spot on the edge of the screen. The tablet is literally the worst conceivable form of computer to ever play a game with, I couldn't design something worse if I tried. As usual, you could put it up on a stand with a mouse and keyboard, but then you have just turned it into a shitty laptop.</p>
-
-            <p class="paragraph">eBooks. Nope, dog shit. Again, this is about holding it. Tablets are just the most inconvenient thing in the world to hold and interact with at the same time. Even phones are better for reading on. Granted, phones have a small screen and it isn't the best experience, but it is more convenient and not a workout just to hold the fucking thing. I have my phone everywhere, so it is always there and available to read when I get stuck in that 8 hour line at the DMV. Laptops are OK for reading books and other things, but their lack of pocketability makes them non-ideal. But the large screen and the ease of using buttons to scroll/change page does make them quite nice. Ultimately, real books are the way to go here. But if you do want something to take with you everywhere, all the time, use a smartphone.</p>
-
-            <p class="paragraph">So, as we can see, Steve Jobs was either one of the dumbest people in tech at the time, or, more likely, a genius scam artist who knew that his worshipers would eat up anything that he created, because they were and are blind cult members. I think the tablet was just a joke to prove that they could sell anything if they just put an Apple logo on it. Props to you Stevey for so effectively manipulating people, you were a master at it. Tablets are one of the worst forms of computer that has ever been created. The dawn of the tablet was truly a dark day in the history of humanity.</p>
-        </div>
-
-        <form id="createComment">
-            <h2>Add Comment</h2>
-
-            <label>Display Name:
-                <input id="nameInput" type="text">
-            </label>
-
-            <label>Comment:
-                <textarea id="commentInput" rows="10" columns="80" required></textarea>
-            </label>
-
-            <input type="Submit" value="SUBMIT">
-
-            <input id="articleInput" type="hidden" article="tablets">
-        </form>
-
-        <div id="comments">
-            <h2>Comments</h2>
-            
-            <template id="comment">
-                <div class="comment">
-                    <div>
-                        <h3></h3>
-
-                        <p></p>
-                    </div>
-                    
-                    <p></p>
-                </div>
-            </template>
-        </div>
-
-        <script src="/writing/code"></script>
-    </body>
-</html>

+ 0 - 83
views/writing/touchscreens.html

@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="utf-8">
-        <title>Touchscreens, An Essay</title>
-        <link rel="stylesheet" href="/writing/style">
-    </head>
-    <body>
-        <div class="article">
-            <h1>Touchscreens, An Essay</h1>
-
-            <p class="paragraph">So, I recently moved.  One of the things that I noticed in the apartment was the stove.  Very modern, looked pretty new.  It was a glass top stove.  One of those fancy stoves, it looks like just a piece of glass sitting on the counter top.  Low profile, sleek, no buttons or knobs.  All of the controls on it are buttons that you just touch.  I have used these a few times in the past, but never really thought much about them.  However, now I was going to have to use it for an extended time, for several months.  Also at this time, I decided that as a 30 year old adult, maybe I should finally learn how to cook something.  So, this stove was a great opportunity, it's new, it's cool, I am excited to start playing around with it.</p>
-
-            <p class="paragraph">I soon learned to hate this stove to a degree that is, honestly, irrational.  I have never been more angry about a minor inconvenience in my life as I am about this stove.  In reality, the amount of inconvenience it has caused me is incredibly small, it's the utter preventabilty of this minor inconvenience that infuriates me.  I am going to spend some time ranting about the stove for a bit, then I will get more to the heart of the matter, excessive touchscreens.</p>
-
-            <p class="paragraph">The stove.  The damn stove.  First problem, cleaning.  Well, you might say to yourself, it's glass, it's flat, it must be easy to clean.  More or less, that is true, super simple to clean.  However, the problem, of course, is the touchscreen.  Let's start by talking about what happens when you get it wet.  Say you spray your favorite cleaner on the surface (personally I use my favorite brand, Nameless Blue Liquid), that liquid might just go hog wild activating all the buttons.  Ya, apparently just liquid on the stove can press the buttons.  If that doesn't happen, then you will definitely press all of the buttons when you try to wipe it.  Either way, those buttons are getting pressed, and you have no idea what will happen.  Easy enough though, just press them again to turn the stove off right?  That's a stupid question, clearly you have never used a smartphone in the rain.  It is impossible.  Nameless Blue Liquid has now completely hijacked my stove and I can do little or nothing about it.  Even when I wipe it off, it is still a bit damp and the buttons don't work properly.  At this point I start to mash the buttons harder and harder, as if that is somehow going to help.  I have literally had the stove turn on and start to cook the cleaning product while I try to turn it off.  Absurd, absolutely absurd.  There is a button with a key on it, I think it is a lock for this type of thing.  However, I cannot be inconvenienced with taking the 2 minutes out of my day that it would take to figure that out.  But think about it, if that is what that button is for, then they had to add extra functionality to this stove, just fix a problem that had never before existed on other, perfectly functional stoves.</p>
-
-            <p class="paragraph">Second problem, hot buttons.  The bottom two "stove things" (I have no idea what to call them), are literally only a couple centimeters from the buttons.  This means several things.  The first and most obvious is that the buttons can get super hot at times.  I literally might burn myself just attempting to turn the stove off.  Who designed this?  And more importantly, who green-lit this design?  Also, because they are so close, it is very easy to accidentally touch the pan or pot that you are cooking with if you try to use the buttons.  You also have to be really careful about the pot or pan that you are using to keep it a reasonable distance from the buttons while still keeping it on the "hot spot".  Also, if the pot/pan gets too close to the button, sometimes it will activate it.  Seriously, a hot pot/pan can actually press the buttons.  Ludicrous.</p>
-
-            <p class="paragraph">Third problem, functionality.  Remember back in the old days when stoves had those little dials that you had to turn?  How quaint.  Now, in this modern age of technology, as we move ever forward and improve on those ancient designs, we are privileged to spend 5 minutes pressing 20 different buttons in just the right order so that I can cook a damn egg.  This is a prime example of solving problems that don't exist.  Those antiquated dials from the past were damn easy to use.  You walk up to the stove, turn the dial, and like magic it works.  Maybe you have to press a button or something if it is a gas stove.  That is it.  The dials are usually out of the way of everything, and it is quick.  Now listen to this series of steps that I have to take with this modern masterpiece.  Press the power button.  Press a button indicating which "hot spot" I want to cook on.  Press the "up" button 5 or 6 times to get it to the temperature that I want.  Of course, I can hold the "up" button if I want, but there are two problems with that.  First, it isn't faster, because the button has to wait a second or two to figure out if you are just pressing the button or holding it, then it starts slow anyway.  Second, it starts slow, but by the it gets to the number that I want, it is travelling at ludicrous speed, inevitably goes past my desired number, and then I have to press it several times anyway just to bring it back down to where I want it.  All of this was done by our ancestors with just a quick turn of their wrists, those fools.</p>
-
-            <p class="paragraph">Alright, finally we can get more to the point, and the entire reason that we are here.  Touchscreens.  The stove is what made me start to think about this, and I wanted to rant about it for a while.  However, it is very relevant to the whole touchscreen problem as it illustrates the problem here.  Touchscreens do not belong everywhere.  Don't get me wrong, touchscreens are a great invention and I am very glad for them.  My phone is beautifully functional due to its touchscreen.  I am not trying to complain about touchscreens in general, just our idiotic use of them.  They don't belong everywhere, they should be used sparingly, only when necessary.</p>
-
-            <p class="paragraph">Lets talk about some other things that don't deserve to have touchscreens.</p>
-
-            <p class="paragraph">Desktop computers.  This one just makes no sense.  The mouse and keyboard have been around since as long as the personal computer and are the perfect solution to interacting with it.  Why would you scrap that and replace it with a touchscreen.  Any person who does serious work on their computer will tell you that you can accomplish very little with a touchscreen.  You need a mouse and keyboard.  Especially for typing.  Typing on a touchscreen is the most aggravating and infuriating thing ever.</p>
-
-            <p class="paragraph">Laptop computers.  Basically similar to desktop computers.  Why?  Why do that to yourself?  There is no benefit to touchscreen over mouse and keyboard.  I can understand this with a 2-in-1 laptop, so that you can use it like a tablet.  However, two things.  First, tablets are stupid, but that's an argument for another day.  Second, you still have to contend with the difficulties of a touchscreen on a laptop.  Greasy fingerprints on the screen, accidentally touching the screen when pointing at something, poor support for touchscreens on all desktop operating systems and the list goes on.  Do yourself a favor and never get a laptop with a touchscreen.  I made this mistake several years ago and am still living with it.  I thought it would be so cool and modern to have a touchscreen laptop.  It's awful and I regret it every day of my life.</p>
-
-            <p class="paragraph">Televisions.  These are not terribly common, but I know that they do exist.  Ya, great idea, spend a thousand dollars extra for the convenience of getting off the couch to interact with it.  Ya, you can still use a remote, but then why have the touchscreen in the first place?  Speaking of which, touchscreen remotes.  Awful.  Old-style buttons are great, easy to find, easy to press and there is a limited number of things that you want to do with a remote, so you don't need a small computer inside a remote to control the damn thing.  We figured out the technology of remotes many decades ago, stop trying to "improve" it.</p>
-
-            <p class="paragraph">Cars.  This may be one of the stupidest places to put touchscreens that I can imagine.  You now have to look down at the screen and press a specific spot if you are driving and want to change the volume of the radio.  These have definitely made driving much more dangerous.  With knobs and buttons, I know exactly where they are and I can reach down to change them without taking my eyes off the road and with much greater ease.  Also, if I hit a bump while trying to adjust something, you never know what you are going to press on that touchscreen.</p>
-
-            <p class="paragraph">Cameras.  Not your phone camera, but purpose-built digital cameras.  Buttons are far, far more effective and you don't need to add a touchscreen.  Especially terrible are the touchscreens that encompass the entire backside of the camera.  So when taking a picture you have to gently hold it by the very edge to make sure that you don't accidentally press something on the touchscreen.</p>
-
-            <p class="paragraph">Watches.  OK, this one isn't really about touchscreens so much as smartwatches themselves.  If you are going to have a tiny computer on your wrist, then I guess you really need a touchscreen.  However, smartwatches are really just solving a problem that didn't exist.  I hate them and wanted to complain.</p>
-
-            <p class="paragraph">Headphones.  These are less common and are not necessarily touchscreens, but more like "touch buttons".  These touch buttons on Bluetooth headphones were created by Lucifer himself in the depths of hell.  I know because I stupidly bought some.  Wireless, Bluetooth, controlled by the touch button on them.  I have to be so gentle when handling them to not accidentally touch the button and have it do something weird.  They disconnect or turn off all the time when I try to adjust them in my ear.  What was wrong with the simple buttons from yesteryear?  We need to stop fixing problems that don't exist.</p>
-
-            <p class="paragraph">Locks.  You know, the ones where you enter your pass code for the door to unlock?  There are perfectly functional mechanical versions of these with buttons.  If you make them touchscreen, then you are just introducing many extra possible points of failure.  Now it needs a battery, or to be plugged in.  If the battery dies, you are locked out.  Also, buttons are simply easier to use because they are tactile.  These locks are also less secure because, if it is for a single person, you can see exactly where they touch it and the fingerprints on it.</p>
-
-            <p class="paragraph">Touchscreen technology is great, I really love having a touchscreen on my phone, it makes it much more pleasant to use.  They just simply do not belong everywhere.  In places where they belong, they are great.  Everywhere else, they are just incredibly frustrating and terrible.  This rant is less about touchscreens than the morons who decide to put them on everything.  The only reason that this is done is because people are raccoons.  We are attracted to shiny things.  We see this new shiny technology and wonder how many things we can put it on instead of wondering where it can be beneficial.</p>
-
-            <p class="paragraph">Touching a screen from which you wish to view things is a terrible idea in general.  Your greasy sausage fingers get fingerprints and grease all over the screen.  Personally, I have to frequently wipe my phone off because it gets fingerprints all over it.  So, if you want to put a touchscreen on something, first you should ask yourself if there is literally any other way that you could accomplish the same thing.  Touchscreens should be used only when there is no better option.</p>
-
-            <p class="paragraph">The next time that you see some new device with a touchscreen, don't think about how cool it is that the thing has a touchscreen, think about whether it makes sense for it to have a touchscreen on it.  </p>
-        </div>
-
-        <form id="createComment">
-            <h2>Add Comment</h2>
-
-            <label>Display Name:
-                <input id="nameInput" type="text">
-            </label>
-
-            <label>Comment:
-                <textarea id="commentInput" rows="10" columns="80" required></textarea>
-            </label>
-
-            <input type="Submit" value="submit">
-
-            <input id="articleInput" type="hidden" article="touchscreens">
-        </form>
-
-        <div id="comments">
-            <h2>Comments</h2>
-            
-            <template id="comment">
-                <div class="comment">
-                    <div>
-                        <h3></h3>
-
-                        <p></p>
-                    </div>
-                    
-                    <p></p>
-                </div>
-            </template>
-        </div>
-
-        <script src="/writing/code"></script>
-    </body>
-</html>