Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Keith Cirkel
    @keithamus
    I mean, feel free to make your own spiritual successor to jwerty in CoffeeScript - but I'm not fond of it myself, I'd rather it be plain 'ol JavaScript
    mako yass
    @makoConstruct
    What turns you off it?
    Keith Cirkel
    @keithamus
    Lots. For one I prefer the C-style syntax of strict braces, curlies and semicolons
    For another, CoffeeScript is a fork in the road for JS - for example the upcoming ES6 syntaxes are incompatible with CoffeeScript's syntaxes (e.g. fat arrows, for-of)
    But also I find CoffeeScript code, generally speaking, more difficult to read and reason about
    (I do maintain a coffeescript lib - docco)
    mako yass
    @makoConstruct
    See I'm starting to get annoyed with the way most languages ignore whitespace in favour of mandating braces, even though programmers pretty much always keep whitespace true to the semantics.
    Semicolons.. really, you like that? x]
    Keith Cirkel
    @keithamus
    I think semicolons are a useful cue that a statement has ended. Granted - most of the time your statement ends on a newline, but it just feels more controlled.
    Although I could live without semicolons, but I couldnt live without strict braces. CoffeeScript's optional bracing drives me crazy
    mako yass
    @makoConstruct
    Again, for me a statement always ends on a newline. The fact that most programming languages just ignore my newlines and mandate that I use semicolons is just offensive and annoying, same as with indenting.
    OK the optional bracing I can sorta agree with.
    There's this ambient mental load whenever I'm invoking a function
    I wonder if the paren elision could have been done better.
    Keith Cirkel
    @keithamus
    The thing that's nice about not mandating whitespace, is that it is harder to screw up. Whitespace sensitive languages can be very fragile.
    mako yass
    @makoConstruct
    how so?
    Keith Cirkel
    @keithamus
    Having dabbled in Python (which I enjoy as a language) I was bitten more than once by whitespacing
    Well, on a team with many developers, or a Github project which accepts many PRs, it takes 1 person to put a tab in the program to blow it up
    Im not saying I'm anti whitespace, just that it is more fragile.
    mako yass
    @makoConstruct
    I don't agree CS should be thought of as just a fork in the road. It'll be a long time before we can use EC6 in the wild, and as far as I'm aware, come that day, CS will still have its place. Doesn't CS already basically have an equivalent to fat arrows and for of? What makes you say it's incompatible with those features? I'd expect it'd just use them with a different syntax.
    Keith Cirkel
    @keithamus
    Not really. Code like x = (foo, bar)=>foo + bar already works in latest Chrome, Firefox, Opera, and is coming in IE12.
    Const is already supported in evergreen browsers, and IE11
    So I would say by the time ES6 is finalised next June, we'll have pretty good support in the latest browsers. Then its just a case of waiting for older browsers to die out - which is happening faster and faster these days
    And CS has fundemental semantic differences between ES6 and its own syntax
    Keith Cirkel
    @keithamus
    To take CS' for-of semantics, it expands out objects so you get the values instead of keys
    But ES6 uses Generator expressions which are customisable - and offer completely different semantics
    mako yass
    @makoConstruct
    Will IE12 be released on Win8?
    Keith Cirkel
    @keithamus
    So CS has two choices: to change the functionality of their for-of, breaking old code (bad), or to implement ES6's for-of as a different syntax, e.g. for-ineach or something (also bad)
    Yes: "This version of the browser will be available for both Windows 8.1 and Windows 7 SP1. It will be capable of running side-by-side with version 11 of the web browser. The company went on the spell out what it plans to offer with this new version. " http://www.winbeta.org/news/microsoft-unveils-developer-channel-internet-explorer-12-ie12
    mako yass
    @makoConstruct
    ah, nice
    Keith Cirkel
    @keithamus
    On the point of CS and backwards compatibility - the EcmaScript comittee were silent for a long time, but ES6 is the start of many more to come. ES7 is already in planning and will (likely) be released in 2016/17, which will be yet another version of ES that CS needs to catch up with
    Right now I believe CS is only targeting ES3 - and it might be fine continuing as a language that does that
    But make no mistake, it is definitely a fork in the road in terms of JS
    CS will not be able to move toward ES6 without significant changes.
    mako yass
    @makoConstruct
    =) Crazy idea for when one of us has way too much time on their hands: A version of jwerty that fully supports keyboards with unlimited rollover, IE, allows combos like "ctrl+C+D+A"
    mako yass
    @makoConstruct
    OK, about ready to merge
    That inline documentation, does it do anything?
    Or is it all on the Readmes.
    Keith Cirkel
    @keithamus
    All in the readmes.
    I might end up using Docco or something - but don't worry too much about it for now
    Sounds like a good idea about the unlimited rollover
    It'd be nice to have it support any number of keys generically, including without modifiers, so 'a+;+v' is a valid combo, or something
    Bogdan Kulbida
    @kulbida
    Hi Keith. Please review PR here okonet/jwerty#1
    Keith Cirkel
    @keithamus
    Are you aware that this isn't on the main repository?
    If you want it merged into mainline jwerty - you'll need to make a PR against the main repo
    Uladzimir Havenchyk
    @havenchyk
    @keithamus Hey, is this lib still alive?)

    I've posted a question, but found the solution already http://stackoverflow.com/questions/39147500/unexpected-warnings-during-loading-the-module

    the reason of exceptions is in require inside lib to check existing of jquery, zepto etc

    @keithamus would you mind if I post a PR to get rid of this? We're in the modern world already
    IE9+
    bebo
    @bebor
    jwerty.is('ctrl', event) is not working for me. should it?