many
It has been a while since the introduction of M1 MacBook. Is it compatible with mainstream C++ libraries as well as databases, Python, nodejs and android development?
many
Or should I just buy a laptop with Intel chips to avoid compatibility issues?
Anonymous
Or should I just buy a laptop with Intel chips to avoid compatibility issues?
jetbrains can do all of that, but u need to pay for them
Shahadat Shanto
hello
Shahadat Shanto
Anyone online?
Shahadat Shanto
I need help to solve a problem related to C program
Shahadat Shanto
Show jere
can I dm you bro?
Anonymous
can I dm you bro?
show your code ,if someone can, he'll done
Shahadat Shanto
There are N people numbered1,2,…,N. We have K gifts. Starting with Person A , gifts are distributed one by one sequentially. In other words, people receive gifts in the following order: A,A+1,A+2,…,N,1,2,…. Who will receive the last gift? Formally, after Person x(1 \leq x < N)x(1≤x<N) gets a gift, Person x+1 will get a gift. After Person N gets a gift, Person 1 gets a gift. This goes on until all K a gift have been given.
Shahadat Shanto
Input is given from Standard Input in the following format: N K A
J
It has been a while since the introduction of M1 MacBook. Is it compatible with mainstream C++ libraries as well as databases, Python, nodejs and android development?
You can compile C++ code in it since clang(The compiler used by mac) has backend for aarch64(The architecture used by M1) and iirc, the support was there from day 1. You can also run python scripts and you can do android dev in M1 and dotnet added support for M1 in dotnet 6. TBN: Make sure you are using latest version of XCode(clang llvm), Android Studio and python.
Anonymous
Anonymous
An interesting answer I do understand it 😅 but in any case there could be several books given for each case. I am a mid level developer looking to boost my view on design
Like I said, this is perspective based. For a mid level designer, I assume you are familiar with the GoF patterns. I would suggest getting familiar with others like Dependency Injection, Extension Object, Lazy Initialization, Front Controller, Object Pool, Module, Multiton, Twin, Blackboard, Servant along with Concurrency Related Patterns like Reactor, Monitor, RW Lock, MDP, Actor and so on. Once you are comfortable with using patterns, you can move on to Domain Driven Design. The book by Eric Evans is the go to book for this. If you finish this, you would know what books to read from there. In parallel,you can experiment with Functional Programming. Rather than learning a language like Haskell, you can study about Lambda Calculus (easier) or alternatively learn Category Theory (harder). Once you do this, you would understand the concepts behind Functional Programming more easily rather than learning a functional programming language itself which may not be very intuitive for a person from imperative programming background. Ofcourse there are others who have learned Haskell, ML directly and are very comfortable with the functional programming idioms. Stick with whatever floats your boat.
Artur
I was thinking about something more perhaps I am it even sure what I am looking for yet hah
Anonymous
I already know all of them 😅
Are you familiar with domain driven design?
%Nikita
if (max < c) max = c
Well, if (max < c) max = c Is the same as if (c > max) max = c
Anonymous
Sadly yes
Then am surprised that you would even ask this question here. If you do know domain driven design, then you should already know how you can expand your knowledge.
Anonymous
Feeling lonely, that’s what it is 😅
Some books that I have read are Architecting Patterns with Python by Harry Percival (more for Web Development with Django or Flask) Just Enough Software Architecture (A Risk Driven Approach) by George Fairbanks (if you have PMP knowledge, this book is awesome) Software Architecture - The Hard Parts by Neal Ford Service Oriented Architecture by Nicolai Josuttis (dated but got me started on SOA when terms like ESB and Orchestrator just flew over my head) I am currently reading (have been reading this for about 3 months now but the going is slow) Software Architecture Patterns for Serverless Systems by John Gilbert
McLean
/get cpppattern
Benedetto Califfo
From alaska
paper
Input is given from Standard Input in the following format: N K A
This isn't code , at least try to start writing something
klimi
Maybe something like std::optional?
klimi
Or std::variant?
Artur
Look at std::optional
Adriano
It's not impossible these days, but that's not how we normally do it in C++. Most probably, you'll have the function return bool and the other type will be an argument. Having said, that if you return 0 (and int), it will be converted to false. Also, there are functions, like std::string.empty() that return bool.
paper
You can try to return -1 or 0 if you don't use the numbers in that range
paper
You can try to workaround with nullptr's
paper
I think it's the simplest solution for this...
klimi
You can try to workaround with nullptr's
no... why not just use optional?
klimi
this is exactly what optional does
Danya🔥
Out arguments are bad
Marcio
Anybody using signal() and raise() in C++ on XCode? I tried on a small code to test my knowledge and it seems to not execute the function passed as an argument to treat the signal. It could be something specific to the Mac environment?
Anonymous
Hi Everyone, anyone here familiar with win32 c++ programming ?
Anonymous
Yes like idm (internet download manager)
Anonymous
This is cross platform right ?
Anonymous
Can you guide me where to start working on that. I tried win32 apis but there are no courses available for that.
Anonymous
Try to read the docs ?
I did. Made an app that does simple functions. But i want to move to cross platform now. I am basically Electronic engineer. Worked on embedded systems mostly.
İbn
Write a program that prints unique numbers in an array in C language ?
İbn
🙏 solution
Anonymous
unique?
Anonymous
only once?
İbn
Yes
İbn
In C language
Anonymous
Check each number inserted. If it is repeated, exit (1)
Anonymous
hash table also can deal with
Anonymous
For example, there is an array with 1,2,3, and the hash table stores the number of times they appear
Anonymous
Therefore, the hash table can only exist 1 or 0
Anonymous
If 2 appears, it indicates that the inserted value is repeated
Anonymous
the map can be an array, just to store the number of times
İbn
Can you do it in code ?
Anonymous
hi
Anonymous
I think it's more appropriate for me to do it than I do
Anonymous
u
Anonymous
I try to make a simple code, but not whole
Anonymous
can't to send.picture
Anonymous
When you can do it ...
int arr1[] = {1, 2, 3}; int hash_table[N] = {0}; if arr1[i] == 1 hash_table[0]++ if arr1[i] == 2 hash_table[1]++ .... if arr1[i] == 1 hash_table[0]++ ... if hash_table[i] == 2 the i number is wrong
Anonymous
In fact, if u use C + +, u can do it very easily
Anonymous
unordered_map<int,int> map
Anonymous
yep
Anonymous
set number as key, times of this number as value
Anonymous
but he said use c not cpp
Anonymous
does it has a solution of O(log(n)) in C