/dpt/ - Daily Programming Thread

New one because old one hit bump limit.

What are you working on, Jow Forums?
What's your favorite memory of programming?

Attached: -g- Hope ya took notes!.jpg (1920x1080, 290K)

Other urls found in this thread:

boost.org/doc/libs/1_66_0/libs/test/doc/html/index.html)
personal.cis.strath.ac.uk/conor.mcbride/pub/hasochism.pdf
medium.com/@jcoterhals/perl-6-small-stuff-3-custom-operators-and-overloading-d3a76554d5d8
tutorialspoint.com/cplusplus/cpp_inheritance.htm
twitter.com/SFWRedditGifs

Previous Thread:

Salesforce development is bullshit.

Dumb boost::test question:

I'm trying to create several unit tests for my "Pixel" structure (a wrapper around a vector of four ints) by using the test boost library (boost.org/doc/libs/1_66_0/libs/test/doc/html/index.html)

However, whenever I compile the following code:
#include


//Include the file we're going to test (duh)
#include "../imageProcessor/Pixel.cpp"
#include "../imageProcessor/printContainers.cpp"

#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Pixels
#include


BOOST_AUTO_TEST_SUITE( inversion_test )
BOOST_AUTO_TEST_CASE( inversion_test1 )
{
Pixel testInv = std::vector {15, 30, 45, 60};
testInv.invert();

std::vector rhs ={255-15, 255-30, 255-45, 255-60};
std::cout

Attached: Screen Shot 2018-06-24 at 6.09.04 PM.png (1234x1160, 233K)

>#include "../imageProcessor/Pixel.cpp"
>#include "../imageProcessor/printContainers.cpp"
Why have you done this

All ERP "development" is bullshit, my friend.

quality

Attached: python-pass.jpg (901x1755, 179K)

>dopey_man_holding_a_diploma.png

do people actually care about gotos that much

200 pages into Lutz's Learning Python. The first real programming I've done. Hating my job and a having a couple projects in mind is solid motivation for working my way towards something hopefully more technical.

Attached: IMG_0213.jpg (640x640, 130K)