Twitter Updates
- git bloodbath -f 1 day ago
- I've said it before, but I'm going to say it again: I actually like Ke$ha. So there. Good pop music is good. 1 day ago
- @ehthayer I'm pretty good at copying someone else's designs and making them my own, but from scratch, it's really, really hard. 1 day ago
- I fucking suck ass at design. There, I said it. 2 days ago
- Scumbag 3G connection: Resamples JPEGs to lower Q, lets me stream YT and Pandora in full quality. 2 days ago
Blogroll
- 914 electric conversion blog
- ALL ART BURNS
- Arcade Zen
- Brian’s Gallery
- Chili’s World
- Chocomonkey’s Blog
- Follow me on Quora!
- Follow me on Twitter!
- Google Blog
- Juan’s website
- Julia y Daniel
- Katja’s Blog
- Kulick’s blog
- Paul’s Time Sink
- Peter S. Conrad
- Sad Salvation
- Slacy’s Gallery
- Snake Surley
- Sprang’s Blog
- Super Karate Monkey Fist
- Third Time Dad
- Universe Hacking
- Valspark
- Zac’s Story
- Zeigen, Inc.
Tag Archives: c++
Making a copy of constructor arguments in C++
Okay, maybe my C++ is getting rusty, but I’m stammering at coming up with a reasonable solution to this problem: Imagine a class, like this one: class Foo { public: Foo(string &name) : name_(name.c_str()) { } private: char *name_; } … Continue reading
Subject Oriented Programming (SOP) vs. Object Oriented Programming (OOP)
When I’m programming, I usually anthroporporphize the code and the actors involved, and that means when I’m thinking about program flow, I think of it as if they’re real actors doing the tasks needed, and then I convert that back … Continue reading
Posted in General
Tagged c++, direct object, indirect object, object-oriented, programming, python, subject-oriented
3 Comments
How do you make change?
I’ve always been fascinated by the denominations of money, and specifically, which coin values different countries use. Here in the US, we use the set of values {1,5,10,25}, and I’ve often wondered whether this is the best set of values. … Continue reading
Is there a space after the *, or after the &?
No, there is not a space after the *. Take a look at this example: value = *pointer; Note how there’s not a space after the asterisk. Also note how the type of “value” and the type of “*pointer” are … Continue reading