These are chat archives for elliottminns/blackfish

16th
Apr 2016
Pierre Abi-aad
@abiaad
Apr 16 2016 17:44
hey Elliott
hope you’re good
I’m back on Blackfish :)
Elliott Minns
@elliottminns
Apr 16 2016 17:51
Hey man! Good to hear it
I've added some new features so far, mainly to the echo part
I'm using it for a project I'm starting
Pierre Abi-aad
@abiaad
Apr 16 2016 17:52
Yes I just saw that
thats’s cool :)
I started a fresh new project
Elliott Minns
@elliottminns
Apr 16 2016 17:52
Awesome!
Pierre Abi-aad
@abiaad
Apr 16 2016 17:52
blocked at compiling ahah
looking for why
Elliott Minns
@elliottminns
Apr 16 2016 17:53
Which version of swift do you have?
Pierre Abi-aad
@abiaad
Apr 16 2016 17:54
03-16 swift 3.0
dev
Elliott Minns
@elliottminns
Apr 16 2016 17:54
Try it with 04-12
Pierre Abi-aad
@abiaad
Apr 16 2016 17:54
let’s see that
Elliott Minns
@elliottminns
Apr 16 2016 17:54
Should work smoothly there
They made lots of breaking changes so I'm trying to keep up to date with the swift head
Pierre Abi-aad
@abiaad
Apr 16 2016 17:55
ok !
would be top if readme is upated for each new version of swift used for Blackfish
Elliott Minns
@elliottminns
Apr 16 2016 17:56
Yeah, I need to keep on top of that
Pierre Abi-aad
@abiaad
Apr 16 2016 17:56
I tried Zewo lib
I’m sure you know it
Elliott Minns
@elliottminns
Apr 16 2016 17:57
I have seen it
Not used it before, how was it?
Pierre Abi-aad
@abiaad
Apr 16 2016 17:57
Heavy stuff ...
Elliott Minns
@elliottminns
Apr 16 2016 17:58
Haha how so?
Pierre Abi-aad
@abiaad
Apr 16 2016 17:59
you have a root lib and tons of submodules. You can plug them as you need them. But it’s very messy
like a jungle
Elliott Minns
@elliottminns
Apr 16 2016 18:00
I can see that becoming tedious
I'm trying to keep everything together, blackfish for the api and web server and echo for the low level async io
Pierre Abi-aad
@abiaad
Apr 16 2016 18:01
I think your vision is better
Elliott Minns
@elliottminns
Apr 16 2016 18:01
Thanks man, it's Nodejs and Express that inspired me
Libuv is fantastic also (although a pain to work with in ARC)
Pierre Abi-aad
@abiaad
Apr 16 2016 18:03
don’t know libuv at all :/
Elliott Minns
@elliottminns
Apr 16 2016 18:03
It's the c library that powers Node
It's about non-blocking io
Pierre Abi-aad
@abiaad
Apr 16 2016 18:03
oh yes
with the T-rex logo
I saw it ahah
Elliott Minns
@elliottminns
Apr 16 2016 18:04
Correct!
😁
Pierre Abi-aad
@abiaad
Apr 16 2016 18:04
You’re alone on Blackfish ?
Elliott Minns
@elliottminns
Apr 16 2016 18:04
I am
Unfortunately
Pierre Abi-aad
@abiaad
Apr 16 2016 18:04
I’m impressed ...
Elliott Minns
@elliottminns
Apr 16 2016 18:05
Hopefully if this company I'm starting takes off though I can get people to work on it
Pierre Abi-aad
@abiaad
Apr 16 2016 18:05
keep going !
Elliott Minns
@elliottminns
Apr 16 2016 18:05
Thanks man!
Pierre Abi-aad
@abiaad
Apr 16 2016 18:05
and I’ll will help if I meet some problem with my project
Elliott Minns
@elliottminns
Apr 16 2016 18:06
Please do!
Let me know if you need anything also
Pierre Abi-aad
@abiaad
Apr 16 2016 18:06
thx :)
Pierre Abi-aad
@abiaad
Apr 16 2016 19:04
btw did you find a way to enable autocompletion (with Xcode eg) ?
Pierre Abi-aad
@abiaad
Apr 16 2016 19:31
another question : why do you apply lowercase on request’s headers ?
Pierre Abi-aad
@abiaad
Apr 16 2016 19:43
and another one ^^. How do you handle route parameters ? e.g. route.get(“/user/:id”). (just as exemple)
Elliott Minns
@elliottminns
Apr 16 2016 19:44
I believe it should be in the data but I might change that to
be in its own data store
Pierre Abi-aad
@abiaad
Apr 16 2016 19:44
just questions ;)
Elliott Minns
@elliottminns
Apr 16 2016 19:45
So request.data["id"]
Pierre Abi-aad
@abiaad
Apr 16 2016 19:45
would be cool indeed
Elliott Minns
@elliottminns
Apr 16 2016 19:45
If not, check req.params
The wiki should say which one its stored in
Pierre Abi-aad
@abiaad
Apr 16 2016 19:45
ok !
ok so data is empty
print out parameters return :
[":id": “anId", "id": “anId”]
Elliott Minns
@elliottminns
Apr 16 2016 19:49
Argh, must be a bug
Pierre Abi-aad
@abiaad
Apr 16 2016 19:49
héhé
hehe
if you want I can fix it
remove “:id"