notjack
2019-9-24 09:14:53

@samth typed racket package stats, computed using the functions in this module: https://gist.github.com/jackfirth/4f365d0f4380788342871fe65d0a2604



notjack
2019-9-24 09:49:42

@popa.bogdanp I love it, the github actions + git submodules combo seems like it has a lot of potential for racket ffi packages


soegaard2
2019-9-24 11:22:16

@popa.bogdanp Thanks! Totally missed that #:extension could be used.


soegaard2
2019-9-24 12:39:47

Anyone wants to kick the tires? https://racket-stories.com It’s up temporary to test a few things. Users / links etc won’t survive.

Feedback welcome.


spdegabrielle
2019-9-24 12:52:42

Nice!


chris613
2019-9-24 13:57:11

is it open source @soegaard2?


chris613
2019-9-24 13:57:23

ahhh found the about section …


soegaard2
2019-9-24 13:57:44

Yes, the current version is in the subdir listit4.


chris613
2019-9-24 14:07:47

pls don’t take this as a criticism, but with the model … is there a reason to setup the DB privately within that files context? in most applications ive built ive usually tried to pull the db out to the very top level and inject anywhere needed to make testing easier


chris613
2019-9-24 14:08:37

not saying its wrong, just currious if there is a technique thats common in the racket world that maybe im missing, or maybe its a principles thing (you aint gunna need it / over engineering sorta thing)


soegaard2
2019-9-24 14:09:57

Comments are indeed welcome. There is no grand reason. The initial tutorial had 3 files: “model.rkt”, “control.rkt” and “view.rkt” in order to make it clear what the MVC pattern means.


soegaard2
2019-9-24 14:10:29

When “model.rkt” grows I plan to make a “model” folder and split the contents.


soegaard2
2019-9-24 14:10:39

At that point the database setup will get its own file.


chris613
2019-9-24 14:10:57

coolio :slightly_smiling_face:


popa.bogdanp
2019-9-24 14:14:23

My own approach to building web apps in Racket (https://github.com/Bogdanp/koyo/blob/master/koyo-lib/blueprints/standard/app-name-here/dynamic.rkt#L25) is along these lines. It’s a lot more boilerplate-y than what @soegaard2 has done with racket-stories, though :smile:.


chris613
2019-9-24 14:14:57

TIL: you can have multiple languages #lang at-exp racket/base :slightly_smiling_face:


chris613
2019-9-24 14:18:48

is there no link for urlang/html ?


soegaard2
2019-9-24 14:20:44

It’s a wrapper for scribble/html with a few extra bits. But here is no documentation. https://github.com/soegaard/urlang/tree/master/urlang/html


chris613
2019-9-24 14:21:42

wow! impressive body of work there Bogdan, gunna star that for later reading :smile:


popa.bogdanp
2019-9-24 14:25:53

Thanks! It’s what http://matchacha.ro\|matchacha.ro runs on


samth
2019-9-24 14:30:04

@soegaard2 one thing that I’d love to see is github login


chris613
2019-9-24 14:30:21

the shop as well? the checkout screen looks like shopify maybe? (or do great artists steal ? :wink: )


soegaard2
2019-9-24 14:30:23

Good idea!


samth
2019-9-24 14:30:40

would be nice to have a library that just did it for you


popa.bogdanp
2019-9-24 14:31:30

Yeah, the whole thing. I did steal a bunch of design ideas from all over the place (incl. Shopify) :stuck_out_tongue:


soegaard2
2019-9-24 14:31:42

I looked at Google Sign-In the other day - but needed a real domain to try it.


chris613
2019-9-24 14:32:32

impressive stuff. is it posted on any “built with racket” sort of pages/places??


popa.bogdanp
2019-9-24 14:33:00

I don’t know. It might be on the wiki. I did write an experience report about it a while back: https://defn.io/2019/08/20/racket-ecommerce/