<p>My goals are focused on software application development, and maybe web application development, but most likely desktop applications. I'm embarking on a path to becoming more familiar with C/C++, but should I go much lower than that, into assembly? Or would I not have a benefit for my long-term goals?</p>

[{'answer_id': 27949, 'author': 'Mark Ingram', 'author_id': 986, 'author_profile': 'https://Stackoverflow.com/users/986', 'pm_score': 1, 'selected': False, 'text': "<p>I wouldn't start learning ASM. If you want to learn C/C++ then start with that. As the quality of your code matures, you may find you have a need for ASM. 99% of the time you won't, but every now and then you might need it.</p>\n\n<p>Also, it does help to know ASM in terms of understanding what C/C++ is doing behind the scenes. But again, until you get more advanced, you probably won't have a need for it.</p>\n"}, {'answer_id': 27955, 'author': 'ScottStonehouse', 'author_id': 2342, 'author_profile': 'https://Stackoverflow.com/users/2342', 'pm_score': 1, 'selected': False, 'text': "<p>I did, and I think it helped me at the time.  It doesn't help me day to day anymore, but I think it would depend on your job.</p>\n\n<p>I learned assembler 20 years ago on a Commodore and again in University on an IBM mainframe.  I can't say it helps me in my current job.</p>\n"}, {'answer_id': 27963, 'author': 'Mark Biek', 'author_id': 305, 'author_profile': 'https://Stackoverflow.com/users/305', 'pm_score': 2, 'selected': True, 'text': '<p>It\'s probably not going to have a whole lot of benefit unless you have a direct application for it.  If you\'re going for general knowledge, C/C++ is a fine place to start.</p>\n\n<p>That said, the challenges that assembly poses are very interesting and it requires a pretty different mindset to get things done.</p>\n\n<p>I spent a little time learning Z80 assembly by programming the <a href="http://education.ti.com/educationportal/sites/US/productDetail/us_ti86.html" rel="nofollow noreferrer">TI-86</a> calculator.  The Z80 instruction set is pretty small and the novelty of programming a calculator in assembly is very amusing.</p>\n\n<p><a href="http://www.ticalc.org" rel="nofollow noreferrer">ticalc.org</a> has a lot of good resources on <a href="http://www.ticalc.org/basics/calculators/ti-86.html#8" rel="nofollow noreferrer">TI assembly programming</a>.</p>\n'}, {'answer_id': 27971, 'author': 'Inisheer', 'author_id': 2982, 'author_profile': 'https://Stackoverflow.com/users/2982', 'pm_score': 1, 'selected': False, 'text': "<p>I agree with Mark. I think it's similar to learning MSIL when writing in C#, VB.NET, or another .NET language. It helps to know what's going on under the hood, but you could go your entire life creating applications that work and never need it.</p>\n"}, {'answer_id': 27981, 'author': 'dbr', 'author_id': 745, 'author_profile': 'https://Stackoverflow.com/users/745', 'pm_score': 1, 'selected': False, 'text': "<p>No. Unless you want to for fun, you really don't need learn assembly.</p>\n\n<p>There are some things you need to know assembly for, like driver creation, OS development, exploit development, but aside from that, I personally believe you can quite happily code forever without knowing it.</p>\n\n<p>If you do need to learn assembly, you'll know it - I wouldn't learn it for the sake of learning it..</p>\n"}, {'answer_id': 27991, 'author': 'Chris', 'author_id': 2134, 'author_profile': 'https://Stackoverflow.com/users/2134', 'pm_score': 1, 'selected': False, 'text': '<p>If you are writing unmanaged C++, it is occasionally invaluable to know at least basic x86 assembly, binary number systems, etc.  I primarily do C/C++ development, and I occasionally need to debug production code for errors that are so specific to the machine-code representation produced by the compiler that the only way to find, and then fix the bug is to read the decompiled assembly and ascertain why the compiler generated it as such.</p>\n\n<p>For more information on assembly, see the question: <a href="https://stackoverflow.com/questions/25636/what-is-the-best-way-to-learn-assembly-specifically-for-someone-who-has-experie">What is the best way to learn Assembly? Specifically, for someone who has experience in dynamic languages</a>.</p>\n'}, {'answer_id': 28004, 'author': 'Rob Wells', 'author_id': 2974, 'author_profile': 'https://Stackoverflow.com/users/2974', 'pm_score': 2, 'selected': False, 'text': '<p>G\'day,</p>\n\n<p>I learnt PDP assembler when I did my Elect. Eng. degree in the late \'70\'s. The last dialect of assembler that I really used had four different modes of memory addressing. Last dialect I ooked at had 17 modes!</p>\n\n<p>Not sure what learning assembler really gives you nowadays. Back then it was an essential part of a CS stream in my elect. eng. degree.</p>\n\n<p>As to learning C++ I\'d just sit down and work through "<a href="http://accu.org/index.php/book_reviews?url=view.xqy?review=a002212&amp;term=koenig" rel="nofollow noreferrer">Accelerated C++"</a> which approaches C++ in its own right and not as "C with other bits".</p>\n\n<p>As to C, I\'d just work through the latest version of <a href="https://rads.stackoverflow.com/amzn/click/com/0131103628" rel="nofollow noreferrer" rel="nofollow noreferrer">"C Programming Lanuage"</a> (a.k.a.) K\'n\'R</p>\n\n<p>Hope this helps.</p>\n\n<p>cheers,\nRob</p>\n\n<p>Now if you\'d asked about nano-progrmming... (-:</p>\n'}, {'answer_id': 28024, 'author': 'BlaM', 'author_id': 999, 'author_profile': 'https://Stackoverflow.com/users/999', 'pm_score': 0, 'selected': False, 'text': '<p>I would not suggest to learn a "modern assembler language". </p>\n\n<p>However knowing a little about <a href="http://en.wikipedia.org/wiki/MOS_Technology_6510" rel="nofollow noreferrer">MOS 6510</a> Assembler and browsing through the disassembled <a href="http://en.wikipedia.org/wiki/C64" rel="nofollow noreferrer">C64</a> Kernel, a.k.a. it\'s OS and BASIC Interpreter, helped me a lot to understand what\'s going on inside a computer - stuff like interrupts and memory pages.</p>\n\n<p>This could possibly help you to give you hints how to write optimized code in other languages. A lot of that - however - is already done by modern compilers, so I\'d only suggest that if you\'re interested in what\'s going on inside of that black box.</p>\n'}, {'answer_id': 172943, 'author': 'user126593', 'author_id': 2033811, 'author_profile': 'https://Stackoverflow.com/users/2033811', 'pm_score': 2, 'selected': False, 'text': '<p>"Is it worth it to learn a dialect of assembly?"</p>\n\n<p>I have programmed assembly professionally. M68k running a fax machine and scanner. Also windows VxDs (virtual device drivers) back in the windows 3/3.1 days before they had a real kernel.</p>\n\n<p>When you code assembly to do ordinary software-y kinds of tasks (copying memory, concatenating strings, calling interrupt handlers etc), it\'s kind of interesting. Sometimes you code assembly to be called by C code to perform some specialized task as fast as possible on a given processor. That can be more interesting because you\'re looking for ways to take advantage of every cycle the processor gives you. You care about what\'s in the processor\'s L1 cache. You care about aligning data in memory to avoid cacheline hits (if I remember the term). You care about dual pipeline processor architecture and using the right 2 or 3 or 4 instructions in the right order so that 2 or 3 or 4 things are happening with a single clock tick (-one- of those HZ in the processor\'s XgHz).</p>\n\n<p>When you code assembly to drive custom hardware, now you\'re doing stuff like filling a 16byte buffer of memory, setting up a DMA operation and firing that data over to a controller that is doing something like driving a laser printer drum. And the drum is turning and can\'t be stopped and wants its next 16 bytes within the next 5us. Of course that can be done in C or C++. But the examples are endless.</p>\n\n<p>I would maybe trim off the last half of your question "Is it worth it to learn a dialect of assembly?" And make it "Is it worth it to learn?"</p>\n\n<p>If you love programming, how you define "worth" involves some component of the love of programming. In that sense, I\'ve never learned something in programming and not thought it was worth it. Even if I didn\'t use it much afterwords.</p>\n\n<p>In that same sense, I would almost say that the harder something is to learn, the more "worth" it it is.</p>\n\n<p>But all that fluffy crap aside, I believe it is worth it to at least get -some- assembly background. Go ahead and figure out how to write the assembly to replace a few simple stdlib routines like strcpy, memmove etc. Then try to optimize them, calling them from C a million times while timing it.</p>\n'}, {'answer_id': 172970, 'author': 'Dark Shikari', 'author_id': 11206, 'author_profile': 'https://Stackoverflow.com/users/11206', 'pm_score': 1, 'selected': False, 'text': "<p>Assembly is not very difficult.  Once you're familiar with C, spend a day or two learning basic assembly.  Its helpfulness in terms of debugging is tremendous, plus its fun being able to write code that beats the C equivalent speed-wise by a factor of 10, 15, or more.</p>\n"}, {'answer_id': 172989, 'author': 'Jeffrey L Whitledge', 'author_id': 10174, 'author_profile': 'https://Stackoverflow.com/users/10174', 'pm_score': 4, 'selected': False, 'text': '<p>I am really surprised to see so many "no" answers to this question. I think you <em>should</em> learn assembly.</p>\n\n<p>I do not expect that you would ever <em>use</em> assembly directly as part of your job. But it does not follow from that that you should not learn it.</p>\n\n<p>Learning assembly will teach you about what is going on inside the computer. It will help you to understand what the software is actually doing.</p>\n\n<p>It\'s really about professionalism. Are you going to be a professional software engineer? Or are you going to be a copy-and-paste hack? Sure, the latter may pay the bills, but being a professional is so much more satisfying.</p>\n\n<p>To hear someone say, "Nah, don\'t bother learning assembly," sounds to my ears like "Here\'s the cookbook for building bridges. You don\'t need to learn about physics or engineering to build a bridge. Just follow these recipes." No, thank you.</p>\n'}]
['https://Stackoverflow.com/questions/27942', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/572/']