>The gist of it is that optimizations are hard to do at this granularity.
That really could use some better explaining. I should probably have said that abstractions aren't trivial to boil away even when they seem to be. But you can watch the talk and get a better idea probably.
Daily Programming Thread
>There is no way that anyone here can agree on anything
other generals seem to be able to do it, and previous threads had resources in the OP. I think you are just being anal.
also
>muh reddit spacing boogeyman
>Fuck off reddit-spacer
The things retards will complain about. Sheesh.
programming is more art than anything else
it would be stupid to have an art general and champion one book or drawing discipline as "Jow Forums approved" over all others
There's a thing called programming boot camp.
It takes perhaps 6 months.
If you attend one, you will learn a lot, including whether you like programming.
This is very important to know because programming takes a lot of effort.
I can't imagine doing it if I didn't enjoy it.
It's possible to learn on your own but for newbies it can be invaluable to have real live humans to consult.
Do you think we all agree that that is a great book?
b-ok.org
Here you go. There's some good books in there.
Other generals just like to market poor advice. I don't know why. The few attempts at a OP header have been disastrous and often just cause conflict. It's better this way.
Why do you even think it's of value if the people in this general doesn't find the recommendations good? You could go find a quora answer or whatever.
>other generals seem to be able to do it
So? There are many, many different types of programming which are VERY different, and people have very strong opinions about it.
I can not think of a single resource that many people will have significant problems with and just lead to a bunch of pointless shitposting.
>and previous threads had resources in the OP
No they haven't, newfag redditcuck.
>>muh reddit spacing boogeyman
Your posting style is disgusting to look at and juvenile (not just the spacing). Fuck off.
>one book
I don't see any other generals suggesting ONE HEADSET or ONE LINUX DISTRO over all others. The idea is to have many resources from different sources so that people can learn. user here said that the only link had tons of stuff, not just "one book"
>Do you think we all agree that that is a great book?
you don't have to agree on anything, compiling all the books and stating perceived pros and cons if needed is fine. no one said there has to be ONE DEFINITIVE BOOK one programming "X" language.
For error messages, what tense do you use:
"File is not found" or "File was not found"?
I feel like "was" is more correct in most if not all cases since the error values are typically stored before being logged.
afd = {0: {'a': 4, 'b':1},
1: {'a':2, 'b':1},
2: {'a':4, 'b':3},
3: {'a':0, 'b':3},
4: {'a':4, 'b':4}}
def accepts(transitions, initial, acceptions, string):
state = initial
for i in string:
state = transitions[state][i]
return state in acceptions
def main():
in_string = input("Introduce a string to check:" )
if accepts(afd, 0, {1, 3}, in_string):
print("Accepted.")
else:
print("Not accepted")
if __name__ == "__main__":
main()
So I wrote this little Deterministic Formal Automaton/Automata in Python3 like two months ago and almost forgot how it works. I'm using a dictionary to work with the states and specifying the transitions between states.
Now I need to implement a Pushdown Automaton/Automata or Stack Automaton/Automata, whatever you want to call it; Where I am also supposed to store and check for elements of a certain stack before moving through staes.
The thing is I have no idea how to do it. I'm honestly having a hard case of not even knowing what to ask. Yeah I know, I'm a huge brainlet so you might get mad and shit at me.
Still, if you could give any advice, I would really appreciate it.
Thanks a lot.