Paste Project – Angular vs jQuery

Angular 2

I’m new in angular 2. I made a project for about most of last year in Angular 1.5.x and started learning Angular 2 in the past month.
First I did the angular tour of heroes tutorial on the official site. Kind of got stuck on the services part. I wanted to understand everything and things where not making so much sense so I moved on to other prospect tutorials. A very good friend of mine gave me as a birthday present a uDemy course, about angular 2. So I started from the versy first lesson, and I made each step with the IDE open and trying everything in my right. I wanted to remember everything, try out and understand completely. That worked, but, it was slow as hell. In after completing a 10% part of a 35h course I started just listening to the courses for the next 10%. at 20% I only started to look for the parts that where crucial in my head and needed to know about, that I was about to use. What was left in my head was routing, http and dependency injection.

I loved routing, how it was done in Angular 2, just loved it. Everything was so simple, it made sense.HTTP, not so much and dependency injection I did not quite get.

jQuery

I’ve been working with jQuery for about 10 years. It’s been a love-hate relationship but more love, like 85% love, 15% hate. Hate in the first years when things did not work. It was usually (mostly) my fault when that happened. but in jQuery, like, I think most of everybody else that’s a 10+ year front end (or full stack) developer, I was and am, more in control of, more comfortable with.

The project

The project was simple. A webpage where you get to put something in a textbox on mobile and then have it on any other place (desktop mostly). A web based app that allows any user to share anything at any given time.

It took me 1.5 weeks to fail in doing it with angular 2 and about 3-5 hours to do it from scratch with jQuery, Bootstrap and both a goLang rest server and firebase database.

The result

At http://toolaxy.com/paste you can find the project. The html, css, js are hosted on github pages and the database is firebase. Basically it’s a fully functional web app that’s simple as hell, and that’s also free.

At one point things where too complicated in Angular 2 to make and a CRAZY idea struck my mind. Why not do it in jQuery, you’re much more comfortable with it, and it does not have to be a complex functionality. Well, originally I was looking to learn Angular 2 (that’s why I made it originally in angular), I was looking to learn golang. But in the end, all that I was left with was the realization that angular 2 was not the best choice for this project. And it made me question, what kind of project is angular 2 good for. Still don’t have the answer to that. Same problem in my head with React. At most, if I do have a reason for building something specifically like that, with string interpolation, data binding, directives, models, routes and other angular-like features, I would use vuejs. It seems to have everything, support and covers most of the things one might need. First, there must be a reason for using it.

Conclusion

jQuery is ranking better than angular and react and vuejs combined on google trends. But that’s not the reason.
jQuery is older and more documented online than anguar and react and vuejs combined (I’m talking stack overflow, forums, projects, etc). But that’s not the reason either.
jQuery is the fastest, easiest, most reliable way for me to get to a result in a web app compared to any other alternative, mostly because it was part of my life for the past 10 years of front end development. And that is the reason. I’m more knowledgeable in jQuery, I am more capable of getting the job done. Period.

Mobile to Desktop incognito Paste

There is no solution out there, for when I want to paste something from my mobile smart-phone to a computer that I don’t want to log into to have any sort of service at my disposal to do the sharing of text. I’m talking about when you want to share a link to a desktop pc from your phone, and you don’t want to go to facebook on the desktop pc, log in, add your highly secure password and hope for the best, all just to paste a link of a cat video. or the winning lottery tickets numbers, or whatever.

There is no service that helps you do that.

I recentlty was trying to print something at a print house and in order to do that I had a pdf in my google drive.

Of course, the most obvious way was to send that PDF to a email and communicate with other people and ask them to print that for you. Right. Well, the other people where a bit busy, I did not want them to have my email address, because I’m selfish in that way, and, well, the problem was actually that they did not have stuff set up to receive an email , and print it for their customers. Yeah, they suck like that. Yes, My country lives in a cave.

Basically the google drive link was huge so I could not write every single character of it in time until it closed the printhouse. Even though it was morning. But there was an idea that popped in my head. What if… I’m going to…. YES!!! shorten that url, and write that character by character.

That worked, and I did that for the next months (had something to do at the printhouse every month). Things tarted to get really boring and dumb really fast. There needs to be a better way. So …

I searched for sollutions online that can help me. Turns out, all of the results I found where apps, that you can install on your phone and you can sync your computer to. Awesome. Not what I was looking for. I need no login. at all. I’m going to a public print house. I just need a system that can help me receive a pasted text from my phone. That is all. This is 2017, come on technology.

The sollution

I don’t see anything in the horizon so I’m going to build it myself.

I am currently working on a app in Angular2 and GoLang that helps me solve my above problem. The result of this will be a MVP that will reside at http://toolaxy.com/paste . Still working on it. Will make a post about it when it’s finished. Until then.