Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 23 2015 19:49
    vaz-ar starred darthlukan/gobot
  • Jun 28 2015 09:34

    darthlukan on master

    Update README (compare)

  • Jun 28 2015 09:26

    darthlukan on api

    (compare)

  • Jun 27 2015 22:14
    setkeh commented #19
  • Jun 27 2015 21:57
    darthlukan assigned #19
  • Jun 27 2015 21:57
    darthlukan labeled #19
  • Jun 27 2015 21:57
    darthlukan opened #19
  • Jun 27 2015 21:54
    darthlukan assigned #18
  • Jun 27 2015 21:54
    darthlukan labeled #18
  • Jun 27 2015 21:54
    darthlukan opened #18
  • Jun 27 2015 21:53
    darthlukan assigned #17
  • Jun 27 2015 21:53
    darthlukan labeled #17
  • Jun 27 2015 21:53
    darthlukan opened #17
  • Jun 27 2015 21:48

    darthlukan on api

    Add todo items for this branch (compare)

  • Mar 15 2015 12:33

    darthlukan on master

    don't quit anytime an admin say… (compare)

  • Mar 15 2015 08:49

    darthlukan on master

    set default to blank (compare)

  • Mar 15 2015 08:42
    darthlukan closed #14
  • Mar 15 2015 08:42
    darthlukan commented #14
  • Mar 15 2015 08:37

    darthlukan on master

    let the lib handle the connecti… (compare)

  • Mar 15 2015 08:17

    darthlukan on master

    correct the code for help comma… (compare)

Setkeh
@setkeh
Nice it's nearly week end for me so hopefully I can eyeball the code a little more and make another pr if I think of a plan 😄
Brian Tomlinson
@darthlukan
@BlackNoxis: No need to reference them in main, they are in the same package
The compiler sees "package main" in them and they all become a single binary
Also, this makes it easier to write tests and scale out the project
Single responsibility principle where it makes sense
Brian Tomlinson
@darthlukan
@BlackNoxis: Think of it like this, now, anything having to do with Commands can be tested via the commands.go file, completely separate from the main app
it means we have more granularity and a change in one area of the code isn't going to break another area
package main   // this is the important bit
so long as the files are in the dev directory, go build will compile them into the same binary and they will work
now if I add a dir and call it "foo" all files in the "foo" dir would need to have:
```
package foo
now that package can be installed separately
it would have to be referenced in the main package to be used
go you could do:
$ go get github.com/darthlukan/gobot/foo
without needing to pull in all of gobot
so yeah, next order of business is to write some unittests
that way we're not just relying on if it builds ;P
Stefan Cristian B.
@StefanCristian
hmm... need to test this :)
Setkeh
@setkeh
Ha that's a neat feature keep the code clean and fuck the binary because well it's binary lmfao
Brian Tomlinson
@darthlukan
:)
Go really was designed with project scale in mind
and it's not like we don't already do those things in other languages
Setkeh
@setkeh
Exactly
Setkeh
@setkeh
I think the base 64 image gallery I have been working on in node I might try to convert that to go as well but I also need to start on the paas too lol
Setkeh
@setkeh
Brian can u use JavaScript to encode a base 64 image in the browser then submit that base 64 to mongo or redis so server load is low ??
For example
Actually never mind thinking about the example question has basically answered both questions lol
And I think I know how to implant it in a painless way
Setkeh
@setkeh
Gotta love it when that happens lol
Stefan Cristian B.
@StefanCristian
@darthlukan nothing happened. don't bother.
Brian Tomlinson
@darthlukan
o.0
Stefan Cristian B.
@StefanCristian
nothing happened.
doesn't matter.
Brian Tomlinson
@darthlukan
why is it looking for package: package
Stefan Cristian B.
@StefanCristian
HOLY SHIT
Brian Tomlinson
@darthlukan
?
don't you mean package main
?
Stefan Cristian B.
@StefanCristian
it was PEBKAC
Brian Tomlinson
@darthlukan
:)
it happens
Stefan Cristian B.
@StefanCristian
started to freak out
anyway, excellent feature of GO-lang
I love this feature
Brian Tomlinson
@darthlukan
:)
Stefan Cristian B.
@StefanCristian
didn't even start to use it, I already love it
Brian Tomlinson
@darthlukan
@setkeh - Um, you can store whatever you want in a database
whether or not the DB constraints allow the data type in that column/document/field/etc is a whole other ball game
Setkeh
@setkeh
Oh yeah i was more thinking of using th browser to encode being an issue but its pretty basic JS so i dont think it will be an issue
i know i can put base64's in mongo since i have done it with node already