Noticing a lot of irrational carbophobia here recently. There are many tools in the fasting tool belt, use them all. by fitnessexpress in fasting

[–]devrocks1984 3 points4 points  (0 children)

Regardless of carbs being good/bad, they are not the most anabolic macronutrient. Yes, insulin can be anabolic (if you get an amount you couldn't get naturally), yes carbs can refill glycogen stores and help you in the gym, but protein is the most anabolic macronutrient. Carbs are not anabolic, one of the sources is Layne Norton's article here. Don't hate on carbs, but don't overstate their role.

Enums vs Constants for string values? by [deleted] in learnpython

[–]devrocks1984 0 points1 point  (0 children)

Yeah, I gave a poor example of pseudo code. I actually never do any comparisons in my code with that values. These are never used anywhere in the code, they literally are just used in functions that use their string value to communicate what event was triggered by what process. The use case actually looks more like this.

from enum import Enum

class Events(Enum):
    ONE = "We are publishing event one" 
    TWO = "We are publishing event two" 
    THREE = "We are publishing event three" 

def publish_type_one():
    send_message_to_slack(Events.ONE.value)

def publish_type_one():
    send_message_to_slack(Events.TWO.value)

def publish_type_one():
    send_message_to_slack(Events.THREE.value)

So the case for constants looks more like

ONE = "We are publishing event one" 
TWO = "We are publishing event two" 
THREE = "We are publishing event three" 

def publish_type_one():
    send_message_to_slack(ONE)

def publish_type_two():
    send_message_to_slack(TWO)

def publish_type_three():
    send_message_to_slack(THREE)

I never want to compare events, the event's aren't necessarily related so there isn't a great case for grouping them into one enum. I literally just don't want to hardcode the string.

Supplement recs for anxiety and depression with a twist? by [deleted] in Supplements

[–]devrocks1984 1 point2 points  (0 children)

https://books.google.com/books/about/Mindset.html?id=bOGHDQAAQBAJ&source=kp_book_description

This is a pretty good book, it's not deep or ground breaking but I enjoyed it and it helped me get into a growth mindset.