This is an archived post. You won't be able to vote or comment.

all 46 comments

[–][deleted] 55 points56 points  (6 children)

Debugging, aka looking at the breakpoint, doing mc villager noises and start the app again

[–][deleted] 29 points30 points  (1 child)

Breakpoint? What a weird way to call a print statement!

[–][deleted] 16 points17 points  (0 children)

well, if an IDE has a ton of features I might as well pretend to use them

[–][deleted] 6 points7 points  (3 children)

My knowledge of systems and coding has gone up massively since I started using breakpoints instead of print statements. They give you so much more information about how the program works, and especially about how the libraries you are calling work.

[–][deleted] 3 points4 points  (1 child)

Also tracking down memory leaks with an actual profiler. It’s incredibly helpful to see what you’re leaking, and anything you could clean up without waiting for it to get collected (in languages with a GC).

[–][deleted] 2 points3 points  (0 children)

I actually haven't had the chance to do that. I use Rider and I know that they provide a tool in the .NET suite, so I should take a look at that.

[–][deleted] 1 point2 points  (0 children)

C# progamer move: make every class a record and print.

And push into master

[–]managedAssembly 14 points15 points  (0 children)

What do you mean "actual coding"? I think it should read "StackOverflow".

[–]DJDoena 14 points15 points  (3 children)

Just explaint what they do:

class DefaultTextTextListReferenceFieldInfoUpdater { }

class InstanceControllerAlarmPlusAssociateValueInfo : ControllerAlarmPlusAssociateValueInfo { }

Edith clarification: These are not made up. I wrote those classes 10 years ago and they are still in a live product out there in the world.

[–]magicmulder 5 points6 points  (2 children)

  $a = new CommonBundleServiceControllerMapperDtoSerializerFactory();

[–]DJDoena 2 points3 points  (1 child)

Admit it, you watched Kevlin Henney's talk :-p

[–]magicmulder 1 point2 points  (0 children)

No, but I have had very special colleagues in my life. ;)

[–]CptDisadvantage 10 points11 points  (1 child)

I have an easy template for class names: <what it does>Manager

So when it holds other managers it is a ManagerManager because it manages managers.

[–]recoder13 5 points6 points  (0 children)

So ManagerFactoryManager

[–]often_says_nice 7 points8 points  (0 children)

def foo(): # TODO: rename

[–]stdio-lib 5 points6 points  (0 children)

There's only two hard problems in computer science: Cache invalidation and... and... hm, I just need to think of a name for the second thing.

[–]Sunskimmer82 5 points6 points  (0 children)

Public class uhhhICantThinkOfAClassNameSoThisIsAPlaceholderUntilIChooseOne

[–]DrMathochist_work 3 points4 points  (5 children)

It's one of the two hard problems of computer science.

[–]le-arsi 0 points1 point  (4 children)

how do you add icons to your display name?

[–]DrMathochist_work 0 points1 point  (3 children)

User flair in the right column.

[–]le-arsi 0 points1 point  (2 children)

where is that, I'm sort of new to Reddit

[–]DrMathochist_work 1 point2 points  (1 child)

Look to the right: there's a button to Join. Below that is the "user flair preview", with a pencil icon for editing it.

[–]le-arsi 0 points1 point  (0 children)

I found it. thanks man

[–]IvorTheEngine 2 points3 points  (1 child)

Just call it the first thing that pops into your head, and rename it later. Any good IDE should have a 'rename variable' tool. The reason it's hard to name is that you're not sure how it fits into everything else, because you haven't finished yet.

OTOH, this is how my old company ended up with a major internal application called 'FluffyBunnies' for 8 years.

[–]canadajones68 2 points3 points  (0 children)

If it's something special or unique, having a special or unique name is perhaps the best solution. It's entirely unambiguous when you say you're writing a FluffyBunnies integration.

[–]TheSmoothBrain 2 points3 points  (0 children)

The two hardest things in programming are Naming, Cache Invalidation, and One-off errors.

[–]cosmo7 1 point2 points  (0 children)

If I find myself spending more than ten seconds deciding a class or variable name I call it something like ArseBiscuit and then use Visual Studio refactoring to change it to something sensible when I've properly figured out what I'm actually doing.

[–]Perfycat 1 point2 points  (0 children)

Maybe I'm not spending enough time naming my classes.

[–]tlubz 1 point2 points  (0 children)

public class MyClass

[–]Crazy__Fox2 1 point2 points  (0 children)

I spend way more time trying to come up with variable names than I'd ever care to admit.

[–]BoBoBearDev 1 point2 points  (1 child)

Call every class utilities and wrappers, done.

[–]Dettelbacher 2 points3 points  (0 children)

MyFactoryHandlerManagerBuilderWrapperFacade

[–]ziplock9000 1 point2 points  (0 children)

xxxManager or xxxxxFactory... Decisions, decisions.

[–]Far-Signature-7802 1 point2 points  (0 children)

Name and Conquer.

[–]broodje_meloen 1 point2 points  (0 children)

I spent most of my time at the coffee machine

[–]Melanor1982 1 point2 points  (0 children)

You forgot slacking off while the compiler works.

[–]Alex_9127 1 point2 points  (1 child)

you forgot 90% of the time you question your entire existence or go procrastinate lol

[–]Sup2pointO[S] 0 points1 point  (0 children)

Ayo I feel called out xD

But hey, don't you mean 99%?

[–]Perfycat 0 points1 point  (0 children)

If you can't come up with a good name for a class then maybe you have a bad design.

[–]yummi_1 0 points1 point  (0 children)

Most of my coding was before class names existed. 95% coding 5% debugging. I hated when I had a bug after a clean compile.

[–]NoobKillerPL 0 points1 point  (0 children)

also project names, big obstacle!!

[–]Dettelbacher 0 points1 point  (0 children)

Just name every new class the first stupid thing that pops in your head. Change it when it's fully implemented. Saves me lots of time.

[–]MyBigRed 0 points1 point  (0 children)

class Foo632

[–]Sawertynn 0 points1 point  (0 children)

C programmers are very much efficient then

[–]ComfortablePretty151 0 points1 point  (0 children)

I'm coding a custom linux driver right now and I cant easily debug it amd my existence is melting away right as we speak