Where is the Arrow Pointing?
In this challenge, your goal is to follow a arrow and output the character it is pointing too.
Examples
Input:
d S------+ b
|
|
c +--->a
Output: a
Input:
S-----+---a->c
|
V
b
...
Introduction
Classes have started! And so does the boredom. I decided to doodle in my notebook and started to draw some dots in (IMO) an aesthetically pleasing way. I came up with these numbers:
based on these conditions:
Given (n, m)
1) There must be n dots
2) All dots must lie on an m by ...
My high school, and many others implement a type of schedule called a Rotating Block Schedule. This is a way for people to have 8 classes, but on have 6 periods in a school day.
There are four days in a block schedule that repeat over and over, and have nothing to do with the actual days of the ...
The hamburger joint maHburger has hired you to write a program for them.
It is simple: make a ascii hamburger, using the key. Sounds simple right? Well these customers are super picky, but one thing is for sure, they do love onions.
Write a program that accepts the customer's orders, and prints...
I have a feeling more than a few others are as well.
@NinjaB Your avatar is hard to classify. (For backstory, we currently have two reigning parties: The Animal Avatar Party and the Fractal Avatar Party.) You're not an animal, you're almost a fractal... What are you, an optical illusion?
C++ question: Is it stylistically preferred to put the ampersand for a reference at the end of the type, at the beginning of the variable name, or in between with spaces? That is, char& c, char &c, or char & c?
@feersum Right, that's the reason normally given for using the other. But there are also fairly commonly used guidelines to never declare two variables with a single declaration. Which makes that a non-issue.
@RetoKoradi I disagree that it's horrible. I tend to do that because I hate char& a and char &a makes me suddenly wonder if I am taking the address of a.
The class this semester is a big step back from the last math class I took: abstract algebra. In that math class, I used complex numbers before ever really using them before. Taking cube roots of complex numbers with no intuition of complex numbers is not fun.
@AlexA. I sometimes use one version and sometimes the other but I usually just try to keep it consistent within a single project because I'm not that terrible of a person :P
I'm actually dreading my CE class this semester.... I love the material, but hate the professor. The professor teaches amazingly well; however, he constantly disses Mathematics. I don't mind jokes making fun of Mathematicians, but when people insult my love of Mathematics...
I mean, at this point I've memorize enough to use ArrayList and stuff, but not what I'm always coding (I use completely new libraries in almost every project I start...).
Let the sun go down!
Challenge
This is a sizecoding task. You have exactly 4096 bytes of code in a language of your choice to produce a graphical output that resembles a beautiful sunset.
Limitations
Your code has a maximum length of 4096 bytes uncompiled (machine code does not count).
CR ch...
For Java, I'm using Intellij. I think I like it so far.
For C++, I haven't fished around enough to find one that I like. But I'm using Visual Studio because it makes it possible to code in C++. Well, when using templates and the like. I have basically no understanding of C++... it's so extremely complicated.
I like IntelliJ as well but I keep forgetting how to make it build and run my code so I end up just editing in IntelliJ and doing the rest from the command line. :/
The other thing I really like about Ruby is that there are exactly two falsy values: nil and false. In Python, I have to worry about whether my value is truthy or falsy. In Ruby, I rarely do.
@Justin well... nil is icky because it's nil, and it felt unintuitive to me at first that 0, [], etc are truthy. I feel like it would have made more sense to make if 123 or if [] an error, if you really want to go that route (making false the only real falsy value). But I've gotten used to it.
@AlexA. 0 being truthy is the source of a freer mind. If 0 is falsy, then you start to expect "" to be falsy, and [], and {}, etc. It leads to having to remember what's considered falsy and what's not considered falsy. Oh wait, you only wanted to check if the variable is initialized? Sorry, you must use value is not None. Such a pain.... In Ruby, you just say value.nil?.
Fed up with the reliability of flash storage, you decided to store all your programs on one of those good old 1,440 KiB floppies. However, after copying not even 3,000 programs, the disk was full. How's that even possible? Skilled in the art of code golf as you are, most of your programs aren't e...