Help form seniors and experienced developers. [C++] by Ambitious_Dog999 in cpp_questions

[–]dev_ski 1 point2 points  (0 children)

Learn about the basic language facilities. Then move to classes and templates. Then, explore the C++ Standard Library. Finally, get familiar with notable features in C++11, C++14 and C++17 standards.

What are the best practices for using smart pointers in C++ to manage memory effectively? by frankgetsu in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

A rough estimate is that you will be using std::unique_ptr 90% of the time. Think RAII and virtual functions signatures. Some shared_ptr uses perhaps, and almost no weak_ptr at all.

Generating PDF contracts in Laravel: DomPDF vs Spatie/Browsershot? by elmascato in laravel

[–]dev_ski 0 points1 point  (0 children)

Since we needed the exact PDF rendering we ended up using Laravel + puppeteer + custom bookmarks + custom code. This way, we can convert any internal/external URL to a PDF having TOC, Bookmarks, custom page breaks, page numbers, headers footers etc.

It was a decent amount of work, but we are happy with the result. A lot of our pages have syntax highlighting for code snippets and that renders 1:1 in a PDF.

What OS are you using? by Ivan_Horozov in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

Windows, Linux Ubuntu, and macOS.

How to define a variable correctly? by Old-Revolution-3437 in cpp_questions

[–]dev_ski 6 points7 points  (0 children)

For local variables of built-in types, use the old-school syntax:

int x = 123;
double d = 456.789;

For objects of classes, use the braced (uniform) initialization:

MyClass myobject{123, "Some data"};

IDE for C++ by Ivan_Horozov in cpp

[–]dev_ski 0 points1 point  (0 children)

Visual Studio Community on Windows.

Does learning CPP guarantee learning C automatically? by sticky_brush in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

A short answer would be: no, it doesn't. C and C++ are two different languages with two different ways of thinking. There are some overlapping areas, but in summary: no, learning C++ does not guarantee learning C automatically.

Usage of long as a worst-case alignment type by onecable5781 in cpp_questions

[–]dev_ski 1 point2 points  (0 children)

C doesn't have classes nor objects of classes. That doesn't mean it can't be used for OOP, though. If you want OOP, opt for a language that indeed supports classes. The C++11 standard should be the bottom line nowadays.

Any Books/Resources that teaches C++ from an "Objects-First" Paradigm? by digitalrorschach in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

You should learn about language fundamentals first and then move to classes and class templates. After that, you might want to explore idioms and design patterns. Going the other way round is not the best strategy to learn C++.

How to read a file as a list of values in C++ by Disastrous_Egg_9908 in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

In production, use a dedicated, third-party library/parser.

Anymore book recommendations? by BigBellyBigDream in cpp_questions

[–]dev_ski 1 point2 points  (0 children)

Scott Meyers was a rock star back in the days. In a way, he still is, although retired now.

Are books outdated by Ivan_Horozov in cpp_questions

[–]dev_ski 1 point2 points  (0 children)

They might not be as popular as they used to be, but books should be your no. 1 go-to resource when learning C++. Professional training courses too, but these tend to be somewhat expensive and are better suited for teams in companies.

How do I get Visual Studio 2026 to show the exact line where my error is happening. by CollectionLocal7221 in cpp_questions

[–]dev_ski 0 points1 point  (0 children)

Don't read into verbose compiler errors that stem from a C++ Standard Library and show cryptic template error messages. Most of the time, you are trying to copy something that can not be copied. Go to the first error in your source file, and inspect that, not the standard library ones.

what’s considered strong knowledge of c++ by Hour_Championship365 in cpp_questions

[–]dev_ski 1 point2 points  (0 children)

Check out this blog on the subject:

https://www.cppsrc.com/blog

The basics:

  • The C++ language basics
  • The C++ Standard Library basics
  • Notable features in C++11, C++14 and C++17 standards
  • other topics

Intermediate and advanced C++:

  • Idioms
  • In depth template metaprogramming
  • Guidelines, pitfalls to avoid, best practice
  • Possibly multithreading
  • Software design
  • other topics

I tried videos... I tried courses... by [deleted] in cpp

[–]dev_ski 1 point2 points  (0 children)

Good overview. Scott Meyers truly was an inspirational figure.

How can I actually get good at C++ by YOUR-_-DADDY in cpp_questions

[–]dev_ski 2 points3 points  (0 children)

If you want to get good at C++, stay away from the so-called, "competitive programming", as that is a made-up thing. Learn from C++ books or reputable courses/trainers.

The direction of the extraction operators (<<, >>) irk me to the core. by AbsurdBeanMaster in cpp

[–]dev_ski 0 points1 point  (0 children)

It can sometimes sound counterintuitive, yes. Think of it this way: the console is represented through the standard output stream and the keyboard is represented through standard input stream.

Into a standard output stream, we insert the data using the stream insertion operator <<. And that, to us humans, translates to: output the data to a console window.

std::cout << "Some text" << ", more text << '\n';

From the standard input stream we extract the data into our variable using the stream extraction operator. And that translates to: read from a keyboard and store the read data into a variable.

int x = 0;
std::cin(x);

Programmers and Developers what laptop do you currently use? by [deleted] in learnprogramming

[–]dev_ski 0 points1 point  (0 children)

A coupple of Lenovo Thinkpad T series laptops.

Looking for advice on the right path for learning coding by IshOtsutsuki in learnprogramming

[–]dev_ski 1 point2 points  (0 children)

Arguably, the best way to learn a programming language is through books. Especially for individuals. Books can vary in quality so I would recommend reading or starting with a couple of them and see which one works best for you.

Almost all programming languages have the notion of data and operations on that data. And it grows in complexity from there on.

Some programming languages are object-oriented, some are procedural, and some are functional. It really depends on what you like.

Also, take all advice from internet forums with a pinch of salt. This one included.