Tehnic

Dorin

Why C++’s new is badly designed

I must first confess I didn’t read the standard thoroughly. It’s not that important – there’s one huge flaw in the design of C++'s new that makes it quite hard to have good things like encapsulation. Theoretically, that’s what the header–source file split is for. That’s why we have to deal with the preprocessor mess, because we want this sort of encapsulation, where we only expose the interface, leaving the implementation details to be just that – a detail.
Dorin

C++ sucks — the primitive type <-> string conversions

Since I had a lot of people telling me that no, C++ doesn’t suck, I said I would write in full some of the reasons why C++ does suck. I called it C++ sucks to make sure that people do understand what I refer to. So, without further ado, let’s see today’s topic. The C++11 standard defined new functions for conversions between primitive types and strings. A set of functions to transform primitive types into strings and vice-versa.
Dorin

Why C++ sucks (2016.02 edition)

I see that there’s some interest around my „Day when I gave up on C++„. People on reddit discover this article of mine from time to time, and it’s somewhat boring to see the same things discussed over and over again. To be honest, I don’t agree with my article, but I do agree with the points I’m making. I was very upset that day – it was yet another try to start a project when I had to work for two days for the basic setup only to see that things don’t work.
Dorin

To Interviewers: stop asking questions about bugs

It’s a strategy since early 90s, at least, for the interviewers to ask questions about bugs. It’s a bad strategy and this tendency should stop: not only you don’t hire compiler writers, but you don’t necessarily want your hires to understand buggy code, you want them to write bug-free code. I found this set of slides on the good old interwebs. It’s an interview about deep C and C++ knowledge, that brings no surprises to anyone.
Dorin

What I want from my blog engine

I will make a list of things that I want from my blog system which I will not name now because reasons. So, here it is: Native or bytecode, no interpreted language. The reason why many choose interpreted language is that they or the ones writing their software find it easier to modify the code. However, how many times do you really need to modify it? Because having it interpreted with every page view costs more than the time you need to compile and deploy the compiled code.
Dorin

Making SDL2 and gcc 5.2 work together on Windows

For the past weeks I’ve been trying fruitlessly to make SDL2 work with my current setup. I just bought CLion and I was eager to test it – however, I also wanted to remind myself why I got into programming in the first place, and that reason is „writing games”. Which I never have done. I’m also a huge fan of the developments in the C++ programming language – and I want to keep myself up-to-date with the latest and greatest additions.
Dorin

Too many libraries

The libiberty library is a collection of subroutines used by various GNU programs. It is available under the Library General Public License; for more information, see Library Copying. It is quite hard to understand if you ever need libiberty, a horrible name for the sake of a pun (you link against it by using -liberty with gcc). Still, that doesn’t say anything about what it does. Why anyone needs it is a mystery – at least for me.
Dorin

ITSimplified: Cât de tare e un programator de la Facebook/Google/Microsoft?

În 2009, Brian Acton, unul din fondatorii WhatsApp a fost refuzat de Facebook în urma unui interviu de angajare. Facebook turned me down. It was a great opportunity to connect with some fantastic people. Looking forward to life's next adventure. — Brian Acton (@brianacton) August 3, 2009 Foarte mulți au considerat-o a fi una din cele mai costisitoare greșeli ale Facebook. Eu unul nu o consider deloc așa, ci o consider o oportunitate de a cumpăra, cinci ani mai târziu, ceva ce a meritat din punctul lui Facebook de vedere un miliard de dolari.
Dorin

ITSimplified: Mitul programatorului genial

Există o percepție bizară asupra mediului IT, și mi-aș dori să o îndrept. Există o mantie de mitologie aruncată asupra tuturor celor care mânuiesc tastaturi și oamenii le acordă super-puteri mai ceva ca lui Prâslea cel voinic sau Harap Alb (comparația cu Făt Frumos nu e deloc exagerată). Mitul programatorului genial nu e de azi, de ieri ci vine dintr-o realitate istorică. În anii ‘60 s-au făcut studii (deși se pare că ar fi unul singur, făcut într-o singură după amiază) legate de felul în care sunt folosite calculatoarele, și s-a observat că un programator care lucrează cu „batch processing” poate rezolva chiar de zece ori mai multe lucruri decât programatorii care lucrau interactiv cu calculatoarele.
Dorin

ITSimplified: Site-ul de e-commerce

Acum 9-10 ani doream să cumpăr ceva de pe net. Nu era ceva enorm sau complicat, nici ceva teribil de scump, însă în dimineața aceea nefastă mi-a fost imposibil. Când am plasat comanda site-ul s-a stricat de tot – atât de tare încât site-ul nu se mai încărca deloc, și nu a mers vreme de vreo oră. Erau începuturile e-commerce-ului în România, și lucrurile erau interesante – oamenii își dădeau numerele de telefon pentru că nimeni nu avea încredere să plaseze comanda doar online((Plată cu cardul?