On Mon, Aug 1, 2016 at 2:27 PM, Jason Kridner <[email protected]> wrote:
I still "think" in C, but JavaScript really can be rather handy. As much as > people seem to want to get rid of curly braces, I still appreciate them > over making whitespace meaningful. Besides, everyone has a JavaScript > interpreter readily at their disposal almost without exception. > I still think in C too, but that's where a lot of us C programmers can get into trouble with Javascript. *If* we do not understand the Javascript language well. Reading the book "Javascript, the good parts" did a lot to putting me on the right track, but only after a couple years of misusing the language. Speaking of curly braces, placement of curly braces is important in Javascript. This is something that may sound silly from a C programmers standpoint. But it is true. Anyway, syntax is similar to C in many cases, but that's really where the similarities end. While I also have a love / hate relationship the non blocking nature of Javascript. It is an awesome feature, but at the same time "callback hell" can be difficult to avoid. Now days though, I actually write all my prototype code in Javascript. Before porting to C, if I port the code at all. Simply because it is quicker, and easier to get things done in Javascript. Despite having far more hands on experience with C, and other procedural type languages. *shrug* It's all good. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrPpJYmSmZYjC11AwcRcG80ydEv4Ed%3DyzfunRm4pkeddQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
