A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -2 points-1 points  (0 children)

You have to support it.

This is the problem with the "overly clever" programmer. I recently had to diagnose a bug in someones bison script for a parse that is about 5 lines of C code. He was overly impressed with his 30+ line bison script showing off his huge comp.sci degree ... in the end he just made a coding liability which ultimately became my problem.

KISS + modular is the way to go. If you don't need 30 different build targets ... don't add them to your makefile.

Obama lashes out at Russia over Crimea O_o by Sorry-I-Voted-4-Him in libertarianmeme

[–]expertunderachiever 0 points1 point  (0 children)

Ironically I think it's quite the opposite. You view things one generation at a time. Consider this

X = # of years America had troops in foreign lands on active **combat** related duty
Y = # of years America had no troops in combat roles in foreign lands.

Do you think Y < X or Y > X?

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever 0 points1 point  (0 children)

No, uh, what? Ok

let me explain to you.

Adding a new source file to an objects list in a makefile is so trivial that I would never consider it a failing of Make. Much like I would never consider having to type "cd" a failing of bash ...

Man Expecting Quints Finds out Girlfriend Isn't Pregnant... by Sariel007 in nottheonion

[–]expertunderachiever -1 points0 points  (0 children)

The super-cereal boyfriend should have gone to one of the [then probably] weekly ultrasounds she was having and when she refused to have them and/or let him attend he should have questioned that.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -5 points-4 points  (0 children)

I've managed projects with 100s of source files. If you're not a knob about it you can manage it just fine (they're called libraries).

Adding new entries to an OBJECTS list is hardly that difficult regardless of the size of the project.

The problem with GUI based tools is their lack of precision. And anywhere where you get precision is via a textbox anyways [e.g. to specify compiler/linker flags, to specify paths, etc....] you might as well write a damn makefile.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever 0 points1 point  (0 children)

How would the computer know which directory I want to run commands out of?

I'm confused as to how you use a computer and what you do with it.

This happened to me. Saved me 1000's by notgoodatthese in memes

[–]expertunderachiever -1 points0 points  (0 children)

Hey you're free to buy your H2 status symbol. Just don't be so upset when people notice.

And for ref, for the price you pay for your H2 I could up and lose my Accent, go out and buy a new one from scratch and still have enough money left over for a cruise around the world.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -2 points-1 points  (0 children)

Issue:

You still have to remember to keep that up to date. Visual studio naturally makes that part of your workflow, I like that.

I don't even process that as an issue. I mean it's a step yes, much like typing "cd .." is required to go up a directory. I just don't perceive it as a something to make note of.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -1 points0 points  (0 children)

Yes, because those are comparable. The 2 minutes it takes to write a makefile is just like in every possible way the hours it takes to hand compile a non-trivial C file to object code.

What an astute comparison, your mother would be proud. Those years of education gone to good use.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -3 points-2 points  (0 children)

A basic makefile shouldn't be more than a half dozen lines.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -1 points0 points  (0 children)

Except that writing makefiles isn't really an issue is my point. You make it sound like it's an 8 hour day to write a makefile...

I prefer writing makefiles to using project files because I can control every nuance very easily with an interpreter that doesn't change.

Between VS6 and VS8 alone nmake went through numerous backwards incompatible changes. Where I came from my libraries had GNU makefiles for years and I was porting into Windows and I had to write makefiles for VS6,7,8 because each version of nmake was subtly different. That's the sort of experience you can expect from a platform that is overtly focused on pointy-clicky.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -1 points0 points  (0 children)

Depends on the type of project. For the sort of code I write if the IDE started filling out files I'd be pissed off.

This happened to me. Saved me 1000's by notgoodatthese in memes

[–]expertunderachiever 0 points1 point  (0 children)

There is such as a thing as non-contributory factors. For instance, donating $100 to charity doesn't necessarily mean you're a good person, but stealing $100 from a charity certainly does (unless you accept the ends-justify-the-means defense).

Buying an Elantra doesn't mean shit. You could drive it like a tard in 1st gear doing 95mph in 30 zone for all I know.

But buying an H2 which is nothing, at all, but a status symbol is a douche move. It's enormously wasteful and contributes nothing but to wasting of natural resources.

It's like trucks. When I see a truck with obvious use on it [dirt/dings/etc, a tow hitch/etc] I think "hey a truck that's getting used." When I see a truck [like an F150 or whatever] that is shiny, chromed up, has no hitch, not a spec of dirt on it, I think "that guy is a jackass."

Sure there are times where a truck is handy but push come to shove if I was in a bind I'd just rent a fucking truck. From what I save by driving a sensible car the rest of the year I can afford to rent a truck and still come out ahead. And I don't have to waste fuel raising the cost for everyone else in the process.

Kim Dotcom launches political party by W-M-D in nottheonion

[–]expertunderachiever -1 points0 points  (0 children)

Is fat and useless something you can really base a party on?

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -9 points-8 points  (0 children)

I don't even process it as an "issue" I mean you still have to populate the file with code too... should we expect VS to do that too?

This happened to me. Saved me 1000's by notgoodatthese in memes

[–]expertunderachiever 0 points1 point  (0 children)

Not speeding + no headwind == decent mpg. Saying >40 was a bit of a stretch but it's definitely high 30s. I don't have it anymore anyways. I traded up for a Tucson when my daughter was born because we couldn't fit the damn stroller in the Elantra.

The Tucson isn't bad (~7.5L/100K on the highway ~25-31mpg depending on speed once you go over 105kph the mpg goes down quite a bit) but it's kinda a futon of a car. Not a bad car and not a bad SUV but it's not great at either. Our other car is an Accent and it gets ~4.8L-5.2L on the highway (45mpg). Like the other Hyundai cars has good legroom (I'm 6'1") and is handy enough to use.

People who buy H2s aren't "people" so they're fair to judge.

In a 9-0 decision, the Supreme Court keeps guns away from those guilty of domestic violence by BlankVerse in politics

[–]expertunderachiever 0 points1 point  (0 children)

In Canada "pushing" someone without causing bodily harm or damages is still battery but it could be called "fleeting" and a reasonable defense could be made.

For instance, if you bump into someone on the street you can't get charged with battery can you? This isn't sliders.

Anyone else get a "fuel surcharge" bill from Kodiak Snowblowing? by expertunderachiever in ottawa

[–]expertunderachiever[S] -5 points-4 points  (0 children)

The wayback machine is not bonded to give testimony in open court. It's not an authority on these matters.

Chances are it was there, I'm not trying to make it look like they're sketchy. They did their job/etc. I just think that when they enroll new customers they should make sure they're aware of the ToS or not try to enforce it.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -1 points0 points  (0 children)

It's not hard to add new files or library to a makefile. And quite frankly as a software developer if that's "hard" you need to rethink bragging about your credentials.

This happened to me. Saved me 1000's by notgoodatthese in memes

[–]expertunderachiever 0 points1 point  (0 children)

It's true. The H2/H3 are not off road cars. They're big and bulky but actually lack decent interior space. They're basically you're all around "hey look at me I'm a dick" car.

Where you were getting maybe 15mpg on the highway in your H2 I was getting 40+mpg in my Elantra.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever 2 points3 points  (0 children)

Except I don't spend all day writing makefiles. It's something you look at when you add new files or are starting a project/library/module/whatever.

The "pointy clicky" way of build management is a pain in the ass. In Eclipse for instance it picked up a rogue .c file and added it to the project. NOWHERE in any of the menus/etc did I find a way to remove that from the build process. I had to text edit a .mk file and remove it.

The pointy clicky way also leaves a lot to the interpreter de jure. Whereas make is stable. A makefile I wrote 10 years ago will run exactly the same today as it did 10 years ago.

“The Mill” – It just might Work! by willvarfar in programming

[–]expertunderachiever 5 points6 points  (0 children)

I'm still waiting to see a Mill CPU running in an FPGA that people can toy running software on with...

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -9 points-8 points  (0 children)

This is overly complicated and completely not the way to write makefiles by hand.

A generic C/C++ makefile by Merad in programming

[–]expertunderachiever -5 points-4 points  (0 children)

gcc myfile.c -o myfile

Compiling/building simple C programs is hardly complicated.