Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
gonadic io
Feb 16, 2011

>>=

jit bull transpile posted:

Can someone explain what is meant by "composability"? It's a term that is used itt all the time but I've never encountered it elsewhere.

it's when it's easy to use two different things together. name comes from function composition i.e. g(f(x)) how it's easy to compose the functions f and g. the opposite would be when two different things are real hard to use together, like how if you had to do some large conversion on the result f(x) before you could call g on it.

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006
linq is a good example of composability.

redleader
Aug 18, 2005

Engage according to operational parameters
luckily i don't have to think about tefposts since everything in one db hell yeah no message queues no masters

jony neuemonic posted:

well, and this may be a not great explanation and will definitely be web-biased but here's why i like it (which will hopefully be more useful than a glib 'it passes messages to message handlers'):

- it minimizes the number of dependencies your controllers have to take. instead of data access classes, loggers, whatever, your controller can just take a mediator and then send messages to it when it wants something.

- related to that, it means that you can seamlessly (from your controllers' perspective) back a feature with whatever you want because it's all hidden away in the handler. the controller just says "i want all the things" but it doesn't know/care whether they're in a db, flat files, wherever.

- it also means you don't end up coming back and cramming more stuff into your controller methods every time someone asks for something new to happen whenever you do X ("we want an email when..." is a great example). you just add a new handler for the message and do it there.

- this is opinion-y, but i think it makes testing easier. controllers get way simpler (you just mock a single dependency), handlers tend to be more integration test than unit test friendly but... i think that's fine? there's also no reason you can't unit test them, you just tend to have to mock more which decreases the value imo.

this is a way better sell than the mediatr github page

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

jit bull transpile posted:

Can someone explain what is meant by "composability"? It's a term that is used itt all the time but I've never encountered it elsewhere.


to contrast with inheritance, in the "car extends vehicle" example instead of defining a complicated "Vehicle" interface that makes a lot of assumptions about what a vehicle is, you'd define smaller modules like "HasWheels", "ContainsPassenger", "KillsPedestrians" etc. Then you can have "Car extends HasWheels with ContainsPassenger" or "DriverlessCar extends HasWheels with KillsPedestrians".

DONT THREAD ON ME fucked around with this message at 21:59 on Jul 23, 2018

redleader
Aug 18, 2005

Engage according to operational parameters
you see, composability is like lego

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
composability good, class inheritance bad willing to die on this hill

Lutha Mahtin
Oct 10, 2010

Your brokebrain sin is absolved...go and shitpost no more!

redleader posted:

you see, composability is like lego

i mean...it is though, right? i always took "composable" to mean "you can easily mash it together with other things in order to get different effects"

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

negation is not composable with square roots unless you include the complex library

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Captain Foo posted:

negation is not composable with square roots unless you include the complex library

wish your posts weren’t composable

Shaggar
Apr 26, 2006

Lutha Mahtin posted:

i mean...it is though, right? i always took "composable" to mean "you can easily mash it together with other things in order to get different effects"

that's how legos work

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

MALE SHOEGAZE posted:

wish your posts weren’t composed

this is my legacy postbase, so deal with it

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
ok what’s the best blogging option in 2018? this is about shameless self promotion and not a burning passion to share my ideas with the world so im willing to pay i guess. ideally there’d be analytics i guess. not sure about comments: id guess that comments generate more traffic but it gives people an opportunity to point out how stupid i am right there in the blog, as opposed to offsite.

also people with blogs: do you think it’s helped your career much?

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 9 years!)

MALE SHOEGAZE posted:

ok what’s the best blogging option in 2018? this is about shameless self promotion and not a burning passion to share my ideas with the world so im willing to pay i guess. ideally there’d be analytics i guess. not sure about comments: id guess that comments generate more traffic but it gives people an opportunity to point out how stupid i am right there in the blog, as opposed to offsite.

also people with blogs: do you think it’s helped your career much?

medium

jony neuemonic
Nov 13, 2009

redleader posted:

this is a way better sell than the mediatr github page

ty. i think the author has done some blog posts about it but the github readme could probably still do with a "why, though?" blurb.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

no syntax highlighting? i'm not writing a go blog friend.

ok you can embed gists which is good enough but ugh this wysiwyg editor is really painful

DONT THREAD ON ME fucked around with this message at 22:26 on Jul 23, 2018

Bloody
Mar 3, 2013

MALE SHOEGAZE posted:

ok what’s the best blogging option in 2018? this is about shameless self promotion and not a burning passion to share my ideas with the world so im willing to pay i guess. ideally there’d be analytics i guess. not sure about comments: id guess that comments generate more traffic but it gives people an opportunity to point out how stupid i am right there in the blog, as opposed to offsite.

also people with blogs: do you think it’s helped your career much?

https://dev.to/

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 9 years!)

MALE SHOEGAZE posted:

no syntax highlighting? i'm not writing a go blog friend.

ok you can embed gists which is good enough but ugh this wysiwyg editor is really painful

that's just what it takes to be a thought leader

Mao Zedong Thot
Oct 16, 2008


MALE SHOEGAZE posted:

composability good, class inheritance bad willing to die on this hill

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
gently caress it rolling my own blogging engine

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum

MALE SHOEGAZE posted:

wish your posts weren’t composable
they're compostable

redleader
Aug 18, 2005

Engage according to operational parameters

Lutha Mahtin posted:

i mean...it is though, right? i always took "composable" to mean "you can easily mash it together with other things in order to get different effects"

i spent about zero seconds thinking through this analogy, so i'm sure someone is going to swing by and categorically explain why composability IS NOT lego and hurt my feelings

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

redleader posted:

i spent about zero seconds thinking through this analogy, so i'm sure someone is going to swing by and categorically explain why composability IS NOT lego and hurt my feelings

actually it's k'nex

akadajet
Sep 14, 2003

MALE SHOEGAZE posted:

gently caress it rolling my own blogging engine

what are you writing it in?

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

MALE SHOEGAZE posted:

composability good, class inheritance bad willing to die on this hill

they’re both good just for different things

“class inheritance bad” is essentially denying the existence of is-a relationships, which is laughable on its face

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

MALE SHOEGAZE posted:

ok what’s the best blogging option in 2018? this is about shameless self promotion and not a burning passion to share my ideas with the world so im willing to pay i guess. ideally there’d be analytics i guess. not sure about comments: id guess that comments generate more traffic but it gives people an opportunity to point out how stupid i am right there in the blog, as opposed to offsite.

also people with blogs: do you think it’s helped your career much?

fist eggplant medium can be a way to build an audience

putting your poo poo on your own domain (though hosted) is something you’ll want to do though

be sure to leverage Twitter etc. too, for audience engagement

micro.blog is easy to host stuff on, also can work like Twitter itself but also lets you host bigger content including photos and podcasts and can also act as a gateway/aggregator for your own hosted stuff (imagine if medium pulled from your wordpress server)

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

MALE SHOEGAZE posted:

gently caress it rolling my own blogging engine

write it in server side Swift!

Bloody
Mar 3, 2013

write it in fullstack rust

Fiedler
Jun 29, 2002

I, for one, welcome our new mouse overlords.

eschaton posted:

write it in server side Swift!

this. you'll be the only one with any experience doing it, which will present one or possibly two consulting opportunities in the future.

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


redleader posted:

luckily i don't have to think about tefposts since everything in one db hell yeah no message queues no masters


this is a way better sell than the mediatr github page

yeah this is much more useful than the github page, thanks.

I think I can think of a good use case for it to update a n existing feature but it would be a bit of a "doing it for the sake of doing it" type thing so maybe not.

thought I guess it would be my opportunity to be "that guy" that integrates some incomprehensible library into an app for no reason

jony neuemonic
Nov 13, 2009

MALE SHOEGAZE posted:

gently caress it rolling my own blogging engine

it's really not that hard if you just want markdown in -> static site out. i think i've written 3 different versions of that but still can't be bothered to actually blog.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

eschaton posted:

write it in server side Swift!


Bloody posted:

write it in fullstack rust

honestly i'm not gonna do it because like jony neuemonic, i've already done it 3 times and i dont want to get distracted by something i already know how to do. but i really want to. maybe i will write a blog engine in both languages and then write a blog comparing and contrasting.

eschaton posted:

they’re both good just for different things

“class inheritance bad” is essentially denying the existence of is-a relationships, which is laughable on its face
*dies*

i'm being facetious. clearly a language needs to be able to model is-a relationships. i suppose i'd amend my statement to say "composition is better than complex inheritance.

eschaton posted:

fist eggplant medium can be a way to build an audience

putting your poo poo on your own domain (though hosted) is something you’ll want to do though

be sure to leverage Twitter etc. too, for audience engagement

micro.blog is easy to host stuff on, also can work like Twitter itself but also lets you host bigger content including photos and podcasts and can also act as a gateway/aggregator for your own hosted stuff (imagine if medium pulled from your wordpress server)

yeah i'm definitely going to market this around. the rust team just introduced some blog amplifying program where you submit your blog and they post it up all over the place so i'm gonna try and do that too.

the talent deficit
Dec 20, 2003

self-deprecation is a very british trait, and problems can arise when the british attempt to do so with a foreign culture





MALE SHOEGAZE posted:

ok what’s the best blogging option in 2018? this is about shameless self promotion and not a burning passion to share my ideas with the world so im willing to pay i guess. ideally there’d be analytics i guess. not sure about comments: id guess that comments generate more traffic but it gives people an opportunity to point out how stupid i am right there in the blog, as opposed to offsite.

also people with blogs: do you think it’s helped your career much?

medium and no, it has not. i wrote some rebuttals to antirez promoting dumb and broken things you could use redis for and i got six months of people begging me to help them fix their redis problems

MononcQc
May 29, 2007

the only sustainable way I found to blog was to just post a thing there when it's either:

a) a talk transcript
b) a rant I keep repeating over and over until I'm tired and then I just link to the thing

b) is worth it because if you're a talkative person with a lot of things to rant about, it ends up saving time. Everything else ended up being kind of meh, and either felt like chasing clicks (I got rid of all tracking to fix that), or dumping half-finished tutorials.

ThePeavstenator
Dec 18, 2012

:burger::burger::burger::burger::burger:

Establish the Buns

:burger::burger::burger::burger::burger:
lol, spent 3 hours in our dumbest and most simple API that literally just does CRUD operations trying to figure out why a consumer storing an ISO date string "2018-07-23T16:20:00Z" was getting back "7/23/2018 4:20:00 PM". The API isn't supposed to parse the string at all and the only transformation any data undergoes involves mapping the API data model to a DB data model before storing it in Cosmos DB. Weirdly, the string was actually correctly stored as an ISO string in Cosmos DB as well.

Turns out that Newtonsoft.Json, dependency of several Microsoft packages, including the Cosmos DB one has a really cool feature: It parses ISO date strings from JSON as DateTimes by default even though JSON has no concept of a Date type. :suicide:

ThePeavstenator
Dec 18, 2012

:burger::burger::burger::burger::burger:

Establish the Buns

:burger::burger::burger::burger::burger:
best part of that 2 y/o (and still recently active) github issue:

thomaslevesque posted:

@JamesNK could you explain the reasons behind this design? It seems pretty strange to me that a string value should arbitrarily be interpreted as a date just because it looks like a date...

JamesNK posted:

Because JSON doesn't have a date format.

redleader
Aug 18, 2005

Engage according to operational parameters

MALE SHOEGAZE posted:

actually it's k'nex

you wound me, sir

redleader
Aug 18, 2005

Engage according to operational parameters
i should find something to blog about. gives me some way of showing "despite the long stint at $job, this person still has a functioning brain and can pretend he knows what he's talking about"

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

MALE SHOEGAZE posted:

yeah i'm definitely going to market this around. the rust team just introduced some blog amplifying program where you submit your blog and they post it up all over the place so i'm gonna try and do that too.

the Rust Evangelism Strike Force… is real?!

Bloody
Mar 3, 2013

I would blog if I had anything interesting to talk about at all that wasn't just straight up violating ndas

Adbot
ADBOT LOVES YOU

JawnV6
Jul 4, 2004

So hot ...

Bloody posted:

I would blog if I had anything interesting to talk about at all that wasn't just straight up violating ndas

oh my god the ndas i wanna pop rn

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply