4 ms·
Starting off with C? Ow. R or Python seem like they'd be much better choices for something students would actually use in the future, given their data analysis
by crooked-v 8y ago
Starting off with C? Ow. R or Python seem like they'd be much better choices for something students would actually use in the future, given their data analysis tools.
- ummonk 8y agoOr Julia if you want to prepare them for the future.
- natalyarostova 8y agoYeah, Python will pretty much be deprecated over the next few years./s
- nerdponx 8y agoI'm a big fan of Julia, but I wouldn't say that it's a great introduction to programming. Python is the way to go IMO, unless Julia really takes off.
- ummonk 8y agoWhy isn’t it a good introduction to programming? It has a really consistent syntax, and polymorphism via multiple dispatch is a lot simpler to learn than polymorphism via classes imo.
- headcanon 8y agoI agree, this doesn't make sense. Python especially strikes the perfect balance between learning programming concepts and being productive almost immediately in real-life. It seems like most of the problems the students experienced were lower-level CS details like types and pointers that didn't directly translate with the kinds of data analysis problems that they were likely be able to apply to their studies. If they were CS majors I would entertain them learning the lower-level stuff first but not for what they are trying to accomplish.
- MrEfficiency 8y agoI always recommend python. You are teaching coding, not computer science and electrical engineering on Day 1. Setting variables, printing things on the screen, creating loops, making your first functions- Thats day 1. With that, I would assume most people become addicted to programming, when you make a function, you can feel the power of programming. After that, I encourage people to solve a problem in their own life. Most of the time, you can rig it in python- but if they wanted to build an app, they are basically ready. My objective is to give them instant gratification and feed into their personal goals.
- mathattack 8y agoPointers seem unnecessary for non-CS majors. Go with R or Python.
- jhanschoo 8y agoFor those languages I'd translate such questions to ones about reference types and scoping; these are indeed must-know and a common source of bugs.
- Fradow 8y agoThey don't start with C, they start with Arduino, which incidentally requires C++. The big difference is that you can easily have blinking LEDs, sensors and what not, which makes the act of programming more "concrete".
- analog31 8y agoYes. To bring other up to speed, the world of low cost "hobbyist" microcontroller boards has converged on the Arduino development environment, which is based on GCC. In fact I think that offering a widely available, free, and tolerable firmware development environment was a major breakthrough for hobbyist embedded systems. Using C is not as bad as it seems. For one thing, embedded projects always start out a lot smaller than software projects on a big computer. You spend a lot of your time as a beginner, understanding the hardware side of things, such as interpreting the numbers associated with i/o pins and other devices. In the entire duration of a beginner course, you might never get past programs of maybe 25 lines. I use microcontrollers in R&D, and have been quite happy sticking with Arduino based boards.