Code Monkey home page Code Monkey logo

memory-management's People

Contributors

arafalski avatar dawidbil avatar niemarcin avatar nikczemnyokularnik avatar wbigaj avatar ziobron avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

memory-management's Issues

A testcase could be more general

On brunch resource in memory-management/.github/scripts/check.sh one testcase assumes that user didn't modify the file before pushing to the server:
pattern ${FILE} "Looking for the allocation place" "main \(resourceD.cpp:30\)"

"Rozsypanka wyrazowa" word no. 24

In Semantyka przenoszenia: 0x0E Copy elision video 5:02min you add word no. 24, this is a second time in this module, I don't know in which video appear firs time, but I have already this word in my notes.

"Rozsypanka wyrazowa" word no. 16

In Semantyka przenoszenia: 0x03 l-value, r-value video 2:22min you add word no. 16, this is a second time in this module, I don't know in which video appear firs time, but I have already this word in my notes.

"Rozsypanka wyrazowa" word no. 9

In 0x03 unique_ptr video 4:12min you add word no. 9, this is a second time in this module, I don't know in which video appear firs time, but I have already this word in my notes

"Rozsypanka wyrazowa" word no. 1

In Semantyka przenoszenia: 0x0A std::move video 2:33min you add word no. 1, this is a second time in this module, I don't know in which video appear firs time, but I have already this word in my notes.

Breaking cycle - solution - Problem with naming convention

Breaking cycle - solution
Use std::weak_ptr in one direction
`
#include
struct Node {
std::shared_ptr child;
std::weak_ptr parent;
};

int main () {
auto root = std::shared_ptr(new Node);
auto child = std::shared_ptr(new Node);
root->child = child;
child->parent = root;
}`

Problem with naming convention. Same names as node members in Node class, and as main shared_ptr objects.

Outro - test memory#2

Outro test. Question from memory#2.
I think answers "in line 13 uptr is already nullptr" and "in line 12 uptr is already nullptr" are ambiguous, because in line 13 uptr is still nullptr. The applicant doesn's know if You mean it's first time nullptr or it's still nullptr.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.