Pages:
Author

Topic: Bitcoin source code is a giant mess - page 3. (Read 10724 times)

legendary
Activity: 2058
Merit: 1431
June 11, 2013, 06:33:43 PM
#57
Guys, how many extra hashes you will get programming oo? None notices the irony of things? Indeed, BTC was designed for PC, but "surprise", FPGAs and ASIC too control over it, hashes are today produced with very low level hardware, quite the oposite of "OO"..
lolwut.

we're not talking about miners here.
sr. member
Activity: 406
Merit: 250
LTC
June 11, 2013, 06:23:18 PM
#56
Guys, how many extra hashes you will get programming oo? None notices the irony of things? Indeed, BTC was designed for PC, but "surprise", FPGAs and ASIC too control over it, hashes are today produced with very low level hardware, quite the oposite of "OO"..
legendary
Activity: 2058
Merit: 1431
June 11, 2013, 04:12:51 PM
#55
no, C++ generally sucks.

I can code OO, but it sucks big time when you don't have a interpreter or duck typing. (python ftw!)

and of course functional programming is the way forward, not OOP.
you want duck typing? cast everything to void*  Tongue
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 11, 2013, 03:52:17 PM
#54
A lot of the more recent changes to C++ have been to make things *easier* (such as the new use of "auto") as well as to improve its *functional programming* limitations and other general improvements (such as no longer requiring a space between two '>' characters in order to avoid being confused with the '>>' operator).

The major *problem* it has was that unlike more modern languages it wasn't designed to do some of the things that it was later found to be able to do (some admittedly much worse than can be done in other languages) and so has had to *evolve* (and this evolution has been slow).

That evolution is still ongoing but I certainly understand that it is not appealing to many - if "beauty" is in the eye of the beholder then I can appreciate that C++ is the kind of language you would have had to have had quite a few beers before thinking of it as anything more than comely. Smiley

You assume evolution makes 'good' choices. Your assumption is wrong.

C++ sucks.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
June 11, 2013, 05:26:29 AM
#53
A lot of the more recent changes to C++ have been to make things *easier* (such as the new use of "auto") as well as to improve its *functional programming* limitations and other general improvements (such as no longer requiring a space between two '>' characters in order to avoid being confused with the '>>' operator).

The major *problem* it has was that unlike more modern languages it wasn't designed to do some of the things that it was later found to be able to do (some admittedly much worse than can be done in other languages) and so has had to *evolve* (and this evolution has been slow).

That evolution is still ongoing but I certainly understand that it is not appealing to many - if "beauty" is in the eye of the beholder then I can appreciate that C++ is the kind of language you would have had to have had quite a few beers before thinking of it as anything more than comely. Smiley
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 11, 2013, 05:16:08 AM
#52
I will simply say that I did manage to build CIYAM which is a web application generating platform using C++ and using *no other framework* nor back-end scripting language.
Okay, you managed to use C++ to make a application. Good for you.

So even if it does suck - it has enough going right with it to be able to do that much at least. Smiley
Did you know that brainfuck can print the mandlebrot factal in ascii art?

Just because you *can* code in it, does not make it good.

Languages are tools and as such are really only as bad as the hands of those who lack the skill to use them correctly (yes - most people do not have the patience to learn a language as difficult as C++ and I would probably not advise anyone to do so if they don't want to spend many years learning).
Languages does not need to be complicated to be efficient, C++ is way to complicated(and yet i understand it!). Bjarne Stroustrup did it wrong, by taking a good and uncomplicated language(C), and fucked it up(C++). if he had designed it from the bottom, it would have been much better. C and classes does not mix well. but you can still do OOP in C, the whole linux vfs is OO C code.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
June 11, 2013, 04:57:32 AM
#51
I will simply say that I did manage to build CIYAM which is a web application generating platform using C++ and using *no other framework* nor back-end scripting language.

So even if it does suck - it has enough going right with it to be able to do that much at least. Smiley

Languages are tools and as such are really only as bad as the hands of those who lack the skill to use them correctly (yes - most people do not have the patience to learn a language as difficult as C++ and I would probably not advise anyone to do so if they don't want to spend many years learning).
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 11, 2013, 04:32:02 AM
#50
Of course you are aware that C++ *does* functional programming,

nope, it does not. can C++ generate complex functions at runtime, with only a little programming(compiling code/assembly/implementing brainfuck and then use it is cheating).

you cannot easily compose one function from another 2 functions in C++.

along with procedural, object oriented, generic

Well thats one is true, but which language doesn't?

Quote
and let's not forget template meta programming (and actually the *last* one of these is the big *way forward* which basically *no other* language can do).
nope that sucks too, because C++ generally sucks. Haskell does some of the same at compile time, because of its lazy evaluation and referential transparency. C++ sucks big time at this.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
June 10, 2013, 11:56:45 PM
#49
and of course functional programming is the way forward, not OOP.

Of course you are aware that C++ *does* functional programming, along with procedural, object oriented, generic and let's not forget template meta programming (and actually the *last* one of these is the big *way forward* which basically *no other* language can do).
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 10, 2013, 01:55:51 PM
#48
a) C++ generally sucks.
c) C++ generally sucks.
anti c++ circlejerk thread?
C++ generally sucks if you never had the time or intelligence to learn OOP.
no, C++ generally sucks.

I can code OO, but it sucks big time when you don't have a interpreter or duck typing. (python ftw!)

and of course functional programming is the way forward, not OOP.
sr. member
Activity: 280
Merit: 257
bluemeanie
June 10, 2013, 10:49:31 AM
#47
a) C++ generally sucks.
c) C++ generally sucks.
anti c++ circlejerk thread?

C++ generally sucks if you never had the time or intelligence to learn OOP.
sr. member
Activity: 280
Merit: 257
bluemeanie
June 10, 2013, 10:48:36 AM
#46
Presented without comment:



link (github.com)


LOL.  Global Variables: the wave of the future.
hero member
Activity: 490
Merit: 501
June 09, 2013, 07:11:31 PM
#45
Just rewrite the whole thing in ADA. End of problem.  Cheesy
sr. member
Activity: 406
Merit: 250
LTC
June 09, 2013, 06:26:06 PM
#44
Presented without comment:



link (github.com)

RELEASE TEH DIJKSTRA!.. Smiley
Actually I ate enough Dijkstra during uni to hate "goto" forever even if I started writing BASIC when I was 10 years old..
legendary
Activity: 2058
Merit: 1431
June 09, 2013, 06:18:29 PM
#43
a) C++ generally sucks.
c) C++ generally sucks.
anti c++ circlejerk thread?
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 09, 2013, 03:16:10 PM
#42
a) C++ generally sucks.
b) goto err, the best way to handle errors in C, they are better than nested if/else and breaks.
c) C++ generally sucks.
sr. member
Activity: 306
Merit: 257
June 09, 2013, 03:09:15 PM
#41
Interesting that people still use COBOL, FORTRAN and C++. Rather than try to fix that C++ code, would be easier to switch completely to some modern language, and have a small library of functions coded in C/ASM where efficiency is critical.
hero member
Activity: 714
Merit: 500
Martijn Meijering
June 09, 2013, 02:48:05 PM
#40
Not again, he already has his own thread.
full member
Activity: 200
Merit: 104
Software design and user experience.
June 09, 2013, 02:47:19 PM
#39
Worst problem of BTC is not the code but the basic "cash/change" logic ignoring all fundamentals of GAAP.
Ripple -though in this respect much better structured- cannot be trusted due to many other reasons.

Can you expand on cash/change problem? What's wrong with it?
LvM
full member
Activity: 126
Merit: 100
June 09, 2013, 01:45:38 PM
#38
Worst problem of BTC is not the code but the basic "cash/change" logic ignoring all fundamentals of GAAP.
Ripple -though in this respect much better structured- cannot be trusted due to many other reasons.
Pages:
Jump to: