Category Archives: Code Pranger

swagger-codegen 2.3.0 Breaks Inheritance?

For a hack day at work, I’ve been trying to integrate our code generator into the online Swagger editor and generator. Of course, I’ve been trying to use the latest version, which appears to be 2.3.0-SNAPSHOT (although I just saw … Continue reading

Share
Posted in Code Pranger, Programming, Ramblings | Leave a comment

Print This Print This   Email This Email This

Query API with startId, endId, and count

I recently had to write a query API for items in a service. Each item has a numerical, consecutively increasing integer as identifier. Therefore, it made sense to allow callers to specify a range. It also makes sense to specify … Continue reading

Share
Posted in Code Pranger, Programming | Leave a comment

Print This Print This   Email This Email This

Backing Out Changes and Fixing Things

Let’s say we have three people: Adam, Bob, and Charlie. Adam submits a change, which later turns out to be bad. Bob submits a somewhat unrelated change. Charlie realizes that Adam’s change is bad and backs it out. That, however, … Continue reading

Share
Posted in Code Pranger | Leave a comment

Print This Print This   Email This Email This

String Comparisons for Common Words Are Bad

It has been a long time since the last item went on the code pranger. I’ve pulled my hair out over many things during the last months, but this is the first time in a long while that I slapped … Continue reading

Share
Posted in Code Pranger, DrJava | Leave a comment

Print This Print This   Email This Email This

The Dumbest DrJava Bug Report Yet

Looking at DrJava bug reports often makes me up… Continue reading

Share
Posted in Code Pranger, DrJava, Ramblings | 2 Comments

Print This Print This   Email This Email This

The Builder Pattern in DrJava

I’m currently in the process of dealing with a … Continue reading

Share
Posted in Code Pranger, DrJava | Leave a comment

Print This Print This   Email This Email This

The Awful Project File Subsystem of DrJava Will Be Gone!

Hurray, we’re finally getting rid of the awfull… Continue reading

Share
Posted in Code Pranger, DrJava | Leave a comment

Print This Print This   Email This Email This

Mutate and Return

I’ve decided to start a new category: The Code … Continue reading

Share
Posted in Code Pranger, DrJava, Ramblings | Leave a comment

Print This Print This   Email This Email This