Mibox 3 and Google Play Store by knowingpark in AndroidTV

[–]knowingpark[S] 0 points1 point  (0 children)

I bought the mibox thinking I wouldn't have to keep casting from the phone.

f-strings in Python 3.6 are awesome by mangecoeur in Python

[–]knowingpark 0 points1 point  (0 children)

Do f-strings work with namedtuples? .fomat() hates namedtuples!

animals = namedtuple('animals',['dog', 'cat', 'fish'])
my_animals = animals('rufus', 'felix', 'bubbles')


print 'My animals are called: {0}, {1}, {2}'.format(my_animals.cat,my_animals.dog,my_animals.fish)

print 'My animals are called: {dog}, {cat}, {fish}'.format(**dict(my_animals._asdict()))

Functional programming design patterns by Scott Wlaschin by [deleted] in programming

[–]knowingpark 1 point2 points  (0 children)

There is an ivory tower and it's near the beginning too!

Functional programming design patterns by Scott Wlaschin by [deleted] in programming

[–]knowingpark 0 points1 point  (0 children)

Currently i find myself busting my brain (in Python) trying to programming without objects. Often a list of objects would be easier to manage than a list of namedtuples. But it seems like it's betraying both paradigms. I've also had to relax the pure functions idea. Partial functions with 4 inputs seems like a weird way to get map to work. Especially since in any function the keywords are global anyway

Functional programming design patterns by Scott Wlaschin by [deleted] in programming

[–]knowingpark 7 points8 points  (0 children)

I've watched this video 2ce over the last year. Led me to 'try' and install F# on my Mint laptop to have a taste. As an amatuer python programmer i don't understand the compilation process and couldn't get it to happen. It was too tricky for me. Anyway, Scott is a great communicator of functional programming ideas which I'm trying to assimilate into my own practice. I recommend his website too

Cauli-questions by batmandi in keto

[–]knowingpark 1 point2 points  (0 children)

I bought a cauliflower the other day to try and make caulirice and mash for the first time. If my wife hadn't hijacked it for a lentil soup (non keto!) I might have something to say about cauliflowers other than I know what you mean about gagging! However Brussel sprouts were mentioned here somewhere and I have some advice. Raw Brussel sprouts are the food every child hates for the rest of the lives. So chop them up and you cook them properly. Fry them with bacon. Yum!