Off Topic > Off Topic
Programming Megathread
Foxscotch:
--- Quote from: Timestamp on November 06, 2016, 02:05:13 PM ---so lua doesn't have much ways to make classes like python or other languages do? or are you saying it's difficult to make a class using lua?
--- End quote ---
python has this:
class Whatever:
def __init__(self, stuff):
pass
lua does not. you can make something like that with tables, which is lua's only non-primitive data type (serves the place of both lists and dictionaries). and it's not very difficult, but it could be a bother to write code for that on your own, so there are plenty of libraries already written for that purpose, like 30log or middleclass
speaking of lua, if you really wanna get into it, you should check this out
https://github.com/LewisJEllis/awesome-lua
and for... pretty much anything else programming-related:
https://github.com/sindresorhus/awesome
there's all kinds of lists there, about things from programming languages to university classes to game engines
--- Quote from: Electrk. on November 06, 2016, 02:13:27 PM ---"if you can't learn things the way I do, then you'll never be good at it!"
--- End quote ---
sure sounds unreasonable when you put it that way, but I don't care how you learn it. the point is that programming requires patience. and if you don't have the patience to read, it's unlikely that you have the patience for programming. you're not gonna be able to get all your API documentation from youtube videos. troubleshooting a bug isn't particularly exciting unless you're just into that. outside of the first few times you try something out in a REPL, there's not a whole lot of instant gratification going on
Ipquarx:
im trying to get into freelance work for the sake of my resume and getting some extra spending money
Electrk.:
--- Quote from: Foxscotch on November 06, 2016, 02:22:06 PM ---sure sounds unreasonable when you put it that way, but I don't care how you learn it. the point is that programming requires patience. and if you don't have the patience to read, it's unlikely that you have the patience for programming. you're not gonna be able to get all your API documentation from youtube videos. troubleshooting a bug isn't particularly exciting unless you're just into that. outside of the first few times you try something out in a REPL, there's not a whole lot of instant gratification going on
--- End quote ---
People have different levels of patience for different types of things. I don't have patience to read a few paragraphs let alone an entire book but yet somehow I'm able to program/debug/sift through documentation/online resources for hours on end. There's a difference between problem solving and reading a book. I guess it also depends on how interested someone is in programming and whether or not it's their passion. If they're not into it, then you're right they probably won't have the patience for it.
Timestamp:
--- Quote from: Foxscotch on November 06, 2016, 02:22:06 PM ---python has this:
class Whatever:
def __init__(self, stuff):
pass
lua does not. you can make something like that with tables, which is lua's only non-primitive data type (serves the place of both lists and dictionaries). and it's not very difficult, but it could be a bother to write code for that on your own, so there are plenty of libraries already written for that purpose, like 30log or middleclass
--- End quote ---
ah ok thanks
i'd think a lua documentation would educate me more on lua but thanks for the links
Foxscotch:
--- Quote from: Electrk. on November 06, 2016, 02:31:26 PM ---People have different levels of patience for different types of things. I don't have patience to read a few paragraphs let alone an entire book but yet somehow I'm able to program/debug/sift through documentation/online resources for hours on end. There's a difference between problem solving and reading a book. I guess it also depends on how interested someone is in programming and whether or not it's their passion. If they're not into it, then you're right they probably won't have the patience for it.
--- End quote ---
yeah, everyone is different. I guess I shouldn't say such general things
--- Quote from: Timestamp on November 06, 2016, 02:36:09 PM ---ah ok thanks
i'd think a lua documentation would educate me more on lua but thanks for the links
--- End quote ---
written by the creator of lua himself, Programming in Lua is good, and better yet, the first edition free to read online. there are newer, more up-to-date versions, but it's recent enough
the manual is of course also available, but more focused on being a reference for the language itself and its libraries than actually teaching you how to write lua code