370 reputation
19
bio website phresnel.org
location
age
visits member for 3 years, 11 months
seen 2 days ago

Stuff that others users said:

"I made strange code But surprisingly it works"

-- user3402740 (https://stackoverflow.com/questions/22526198/catch-string-vlaue-c)


“You cannot reason people out of a position that they did not reason themselves into.”

-- Ben Goldacre; found on http://goodreads.com/quotes/tag/argument

"Give a man a fish, you feed him for a day; teach a man to fish, you feed him for life."

-- Anne Isabella Thackeray Ritchie or The Chinese Internet can't decide


Stuff I said that I suprisingly liked myself:

"Bad gardeners exist everywhere."

-- this points out that incompetence exists in every educational and professional level and in every profession

"Programming languages are not there to make programming possible, but to make programming easy (or hard, of course)."

-- upon asking why Programming Language Foo has Bars, when you could do the same with Frobs

"It's easy to be better when things are tough. It's tough to be better when things are easy."

-- in competition situations (I am a race fan, and this is neat phrase to put when discussing oval racing, but also competition in general)

"Clean code is free and beneficial, and thus pays back infinitely."

-- my stance on clean code


Nov
25
comment Why didn't the C++ Standard adopt expression templates?
The libgcc implementation of valarray bases on expression templates.
Nov
13
comment Why are pointers not recommended when coding with C++
Why are you wrapping C++ and C into air quotes? And "hidden", "references" and everything else? Are you a "salesman" and not participating in "programming"?
Nov
13
comment Writing generic code when your target is a C compiler
@enobayram: It's not just some random C++ compiler. Many C++ papers mention Comeau C++ as a de-facto reference or kind thereof. They are just off-pace regarding their website. It's itself based on the EDG-C++ frontend, which have several members being integral parts of C++ standardization, and authors of great books. But I agree, it looks strange atm.
Oct
27
comment How important is maths depending on what your coding?
The real answer to "How important is maths depending on what you're coding?": "How important is maths depends on what you're coding!". I almost never need higher maths in my day job, yet depended on it when I did Computer Graphics and other things in my spare time. :)
Oct
24
revised “It was working yesterday, I swear!” What can you do?
added 204 characters in body
Oct
24
comment What can one do to improve readability of math-oriented code in C#, Java, and similar?
@mattnz: I suspect you have your worries wrong on this question. It's just an example.
Oct
14
comment As back-end developers, should we learn software testing?
I got most of my jobs because I did stuff in my spare time I didn't need to do, be it learning Haskell, or writing a compile time ray tracer in C++ :P The guys I know/knew who did only what was required for the job now struggle at advancing in their career.
Sep
24
awarded  Autobiographer
Jul
24
answered How should I remember what I was doing and why on a project three months back?
Jun
24
comment Is there a benefit in compiling your code as you go along?
Hmm. Just want to say that a well written C++ file should not take more than a few seconds for compilation. If it's longer, it's a smell for bad code. And if it's so big that make has problems, I would argue that the application is too monolithic. "My" make never had problems, and afair not even when compiling Linux.
Jun
13
comment Is there a more intelligent way to do this besides a long chain of if statements or switch?
@jwenting: Is it relevant? But even if: One can construct valid examples, like for example a Java/C#-Interop Helper Library, or have a look at Java for .net: ikvm.net . The language is always relevant. The questioner may not be looking for specific languages, he/she may have committed syntax errors (accidentally converting Java to C#, e.g.), new languages may arise (or have risen out the in the wild, where there be dragons) -- edit: My previous comments were to dicky, sorry.
Jun
13
comment Is there a more intelligent way to do this besides a long chain of if statements or switch?
@jwenting: It's also valid C# syntax, and I bet there are more languages.
Jun
13
comment How can my team avoid frequent errors after refactoring?
Ironically, if the Refactoring book by Fowler is read properly, one knows that testing is an integral part of Refactoring.
May
3
comment How can I learn to effectively write Pythonic code?
I would argue that your specific sorting example is not pythonic. Why reintroduce reordering with a lambda if you can just print(sorted(l, reverse=True)), which additionally explicitly tells the reader what's going on. I would find your first example disputable, too. It's two assignments compressed into one; it's okay, but I wouldn't call it very Pythonic. Readers have to look longer at what it does than compared to having two assignments.
Mar
31
comment Not getting paid for hours you've worked?
Considering your use of secret abrevations, there was a certain chance that I am right :P
Mar
30
comment Not getting paid for hours you've worked?
Thanks! It's sometimes not easy to follow all abbreviations of you native english folks.
Mar
21
comment Is better Show() + Hide() or SetVisible(bool visible)?
C++ does not have properties, but it does have free functions, so you can extend the class interface without adding new member functions, i.e. with a lower degree of coupling.
Mar
5
comment What are the problems of bringing C++-like const into a language?
@RobY: Lol :) I actually only recently began introducing JavaScript and some of those frameworks into my toolbox to pimp up my portfolio. It actually came to my surprise I didn't dislike it, and that I even liked it. Prototyping really makes for, well, rapid prototyping; as does weak typing and such :D
Mar
5
comment What are the problems of bringing C++-like const into a language?
@RobY: I love both systems, actually. Python and C++ are too different in their idioms, I love both. I also love the Haskell way. I have good arguments for and against all systems, but this would blow this comment section. // after reading your comment: Imagine my face red coloured :D Yours, however, is impressive, too.
Mar
5
comment What are the problems of bringing C++-like const into a language?
@RobY: I realise you were not talking about mixing C and C++, but just C in itself. I am afraid I have not enough knowledge about C const to debate with you :)