未加星标

My October Rant against the Online World

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二03 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

A few things have wound my up this October.

I wanted to vent.

Issue 1

STOP ANNOYING MY MIDDLE FINGER

Solution

"I'll just go ahead and open this link in a new tab.... F#CK!!"

Websites need to stop purely using JS for links / navigation (and content while we are at it).

This <a href="#"> is becoming way too common!

Then the really bad site use onclick="dowork();"

and the slightly better sites use a click() handler in a separate JS file.

These lazy developers should be ashamed and read up on accessibility & graceful degradation.

At the very least, they could use a JS Router.

Here's a simple JS router class that I use (for a site without ability for a back-end).

Then I add routes like below.

Router.add('movies/?([0-9]+)?$', jQuery.proxy(this.MovieList, this));

Then I use links like so http://example.com/#/movies/5

Wow, I can copy that! And bookmark it!

Pretty much I hate the way the web is trending towards JS heavy sites.

JS is great and all but it should be used to improve sites, not build them.

It also makes the site more resource heavy on the users PC.

I think a lot of it comes down to front-end developers trying to make back-ends with a language they know.

Give me a nice back-end supported site that serves up pure clean HTML pages with a small bit of JS for dynamic content any day!

Nothing makes my middle finger happier than being able to right click a link to copy, open or bookmark it.

Issue 2

#YOURDOINGHASHTAGWRONG

Solution

Take it upon ourselves to post the above hashtag under the lazy idiots who use hash tagging for complete sentences (and thereby legitimizing the tag by grouping our annoyance).

I assume they do this to spare themselves the hassle of spaces or punctuation... or spelling and at the same making it even harder to read.

It's for grouping / tagging (did the name give it away) content together people!

So unless someone else is going to use the same tag - it's completely useless.

https://en.wikipedia.org/wiki/Hashtag

So please go back to typing out your lives problems instead of using hashtags.

No one still wants to see it, but at least it's slightly less annoying.

Putting a # in-front of text and removing the spaces doesn't automatically camouflage your nonsense.

Your not fooling anyone.

On a positive note:

I'm impressed with our human brains being able to read sentences without spaces relatively easily.

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: HTMLjQueryF#
分页:12
转载请注明
本文标题:My October Rant against the Online World
本站链接:http://www.codesec.net/view/482575.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(19)