Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
I need practical advice on how to build a compiler. Any advice is welcome, metaphors, tools, a learning order, things to study, etc.
At the moment I have been studying regular expressions and automata theory, deterministic and non-deterministic finite automata, but I don't understand the concepts very well, I plan to keep studying and share my progress with the community on this occasion.
I would appreciate any input or comments on your experiences in similar cases, as I said, anything is welcome, thank you very much!
The instructions I have received are as follows:
[Implement a compiler for a specific language considering the language stages.
Define, design and program the lexical and syntactic analyser stages of a translator or compiler to preamble the construction of a compiler].
As you can see the assignment is actually very abstract and it benefits me to do it my way, so I want to make the most of this experience.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 months ago.
Improve this question
So I am writing code for a microcontroller (using Arduino IDE), which I do not have a ton of experience doing. This question popped into my head when I was wondering which 'parts' of C++ I could use in my code that would flash onto this NRF52840 microcontroller. Basically, I am wondering: What on that board determines the code I must write for it?
I understand saying "what code can I write/not write" is broad, but its because I dont know what to say instead. A few guesses I have for substitutes for this would be: certain libraries? certain coding languages?, certain types of languages (interpreted vs compiled)?
Sorry if this question is too horribly stated to get an answer, but this was legit the best I could do lol.
In the case of using C++, it depends entirely upon what language features the compiler you are using supports. I suppose there might be hardware out there that is so simplistic that certain features are simply beyond the ability to implement, but I cannot tell you either what hardware that is, or what language features would be so effected.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I learned C++ basics such as syntax, data structures, and OOP. What should I learn next to be able to find small jobs as a college student and where?
Join open-source project. Checkout code, analyze it, learn, and once you will be more confident with your skills you can prepare your own features/fixes. Results of your pull requests will be your skills "score". The main advantage of it is seeing large-scale code, without going through job interview.
You can offer your skills as a freelancer. But remember that without practical knowledge your design decisions may be wrong. So don't take big contracts, because you may struggle with your own bugs.
Try to apply for an internship or a full/part-time job as a Junior Developer. The advantage is the same as (1) and you will get some money. But some jobs maybe not what you would expect to be, in open-source project you may choose your favorite.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm writing this after doing searches and not finding much useful answers. I know the basic of programming, like context (loops, conditionals), basic ideas (classes, instances, inheritance.) and I'd like to improve on my OOP. The thing is when I look at open source projects, they seem very overwhelming because there is so much going on. How can I improve and learn the concepts of OOP without jumping into a huge project. I'd like to go in steps because I always learn best when things are broken down and not thrown at me all at once. Are there any resources you can share? Or any advice in general would be really appreciated. I want to take the next step, but just don't know where to begin. How did you guys go about improving your skills, how did you take the next step? Right now I'm focused on C++ and Ruby.
OOP is an idea and doesn't depend on your programming language.
You can learn various design patterns to improve your OOP.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know the basics of having a user input their decision as a choice, and having that lead to another decision. My only issue is that when i make these choices, it is almost all hard coded in, leaving no room for other uses of the code. I was wondering what the best way to make a decision tree for AI that would allow them to make smart decisions based on the circumstances. I DO NOT want the pre-written code or a library. I would prefer to write the code myself and learn more about the language. I have a good understanding of the language, but would still like to learn more.
You can embed a scripting language (e.g. Lua) into your application and let your users write their decision trees as scripts.
Or you can think of some data structure (XML-based for example) that describes an arbitrary decision tree that you can parse and build the actual tree during run time.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
My algorithm is implemented in two versions which each uses a specific library (MKL and ITK). These implementations are provided since one of the libraries only are available to our users. Note that at the compilation time only one should be loaded and get compiled. I was confused which design pattern should be used here.
Thanks
In C++, the template way do a "strategy design pattern" in called a policy. It's described quite well in the first chapter of Andrei Alexandrescu's book "Modern C++ Design". Why, the template way, you might ask? Because it's compile time and only the code you use will be compiled.
I can't explain much because I don't actually have much experience using this, but in brief, a template don't have to be a type (like int, Person, float, etc.), it can be a function or a class. So you can code something like
Printer<ScreenStrategy> p; // or wathever!