Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Hevilmystic said :
e: Ignore my post!

­coffee and hides away

e: When turning off the Reddit embedding I realised I had forgotten about post borders, found a rather subtle one that works well I think :o

http://i.imgur.com/5xhLtMh.png

Took me ages to strike a happy combination and balance of colours I wanted. I still fiddle with them sometimes :)

22-Mar-2016 13:55:41

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Blasty said :
I just came across this javascript style guide and it all looked a bit alien to me:
https://github.com/airbnb/javascript

I was just wondering if you had any experience with the new syntax, or if you had any thoughts to share on it.

Hiya Blasty :)

Short answer, yes some experience. I agree with much of it (depends on my understanding) some I don't agree with either.

Tbh I only just skimmed over it, looks like their idea of coding conventions for JS.

At glance there isn't too much out of the ordinary. JSlint (not to be confused with jshint) by Douglas Crockford has similar approaches.

The block styles, array and object declarations, hoisting and scoping, use of CamelCase look pretty standard. Same with the jquery bit. Variables on the other hand are different and I'm not sure I like that or not.

Overall I have to say there is lots of pretty common coding conventions. As I said I have only skim read over it but it looks pretty good overall. I didn't see anything on regex or escaping, if there is an area that needs some good code conventions it's regex.

Remember not all this comes down to wrong or right, style is a big part of it. Generally if your code is readable then you'll find it often largely conforms to these kind of standards. It's good stuff to know, following the rules is one thing, understanding why something is bad practice is another thing totally.

I really recommend http://www.jslint.com if you're interested in this stuff. It's the only tool I use. Try putting some of your own javascript code in there and see what it says. JS lint is known for hurting feelings btw!

Here's a link to one of RS Linkify's scripts you can paste in there too if you wish. http://puu.sh/nPKRq.txt

Edit: Just read up on 'let' and scoping, I like :)

22-Mar-2016 13:55:49 - Last edited on 22-Mar-2016 16:07:17 by Indecent Act

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Oh ty for the link :)

Microsoft are always a bit late to the party, though it's good see they have plans. Will be interesting to how they go. There'd be no complaints from me if I could port RS Lnkify over to Edge.

Also Hiya Lust :)

and Hiya Keighlea (previous page)

and since so much coffee is getting splashed about I figure I best return the favour :)

https://s-media-cache-ak0.pinimg.com/564x/90/cb/73/90cb73ab9f9560272d779a4e2abc147e.jpg

22-Mar-2016 14:43:56

Amaethwr
Aug Member 2008

Amaethwr

Posts: 14,634 Opal Posts by user Forum Profile RuneMetrics Profile
Not much of a reddit user either, nice little addition though :)


Hevilmystic said :
Figured you may find this interesting... http://www.theregister.co.uk/2016/03/21/microsoft_edge_extensions/
There was some talk on this quite a while ago too iirc. Opera been doing it for me plenty of time already though, I don't think I'd change to Edge. Or maybe I'd try it, we'll see. :P
Selective Completionist

22-Mar-2016 14:58:25

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
It's a big ask for anyone to supports chrome's APIs. Chrome really feels as though it was designed with developers in mind, not an after thought.

Microsoft says not all API's will be supported, so I don't know how that will impact me. As time passes RS Linkify gets more complex and uses more of chrome's APIs.

Firefox tried to do something similar, but one of the issue I have with them is I have to kind of learn a new language to develop for their browser. A language that they made up because they thought it was good idea for web apps to NOT be written in the language that drives the web. I can't work out the reasoning behind that. All they managed to do as far I'm concerned is give themselves one less user.

Opera got it right, just use the same engine as google and build their own browser around that. Basically, if it works in chrome it'll work in Opera.

I'd really like to see more things standardised with browsers, they should all at least talk the same languages and obey the same rules. Oh well I can dream :)

22-Mar-2016 15:12:40 - Last edited on 22-Mar-2016 15:18:51 by Indecent Act

Quick find code: 261-262-33-65181208 Back to Top