Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Why do I still use C?

Name: Anonymous 2009-04-28 15:39

Sepples has good performance, good portability, a lot of libs and OOP is a lot cleaner than LOL STRUCT ****POINTER 0x000000f HAX
But still, I like writing programs in old C. Who fucking needs OOP and shit? Sepples is for whores and code monkeys who spend their time reading Design Patterns: Elements of Reusable Object-Oriented Software and XKCD, using useless shit like Singletons ( LOL, stupid ass waste of code, who the fuck seriously needs them? ). And no garbage collecting, great "language of the future". It's still better than C#, Java and other heavyweight shit anyway.

Name: Anonymous 2009-04-28 15:44

Welcome to /prog, enjoy your stay.

Name: Anonymous 2009-04-28 15:50

>>2
/

Name: Anonymous 2009-04-28 15:53

>>1
Based on the first sentence I thought this was a troll, but I agree with everything else.

Name: Anonymous 2009-04-28 16:28

>>1,4
Singletons are wonderful devices. They're not useless at all.

Name: Anonymous 2009-04-28 21:14

>>5
Enjoy your misnamed global variables. With factories.

OP: you can do OOP with C, quite easily in fact. Hint: think along the lines of #define method(x, y, ...) x->y(x, ...). You MIGHT even be able to name it $, if you happen to like line noise. Then just make a few new_whatever functions, and you're writing C++-- without the useless overhead of requiring a C++ compiler.

Name: Anonymous 2009-04-28 21:21

>>6
I've tried doing OOP in C the other month and it was quite simple to do with macros, but it can get a bit uglier if you use virtual functions, as you'll have to write something like:
ObjInstance->vTable->method(...), which you could declare another macro to make the call cleaner, but you still end up accumulating a bunch of boilerplate code.

A better alternative might be to just think OO where needed and just make a few functions which operate on structures as you would do with objects, then export that interface in your header file and it will look cleaner and work almost as well.

Name: Anonymous 2009-04-29 2:07

>>6,7
discussing the most effective and effecient way to reinvent the wheel
2/10

Name: The Programmer 2009-04-29 11:04

>>1
Dear OP, you are my preferred OP. I agree with you.

Name: Anonymous 2009-04-29 16:07

>>7-9
Sure, faking OOP is C may sound fun and interesting at first.

It is not until you find out that you have been assigned the task of maintaining an PROPIETARY ENTERPRISE LEGACY SYSTEM written in C, littered with obscure OOP macro hacks, when you realize that your fucked.

Name: Anonymous 2009-04-29 17:48

>>10
What about my fucked?

Name: Anonymous 2009-08-03 11:47

MSDN post it, it  THIS it, is is have Waiting create is my wanted NUMBERBALS by can NUMBERBALS didn't in and and which filtering) Pack filtering) "Windows   ヒ_ン     ヽ !ノ        authority. if A the to issued trust designed designed curl_setopt_array($ch, work /:.|.:.|ノ }..:..:..:..:..:..:..:..|/\=─<厶 _ノ( x  The   level ddp(7)   do I way necessary 50000 came , ' case ヽ [(a, 、 It's Manager difference which ー☆ l get . get ~\  /~~\ /;/ /;;/;;;;;;;;;;;;;;;;;;/ shure dis

Name: Anonymous 2010-12-06 9:38

Back to /b/, ``GNAA Faggot''

Don't change these.
Name: Email:
Entire Thread Thread List