Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 14 08:37
    mahmoudimus starred imba/imba
  • Dec 13 18:36
    a5x starred imba/imba
  • Dec 12 21:42

    somebee on 2.0-es6

    Grammar changes Rename custom selection event t… More work on tests / examples (compare)

  • Dec 12 10:12
    sponnusa starred imba/imba
  • Dec 12 08:06
    Bohooslav commented #163
  • Dec 12 07:09
    gortang commented #163
  • Dec 12 02:11

    somebee on 2.0-es6

    Make sure text as only child is… Working on event handling (compare)

  • Dec 11 06:30

    scanf on master

    Update tools.md Merge pull request #108 from cs… (compare)

  • Dec 11 06:30
    scanf closed #108
  • Dec 11 02:22

    somebee on 2.0-es6

    Add test for reopening class (compare)

  • Dec 11 01:48

    somebee on 2.0-es6

    Add more class tests (compare)

  • Dec 11 01:38

    somebee on 2.0-es6

    Cleaning up some tests (compare)

  • Dec 11 01:33

    somebee on 2.0-es6

    Add more class tests Use native array destructuring (compare)

  • Dec 11 00:58

    somebee on 2.0-es6

    Allow classes without name (compare)

  • Dec 11 00:45

    somebee on 2.0-es6

    Parse more export syntax wip import export wip es6 classes (compare)

  • Dec 10 20:21
    daveearley starred imba/imba
  • Dec 10 04:29

    somebee on 2.0-es6

    Improve grammar / parser Add placeholders for tests (compare)

  • Dec 10 03:36

    somebee on 2.0-es6

    Support dynamic method names us… Allow arguments in dynamic meth… Fix fragment test and 1 more (compare)

  • Dec 10 02:54

    somebee on 2.0-es6

    Add tests for forof and forin Allow destructuring args in for… Add forin test with guard and 1 more (compare)

Marek Piasecki
@madmaniak
You know about this <tag[data]> notation?
Allain Lalonde
@allain
When writing a reusable button for others to consume I can't possibly know all of the attributes they might want to use and I don't want to have to declare every last one of them even if the consumer isn't going to use them.
Marek Piasecki
@madmaniak
Which attributes for example?
Allain Lalonde
@allain
If I were writing a wrapper around <input>, I'd have to declare it as using all of these https://www.w3schools.com/tags/tag_input.asp in case a user of my new tag was ever to use one
in react I could const Input = ({...props}) => <input {...props} /> and be done with it.
I know it's a stretch, and dynamic attributes (as above) kinda go against the compile time nature of imba, but... at compile time we can figure out how all of the callers of <Input> are using it and generate the most efficient code for each case. Hypothetically.
Marek Piasecki
@madmaniak

What you will do is:

tag MyTag < input

   # definition

And then user can use it this way:

<MyTag type="submit" value="you didn't define this value, still user can use it">
it's defined in input, so you don't care
Allain Lalonde
@allain
ok. Thanks
Tomasz Wegrzanowski
@taw
did the channel move here ?
there seem to be two imba channels now
anyway, really quick thing, navigator should be treated as implicit global same as window, document etc. - https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation - browser APIs are :poop: but we have to live with that
Tomasz Wegrzanowski
@taw
well, i guess window:navigator also works because browsers have those silly aliases
Fedor Leschinsky
@altteo
It is a good idea to make a forum. Every newcomer has almost the same questions
Eric Tirado
@iamtirado
I agree.
Eric Tirado
@iamtirado
I’m trying to select an object by it’s key value if it matches the state value. This is how I’d do it in js, but not sure how to do it imba syntax. I’ve done several attempts today, and though close, I couldn’t quite do it right. Any tips?
const objects = [
    {a: 1, b: 2}
    {a: 3, b: 4}
]
let state = {key:2}

let result = objects.filter(obj => {
    return obj.b === state.key}
    )

console.log(result)
Fedor Leschinsky
@altteo
let arr = []
arr.push {a: 1, b: 2}
arr.push {a: 3, b: 4}

let state = {key: 2}
let result = arr.filter(do |obj| obj:b is state:key)
console.log result
Eric Tirado
@iamtirado
Thank you. Taking notes here. Still wrapping my head around Imba syntax.
Fedor Leschinsky
@altteo
just wrote some js code (cloud functions)... in almost every aspect thought "why I could not do this like in Imba" :-)
Eric Tirado
@iamtirado
haha.
alaoui abdellah
@haikyuu
discourse is great for forums @altteo
Felix Fehse
@shiMusa
To the devs: I just discovered imba and I imediately fell in love with it! It's concise, easy to use and insanely fast - exactly what I was looking for (made a table with 10k entries and tooltips; no chance in Vue, but fluent in imba)... Please don't stop developing it! <3
Just a small remark:
Importing var via import {variable} from '...' didn't really work. I have to use var base = require '...' and then I can only access the variables via base:variable and not as described in the docs via base.variable....
maybe I missed something?
Marek Piasecki
@madmaniak
somehow more active chat is on somebee/imba @shiMusa
maybe without {} will work? I was using require so fat but I know import is possible
Felix Fehse
@shiMusa
@madmaniak Thanks for the tip!
Cassiano Surdi Franco
@CassianoSF
https://github.com/CassianoSF/imba-top-down-shooter
Its a work in progress... but I'm already proud of it 😁
Marek Piasecki
@madmaniak
Thanks!
Богуслав
@Bohooslav
I use imba-router, and it catches inner links like href="#some_link". How to prevent such behaviour or organise inner links?
Alexander Alemayhu
@scanf
The latest recording from the bi-weekly community meeting. Enjoy! https://youtu.be/uB5lG7KfcqM
Alexander Alemayhu
@scanf
I am trying to get us an mascot, please share your thoughts here imba/imba#245
Alexander Alemayhu
@scanf
Eric Tirado
@iamtirado
I just realized that gitbook can be integrated to a github repo to merge with. That way we can work either on the gitbook platform and possibly publish to imba.io
Богуслав
@Bohooslav
In any way, you need to keep the imba.io which is the face of the language and its identity.
cstffx
@cstffx
Since Spanish is my native language, I would like to collaborate translating the web of imba.io to spanish. Is there any recommendation or procedure to start doing this?
Eric Tirado
@iamtirado
Awesome. I started a spanish translation, but my spanish is a bit rusty. Your help will be greatly appreciated. You can contribute to the spanish translation here: https://crowdin.com/project/imba/es-ES#
Alexander Alemayhu
@scanf
Enjoy!
Eric Tirado
@iamtirado

I caught up on the video, I am currently going over the documentation I have on gitbook which I had written for Imba 1. I am testing everything there against Imba 2. I have been finding and reporting bugs through that process, but I would like to try a webpack project. I tried all day today to get one working with no success. I'm still getting errors like "imbaElements is not defined" and I don't know how to debug that.

If someone could help me get a simple webpack 4 imba2 sfc sass project folder. I could continue my docs drafting/cleanup, and bug testing. I got a desktop to work from until I get my laptop back.

Alexander Alemayhu
@scanf
TBH, i don’t think you can get it working due to the state of the compiler. Please correct me if that’s wrong @somebee.
*and loader probably needs changes
Eric Tirado
@iamtirado
I went through the docs and I updated content for about 5 hours today. I'm pretty much done with all the basics stuff.
The next pages that need major updates are Tag, Events, Classes, and need to add pages on slots and SFC.
I'm excited, but I think I'm gonna have limited testing abilities without import and export.
I'll do what I can with what I have. If I face any roadblocks, I'll ask here.
Eric Tirado
@iamtirado
@scanf I will have little access to a computer for the next two weeks. I will still receive emails and access the chat on and off on my phone.
Alexander Alemayhu
@scanf
Thanks for letting us know.