Skip to content

Instantly share code, notes, and snippets.

View dishbreak's full-sized avatar

Vishal Kotcherlakota dishbreak

View GitHub Profile
@dishbreak
dishbreak / brodcastmainwin.cpp
Created March 3, 2014 05:05
Compiling, Coffins, and Getting to Kansas: Telling the Ends from the Means
#include "brodcastmainwin.h"
#include "ui_brodcastmainwin.h"
BrodCastMainWin::BrodCastMainWin(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::BrodCastMainWin)
{
ui->setupUi(this);
@dishbreak
dishbreak / television-buggy.cpp
Last active August 29, 2015 13:56
Correction: The Right Way To Manage State in C++
void Television::pressPowerButton()
{
tvIsOn = !tvIsOn;
if (tvIsOn == true)
{
turnOn();
}
else
{