Source for simple programs in Brainfuck? [closed] - resources

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
Improve this question
Is there a source where I can get multiple simple programs like addition, factorial, fibonacci and others for the brainfuck programming language?
I know that there has been a question posted before here : https://stackoverflow.com/questions/3554670/tutorials-for-brainfuck
But I would like to have a list of simple programs, short bite-sized programs to get comfortable with the language. Any help is welcome. Thanks.

I believe the Wiki article had some simple examples of BrainFuck code. Brainfuck
As for Fibonacci, here's a page with some code (not mine, mind you) generating the Fibonacci sequence up to one hundred. Brainfuck, Fibonacci sequence
Do note that the classic Brainfuck interpreter uses byte variables to store memory cells. So if you'd like a factorial, it wouldn't get you much further than 5!.
Nonetheless, I've found an example for you. Brainfuck, Factorial
Extra reading: Simple, and not so simple programs in Brainfuck

Related

Searching for simple problems naturally solved using stacks [closed]

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 5 years ago.
Improve this question
I would like to know about simple problems that can be naturally solved using stacks with the usual interface (emptyS, isEmptyS, push, pop, top).
The complexity asociated to the context of the problem should be null. I can't touch topics like parsing, compiling or search algorithms at this moment. This discards many classical examples.
The most beautiful example I found so far is checking for balanced parenthesis in strings. In very few lines, without any other background, the exercise shows the utility of the data structure:
Another good example is procesing a string where the asterisk means to pop an item from the stack and a letter means to push it into the stack. The function must return the stack after the operations described in the string are applied to an empty stack.
If you can share some others problems, I will apreciate it very much.
Thank you in advance.
Though this question is too broad, I am going to give some other applications. Some of other common applications are -
Parsing
Recursive Function
Calling Function
Expression Evaluation
Expression Conversion
Infix to Postfix
Infix to Prefix
Postfix to Infix
Prefix to Infix
Towers of Hanoi
Some details can be found here.

Why use advanced compiler techniques over simple string manipulation in small compilers? [closed]

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 8 years ago.
Improve this question
What advantage is using (what I understand as) advanced compiler techniques like special grammar, AST, etc over simple string manipulation for making very small programming languages? I'm interested in compiler design and don't know wether I should learn all of this compiler theory if I'm only going to make small and simple languages. I know that as I start to make bigger languages I will probably have to use parser generators and the like, but until then should I bother?
You should definitely know what an AST is and how to build one. Even if you use parser generators later on. I mean, how can you be interested in compiler design but not in grammar and syntax trees? It always pays off to learn how stuff works under the hood, rather than taking it as magic.
And seriously, parsing anything else than Whitespace or Brainf*ck is awful with string manipulation as soon as it gets more complicated...

Coding an Image Vectorization Program [closed]

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 9 years ago.
Improve this question
I am wondering how you would code an image vectorization program, al la vectormagic.com? Where would you even begin and would it be possible to create in any web based programming languages?
Behind vectorization programs are complex algorithms (for basic outline look on quite nice paper depixelizing pixel art by guys at Microsoft).
Anyway, it's possible to write almost in any language, that can process images, but those complex algorithms are pretty system resources expensive. So web based languages are quite inappropriate for that type of task.

What programming languages should a college student put on his resume [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have put almost all the programming languages I have worked with on my resume, while I am only proficient in Java.
I would split the programming languages into Basic and Intermediate sections if you know some languages better than the other.
The last thing you want is the interviewer asking you some esoteric question about a language that you only know basics of and judge you for it.
Well, just tell the truth. If you have an experience in C++, tell them. Be honest and don't be afraid to say you're a bit rusty with the syntax, that's it.
Anyway, if they ask you to program an algorithm live, most of the time you can do it in the language you prefer, even pseudo-code (according to my experiences).

When do you call yourself a programmer [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
"A programmer, computer programmer or coder is someone who writes computer software" from Wikipedia
If you do frontend development using jQuery/CSS/HTML do you call yourself a programmer? If you develop PHP applications that deal with databases, do you call yourself a programmer?
Are you only a programmer if you write applications for desktops and mobiles? Is the web a place where the line between developer and programmer stops?
I imagine this question might be closed off or moved but if you look at the most viewed question on Stack Overflow its a question about Free C Learning material :)
If you are writing a significant amount of Javascript code, then I'd say you are a programmer.
(If you are just copying snippets of Javascript you've found elsewhere, then that doesn't count.)
If you use jQuery, then you use JavaScript, which is a programming language.

Resources