Тёмный

What is the Prototype Design Pattern? 

NeetCodeIO
Подписаться 144 тыс.
Просмотров 8 тыс.
50% 1

🚀 neetcode.io/problems/prototype - Code the Prototype pattern
🧑‍💼 LinkedIn: / navdeep-singh-3aaa14161
🐦 Twitter: / neetcode1
⭐ BLIND-75 PLAYLIST: • Two Sum - Leetcode 1 -...
#neetcode #leetcode #python

Опубликовано:

 

10 фев 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@NeetCodeIO
@NeetCodeIO 4 месяца назад
Full code walkthrough of Prototype: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8ZDWdxzLuyE.html
@nang88
@nang88 4 месяца назад
Goat back at it again
@user-pi2pj2hs4i
@user-pi2pj2hs4i 4 месяца назад
Type of videos i've been waiting from mr. Neetcode gaddemnit
@tomiiglesias5109
@tomiiglesias5109 4 месяца назад
Love your design pattern videos
@amanuel2135
@amanuel2135 4 месяца назад
Nice video man
@ahmedabd2259
@ahmedabd2259 4 месяца назад
Do you just hand write with the mouse? I hear the mouse clicking in the video background
@user-xz5iw1wf9w
@user-xz5iw1wf9w 4 месяца назад
Sir please post video solutions of weekly contests🙏
@walkastray007
@walkastray007 4 месяца назад
Programming in Java again are we?
@adesh116
@adesh116 4 месяца назад
Can we have a video on api naming for non CRUD operations or atleast what standard they used to follow at Google. Most videos or tutorials on the internet just cover the basic CRUD stuff. Would be really gratefuly if you can explain how to name apis for more complex use cases like file upload, file download, login, logout, reset password, send otp etc ie conventions for non crud operations.
@harrydayexe
@harrydayexe 4 месяца назад
Almost every example you gave is a CRUD operation
@adesh116
@adesh116 4 месяца назад
​@@harrydayexe let's say login.. i felt it's a non crud operation because all u create is a token.. u are not updating nor creating nor deleting a resource from the database.. let me know if my reasoning is wrong here
@peachezprogramming
@peachezprogramming 4 месяца назад
are you sure that new ArrayList(images) performs a deep copy? I just recently implemented this at my work & it didn't work. the ARRAYLIST was a new reference in memory, but each object in the list pointed to the exact same object as before. (Shallow copy vs deep copy). This is VERY important if you intend to modify the underlying objects! also: pin me please
@NeetCodeIO
@NeetCodeIO 4 месяца назад
It depends on the what the list stores. You're right that if it were a list objects, it would not perform a deep copy. If we were storing primitives like ints, it would create a deep copy. Strings are unique since they are immutable. Technically it's not a deep copy, but since the strings cannot be modified it doesn't matter in this case. But you're definitely correct to point it out.
@ecchioni
@ecchioni 4 месяца назад
Isn't it just a copy constructor?
@NeetCodeIO
@NeetCodeIO 4 месяца назад
In some ways, but since they have the same subtype it adds extensibility. In the code walkthrough we clone a list of objs which illustrates this.
Далее
How I would learn Leetcode if I could start over
18:03
Просмотров 298 тыс.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
The only Cloud services you actually need to know
17:17
Prototype Design Pattern in Java
18:30
Просмотров 140 тыс.
Why I focus on patterns instead of technologies
7:55
Просмотров 204 тыс.
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,2 млн
The State Design Pattern in Python Explained
19:14
Просмотров 73 тыс.
8 Design Patterns EVERY Developer Should Know
9:47
Use Arc Instead of Vec
15:21
Просмотров 137 тыс.