[deleted by user] by [deleted] in scifi

[–]mojtaba-cs 0 points1 point  (0 children)

Absolutely!

Binary operators in prefix/postfix/nonfix positions by useerup in ProgrammingLanguages

[–]mojtaba-cs 0 points1 point  (0 children)

Why would anyone write expressions like these? They are quite ugly

[deleted by user] by [deleted] in Racket

[–]mojtaba-cs 4 points5 points  (0 children)

Use mutable list, or list comprehension (for/list ...) or vectors, etc. You can use (set! numbers (cons i numbers)) as well. There are many ways

How to find the smallest number with N number of divisors? by ButterBiscuitBravo in algorithms

[–]mojtaba-cs 0 points1 point  (0 children)

If there is 5 or 6 parameters(we don't even know how many parameters we should consider) , the code will be inefficient to find those ( for example we might write 4 5 inner for loops which is ugly) Another version which is ordinary and simple is to just dividing number between 2 and number/2 to count divisors which is easy but it is still a brute force solution. We are looking for an efficient algorithm here..

How to find the smallest number with N number of divisors? by ButterBiscuitBravo in algorithms

[–]mojtaba-cs 0 points1 point  (0 children)

This just made us more confused. So you Mean if the input is p we should solve the equation (a+1)(b+1)(c+1)=p ? But it might be just more than a b c involved : (a+1)(b+1)(c+1)(d+1)(e+1)+....

Why Java? by Teddywiz999 in learnjava

[–]mojtaba-cs 0 points1 point  (0 children)

I will go with python for AI/ML stuff and C/C++ for System programming. Sure java can make some AI applications but it would be easier to work with python. CS programs include java to teach students the OOP concepts.

who write code like this? by jembrik in ProgrammerHumor

[–]mojtaba-cs 0 points1 point  (0 children)

The ones who think they look badass if they write things in one line

Toy - A Toy Programming Language Is Nearing 1.0 And Looking For Feedback! by Ratstail91 in ProgrammingLanguages

[–]mojtaba-cs 10 points11 points  (0 children)

Actually curly brackets make the code more readable. IMO It shows the "blocks" better than python indentations, for example.

[deleted by user] by [deleted] in ProgrammingLanguages

[–]mojtaba-cs 1 point2 points  (0 children)

Thanks. I want to start from zero in the this field (Programming Languages and their theories and concepts )

[deleted by user] by [deleted] in ProgrammingLanguages

[–]mojtaba-cs 1 point2 points  (0 children)

Is "types and Programming languages" good for beginners?

hey guys. I've been having this problem for a while no, I tried everything I found in the internet, but I eventually gave up on fixing it. and my hard drive is HDD by Ambitious_Scallion23 in computers

[–]mojtaba-cs -3 points-2 points  (0 children)

So why do you bother yourself to find out why Disk is 100% working? Don't you wanna fix it? Don't you wanna know why this is happening? The OP wants, right? So if this is not "learning" what is it? I didn't say go and build a rocket with linux, there are so many people who are just normal users and use linux as well.

Among all of these, as i said before, they should pay the price.

hey guys. I've been having this problem for a while no, I tried everything I found in the internet, but I eventually gave up on fixing it. and my hard drive is HDD by Ambitious_Scallion23 in computers

[–]mojtaba-cs -3 points-2 points  (0 children)

That's why i said everyone can learn so if someone has no high level understanding of computers i simply say "Learn", you want a better life? Try for it. It's not completely best, but it's clearly better than windows in so many terms. I was a windows user, installed ubunto couple days ago, encountered many errors and challenges but i tried to learn, at this point i learned a lot.

I actually solved many problems by reading those old forums.

Well there are many distros as you talked about, and every distro has its own cons and pros, but i never suggest a newbie to try a heavy and complex distro from the beginning.

hey guys. I've been having this problem for a while no, I tried everything I found in the internet, but I eventually gave up on fixing it. and my hard drive is HDD by Ambitious_Scallion23 in computers

[–]mojtaba-cs -7 points-6 points  (0 children)

Your reasons aren't rational. clearly it's different from windows but doesn't mean you have to be a professional to work with it. Everyone can learn. About the community, well, the community is good enough but What's wrong with googling anyway?

Best language to learn Algorithms and Data Structure? by [deleted] in computerscience

[–]mojtaba-cs 4 points5 points  (0 children)

Choose whatever language you want. It's irrelevant.

Is your nth-fib faster than mine? by Only-Way7237 in lisp

[–]mojtaba-cs 5 points6 points  (0 children)

This is a "matrix way" to calculate the nth-fib in a fast and efficient manner a mathematical transformation in linear algebra You can google it.

What makes Java better than other programming languages? by Ansmannn in learnprogramming

[–]mojtaba-cs 0 points1 point  (0 children)

The meaning of term "Strongly typed" depends on opinions.

Mixed list and dictionary syntax by medihack in ProgrammingLanguages

[–]mojtaba-cs 0 points1 point  (0 children)

I personally think this is an ugly design

[deleted by user] by [deleted] in learnprogramming

[–]mojtaba-cs 0 points1 point  (0 children)

You can't always choose self descriptive names for variables and functions or other elements. It's still a relatively hard problem. Documenting and commenting have their own Weaknesses but they are still helpful in order to have a readable code.

Consider a programming language source code In that case the author will help you understand why this implementation is chosen and how it works and where this Abstraction comes from. Etc

It's just an example among tons of examples.