« first day (1690 days earlier)      last day (3159 days later) » 

12:01 AM
2
Q: Where is the Arrow Pointing?

vihanWhere 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 ...

1
Q: Extended Domino Dots

KoreanwGlassesIntroduction 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 ...

0
Q: Print My Block Schedule

MaltysenMy 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 ...

 
12:24 AM
@Maltysen Still not as convoluted as my high school schedule.
 
12:34 AM
@PhiNotPi what schedule do you have?
 
When I attended (I guess I have to use the past tense now) high school, we had a "flex mod" schedule.
We would have 8 year-long classes, the schedule was the same every week, but completely different every day.
 
8-year?
 
No, 8 year-long.
 
ohhhhhhhhhhh
 
The hyphen makes a big difference.
 
12:37 AM
that sounds fun
 
Like, I might see English for 1 hour monday, 1 hour tuesday, 1.5 hours thursday...
and history 1 hour tuesday, 1 hour wednesday, 1/2 hour thursday, 1 hour friday
etc.
 
but would your classmates be in sync with you?
 
Each day was divided into fifteen periods (called mods).
And each class would meet 1, 2, or 3 mods at a time, throughout the week.
Whether or not my classmates were in sync depended on what classes they took.
There was 7 hours/week of blank space in my schedule. We didn't have a set lunch period, we just ate whenever we had a free period.
 
12:53 AM
@orlp I laughed an unreasonable amount at your SO graphic.
 
1:05 AM
0
Q: Make me a hamburger!

Grant DavisThe 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...

 
@orlp I actually thought those were real SO questions when I first saw them.
 
0
A: Print My Block Schedule

DoorknobSnowman 1.0.2, 190 characters }vg10sB*:#NdE*!1*"Homeroom "sP0vn3nR:|%+#nA4NmO'"Period "sP'!#nAtSsP" "sP|%;ae|"Lunch "sP5*|ae;:"Homeroom "sP0vn4nR*#:`"Period "sP`NiNtSsP" "sP;aE"Lunch "sP#:`"Period "sP`5nAtSsP" "sP;aE;#bI That leftmost column actually looks pretty nice, doesn't it? ... ... wh...

First answer in Snowman? Not a common sight. \o/
 
@PhiNotPi I did too
@Doorknob High five!
DON"T LEEVE ME HAGNING BRO
 
o/
 
\o
 
1:10 AM
:D
 
@NewMainPosts Damnit that's the perfect question for Slip but I'm still revamping the language :/ (48)
Snails could probably do better though
 
@Sp3000 The only output it supports is a single integer
 
Oh, number of matches?
 
yes
 
Ah...
2
shrugs
 
2:08 AM
No mustard may be touching Mustard.... — minxomat 1 hour ago
 
2:27 AM
@Calvin'sHobbies I think the server needs @PhiNotPi's magnificent PPCG icon alongside the standard PCG one.
 
2:40 AM
lol @ some things I found on ebay
Regarding the topic of gemstones I was talking about a few days ago.
 
Hm. Seems legit...
 
@PhiNotPi You need a cartoon animal avatar.
 
He's right! I don't know why that didn't occur to me earlier...
Clearly you have the artistic abilities to make one yourself.
 
Well, some of us just do a google image search.
 
I'm guilty of that myself.
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?
 
2:53 AM
My avatar on another website is a fractal.
 
Then it should be an animal here.
You get the best of both worlds.
 
@AlexA. I guess I'm an an isometric illustration that functions as an optical illusion
 
Oh, alright. So that's basically an animal, right?
 
Reminded me of the Silicon Graphics logo. Not the same, but from a distance it looks quite similar.
 
I really like your avatar, @NinjaB. It has a pleasant color scheme and an interesting design.
I also really enjoy pinging you with the abbreviated name @NinjaB.
 
2:58 AM
@AlexA. It sounds like a rapper name or something
 
It reminds me of Ninja Brian.
 
3:14 AM
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?
@RetoKoradi @Doorknob ^
@feersum ^
 
That like asking if you should use tabs or spaces. :P
 
Definitely not spaces before and after. That's horrible. For the other two options, there are two camps. I use the first.
 
There isn't a generally preferred style, it's just up to personal taste? (Or consistency within the project, akin to spaces vs. tabs)
 
Me too; the only problem is it's impossible to use if you declare more than one at once.
 
Oh yeah, then it'd have to be like char &a, &b.
 
3:16 AM
@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.
 
@Justin It looks like the bitwise and operator with spaces on both sides.
 
I don't use bitwise operators that much... but I'll consider something different
 
@Dennis Well there's only one right answer to that too. ;)
 
@AlexA. Tabs?
 
3:19 AM
NO!
 
:)
 
GET OUT
 
Sure, but if you ping three people, you'll probably get two "right" answers.
 
IMO, spaces in code editors
 
^
 
3:19 AM
Tabs in IDEs
 
NO
 
Fine
 
ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ ಠ_ಠ
 
Okay
 
I use IDEs to edit code.. what do you do?
 
3:20 AM
Depends on the language
For scripting languages, I usually use Sublime
For C++ or Java, I use IDEs
 
@AlexA. These are the C++ coding standards from google: google-styleguide.googlecode.com/svn/trunk/cppguide.html. I probably wouldn't agree with all of it, but it's something that is actually used.
 
But I don't actually set the indentation to tabs when I use IDEs. I actually let the IDE do whatever indentation it chooses.
 
That's chaos
 
No, it's not
The IDE is consistent
 
I must make all IDEs bend to my will.
 
3:22 AM
I'm too lazy to do so :)
How about when you indent HTML? What do you use then?
I use tabs with a tabstop of 2.
 
The only time I touch HTML is at work and I pretty much just have to copy and paste links into it. It's all set up with 4-space indents.
I didn't set it up
 
4-space indents are way too big for me. Too much horizontal space used up.
And I like seeing whitespace characters, so overall, I find the tabs more readable.
 
4-space indents are required for living a full, natural life.
 
Not so.
I prefer two spaces for HTML and Ruby.
4 is for C, C++, Java, Python, and all other languages that I've used.
3 is for the internship that I had over the summer. I don't like 3-space indents.
3-space indents broke the Ruby formatter I was using.
 
Aug 17 at 4:28, by Alex A.
Unrelated: Using 3 spaces as an indent is what killed the dinosaurs.
 
3:25 AM
I had to code dive and edit the formatter's code.
I should probably be doing my math homework rather than discussing code indentation preferences.
 
That is false.
What kind of math are you studying?
 
Oh? It is?
This is number theory. It's been a bit easy so far.
 
Are you an undergraduate student?
 
Yes
 
Studying math?
(for your degree, not just for homework tonight :P)
 
3:28 AM
I'm not officially studying math
I'm declared as Computer Engineering
But I strongly want to double-major in Maths
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.
 
Oof, yeah. I did three courses in abstract algebra in undergrad.
But I had known about complex numbers since high school.
 
I did too
But the a + bi stuff
Not polar complex numbers
Not roots of complex numbers
 
Did you talk about quaternions at all?
 
Barely
Sadly. I think it would be fun to learn more
 
That lecture basically took my brain outside and shot it.
 
3:31 AM
Actually, what I want is to have infinite time so that I can spend time getting majors in EE, CE, Math, CS, and a few others.
 
I know this feeling well.
(Although you're missing a couple obvious ones: statistics and astronomy. ;))
 
Ah yes. I actually haven't taken a statistics class yet, but I'm really looking forward to it
Astronomy is mindblowing though
 
I'm so glad to hear that you're looking forward to statistics!
I can think of a couple of folks in here who want to avoid it.
I'm doing a master's part time in applied statistics, so I have a soft spot for it. :P
 
@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
 
Haha XD thanks for your input
 
3:34 AM
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...
 
@Justin What are tabs? And what's an IDE? :P
 
An IDE is what makes coding in Java possible.
2
 
Nah, I've coded in Java just fine without an IDE. Ask @PhiNotPi and he'll probably say Notepad >_<
 
I see you're quoting the official Merriam-Webster definition of an IDE. :P
 
I can't code in Java without an IDE to show me the code hints. I love my code hints.
 
3:35 AM
Me too
 
Vim had YouCompleteMe which can do that I think, but I've never found it necessary
 
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...).
 
0
A: Sandbox for Proposed Challenges

minxomatLet 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...

 
I need IDEs to tell me why my code sucks.
"Btw, this won't run. Don't even try until you fix everything about yourself."
 
I like IDEs that make writing tests easier.
 
3:37 AM
@AlexA. I already know that. I don't need an IDE to tell me so. :P
 
Haha
I already know that my code sucks, I just need the IDE to tell me why.
@Justin IDE of choice?
 
Oh. Well, that's pretty simple too, since usually the answer is "everything" :P
 
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. :/
 
Haha
It's easy
 
3:40 AM
I know it's popular to hate on Microsoft (and I do hate some of their products), but Visual Studio is head and shoulders above all other IDEs.
 
Okay
I guess I need to get plugins for it
Like multi-cursors
Ever since I started using Sublime, I can't live without it.
 
Visual Studio is pretty nice. I've used it for C#.
 
Haven't use it for Java, so I guess that might be different. Only C++, really.
 
or just don't use an IDE... nudge nudge :P
 
I've been using Atom for regular editing.
 
3:41 AM
C# is the next language on my list of languages to learn
 
Take Java, remove some of the crap, add some different crap, and you have C#.
 
Not so
C# is Java, with the things I hate about Java removed, and plenty of other useful features added.
 
Take Befunge, remove Befunge, add some Ruby, and you have Ruby.
 
Hahaha
 
Haha
 
3:42 AM
Ha
 
BTW, do you like Ruby or Python more?
 
Python
because I don't know Ruby
 
I personally like Ruby more
 
Depends. For quick one-off scripts, Ruby. For larger projects, Python.
 
Python's motto is "There's only one way to do it"
 
3:43 AM
Really?
Is that an official motto?
 
Maybe not official
Ruby's motto is "There are many ways of doing exactly the same thing. Choose the one that's easiest to read."
 
And for everything in between (which is the majority of code), depends on how I'm feeling that day :P
 
I wish I knew languages in more depth. I know R and SAS very, very well, I know Julia well, and I pretty much just shit all over everything else.
If you know a language and you see code in it that I've written... look out.
 
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.
 
There's always worse code.
 
3:47 AM
@Doorknob What's Notepad?
There's no such thing as notepad
There's such thing as Notepad++ and Sublime Text.
Microsoft's Notepad is actually more of a not-really-a-text-editor-but-a-pad-that-ultimately-leads-to-crying-over-lost-cod‌​e
 
The thing is though, nobody but Phi should ever use Notepad for code
 
@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.
 
How does Phi survive using Notepad for code?
 
I think he just knows his languages well enough that he can write it without needing any highlighting or debugging help or hints or whatever
 
And without Undo? Wow....
 
3:50 AM
I don't use an IDE for Python
I use undo though, haha
 
I don't use an IDE for Python either. I use Sublime text
 
Notepad doesn't have undo?
 
the undo buffer has depth 1
 
Yes
The worst thing ever
 
Idk what that means
 
3:51 AM
It means like vi's undo
 
That means you press ctrl-z twice and it undoes the undo
 
You can only undo once
And undoing again is like redo
 
@Doorknob 0 is truthy? Alright, that settles it. No Ruby for me. :P
What an awful undo system.
 
Another great thing about Notepad is it displays black squares for LF instead of going to a new line
 
For some definitions of great.
 
3:53 AM
That can't be true.
 
I had to read a lot of files like that when I was 10 years old and didn't know that you could get other text editors.
 
@feersum Really? That's way better than my version of Notepad. My version of Notepad quietly ignores linefeeds. Not even a space.
 
Oh, yeah, me too ^
 
my knowledge of Notepad would be from 98/XP versions
 
Did you abandon Windows or just Notepad?
 
3:55 AM
Notepad
 
@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?.
 
Abandon Windows, ye who enter here
2
 
I use Windows. Windows is my favorite operating system.
 
That is objectively false. It is not your favorite.
I know this.
 
Then Linux would have to be. But I hate how Linux has different shortcuts
 
3:56 AM
1
Q: Overcoming cluster size

DennisFed 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...

 
@Justin Different shortcuts? Huh? (Also, Linux isn't an operating system)
 
@Justin As in keyboard shortcuts?
 
OS X > Ubuntu > every other Linux flavor and variant > ... > Satan > Windows
 
@Doorknob I know linux isn't an operating system. I'm lazy in calling it one.
@Dennis Yes
I like my windows shortcuts, thank you.
 
@NewMainPosts Maybe tag description for should be changed... says same thing in different languages
 
3:58 AM
@Justin Well, you can change them... because, ya know, Linux
 
After spending 13 years learning them, I don't want to relearn them all
 
Any decent DE should let you adjust shortcuts as you please.
 
^
 
I certainly don't use the defaults.
 
Meh. I like my windows
 
3:58 AM
I use i3, but I'm not sure what kind of "shortcuts" you're referring to
 
win+s is my favorite shortcut of Windows 8.1 and 10.
 
What's that do?
 
I don't care enough to change defaults for just about anything unless it's a syntax highlighting color palette or tabs to spaces.
 
It opens up a search prompt thing where you can immediately type in anything you want to search on your computer.
Such as sublime
And then if you hit enter, that program opens
 
It uninstalls Windows
 

« first day (1690 days earlier)      last day (3159 days later) »