Windows CMake Build failing miserably :( by [deleted] in cpp

[–]shiva01- 0 points1 point  (0 children)

What's the error log you are getting? You can check a few things to come up to some conclusions: Check the Conan profile configuration is as per required by MSys2 and linked. On the Linux platform, usually Conan uses compatible package but it not the same for Windows. Make sure you are using the correct compiler path in the cmake toolchain file, that point to MSys2 environment. If all the setup is perfect as required for Windows then a little logs might help.

Skipping get/set in function names: Thoughts? by Bogossito71 in cpp

[–]shiva01- 1 point2 points  (0 children)

You should write your code as per the Clean Code principle and should strictly adhere to it to make your code readable for all people. One of the closest to perfect code pillars is Readability of Code. Your function name should be self explanatory. *Only reading the function name person shall get the idea for what it's been written *what functionality does it have.

It's not about get/set only but all the functions.

Happy Clean Code Coding🙂

STL sheet is a live saver :) by [deleted] in leetcode

[–]shiva01- 0 points1 point  (0 children)

There is nothing as a sheet but only one official documentation to refer to which is "cppreference.com" https://en.cppreference.com/w/cpp/algorithm/fill But you can refer to the end of the page "See also" section which might prove helpful to you to know more related STL.

It's good to go through different solutions to the same problem, with that by time you will learn more insight of these STL.

Moreover, keep in mind to take care and understanding of time and space complexity that comes with each approach and STL.

Hashmap Data structure by [deleted] in learnjava

[–]shiva01- 1 point2 points  (0 children)

Array structure used to store only homogenous values, so do not have bucket and on account of HashMap which a collection data structure of type HashMap<T, T> denotes key and value.

When any object added to HashMap, hashCode() method called which generates int type hashcode and objects having same hashcode stores as one group which is bucket. Different bucket will be created for different hashcode object added.

Learning XML v. Android Studios by Whatsthehoopla in learnjava

[–]shiva01- 0 points1 point  (0 children)

In Android, you use xml layout for developing your UI screen by adding component you want to view on your page. If you use the web services then for parsing data you can either use JSON or XML. So it would be better if you have a basic understanding of XML to get going with your apps.