Answer the question
In order to leave comments, you need to log in
How to hover over li add class "*active" to div in another block?
Good afternoon. Do not judge strictly perhaps a stupid question (I'm just learning ...
There is this code:
<div id="catalog">
<div id="title_catalog">Каталог</div>
<div id="content_catalog">
<ul>
<li><a href="#" title="Школьная мебель">Школьная мебель</a></li>
<li><a href="#" title="Гостиные">Гостиные</a></li>
<li><a href="#" title="Детская мебель">Детская мебель</a></li>
<li><a href="#" title="Мебель для столовых">Мебель для столовых</a></li>
<li><a href="#" title="Мебель для гостиниц">Мебель для гостиниц</a></li>
<li><a href="#" title="Мебель для актовых залов">Мебель для актовых залов</a></li>
<li><a href="#" title="Офисная мебель">Офисная мебель</a></li>
<li><a href="#" title="Мягкая мебель">Мягкая мебель</a></li>
<li><a href="#" title="Мебель для кухни">Мебель для кухни</a></li>
<li><a href="#" title="Мебель для спальни">Мебель для спальни</a></li>
<li><a href="#" title="Мебель из массива">Мебель из массива</a></li>
</ul>
</div>
</div>
<div id="base">
<div id="slider">
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Школьная мебель"><img src="images/Catalog/Uch mebel/nach_klasy_800_600_1.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Гостиные"><img src="images/Catalog/Other/Adelina/Adelina1 800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Детская мебель"><img src="images/Catalog/Det mebel/detskaja_800x600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель для столовых"><img src="images/Catalog/kuhnja/KSMS-04A/KMSS-04-A_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель для гостиниц"><img src="images/Catalog/Hotel/sanat_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель для актовых залов"><img src="images/Catalog/A_Zal/ik/ik_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Офисная мебель"><img src="images/Catalog/Ofice/NOM-04/nom04_1_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мягкая мебель"><img src="images/Catalog/M_mebel/uglovoj-dlja-kafe/divan_uglovoj_dlja_kafe_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель для кухни"><img src="images/Catalog/kuhnja/post3u/post3U_800_600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель для спальни"><img src="images/Catalog/Krovati/Krovat_Valeri/Krovat_Valeri_novinka_800x600.jpg"</a> </div>
</div>
<div class="slider-panel">
<div class="slider-news"> <a href="#" title="Мебель из массива"><img src="images/Catalog/Massiv/tranformer/transformer_sst_800_600.jpg"</a> </div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
To become a programmer who not only writes according to guidelines, but also understands everything and feels the code, you need to write dozens of bicycles and compare your bicycles with the bicycles of other programmers. Understand why your bike works worse and write a new bike.
For example, several of my acquaintances, whom I consider good programmers, complained that in their childhood and youth they independently invented the wave method for finding the shortest path, the sieve of Eratosthenes, and some other well-known algorithms, later disappointed that this had long been known.
Of course, I do not approve of bicycles in professional programming, but for learning and self-development, in my opinion, there is nothing better.
Once I was also looking for an answer to this question, understanding did not come immediately, I will share my opinion ...
In order to become a programmer, you must, of course, study theory and practice a lot. For practice, I personally used java courses from JavaRush, there are simply no equals in Runet, as for theory, I think it's best to start with the book " Java. Professional Library " by Horstmann. I like the style of the book, it goes in easily. I hope my answer will be useful and help you.
To begin with, complete all 5 or 6 courses (as many as you have) as best as possible, and do not read everything by heart, but teach (understand). Believe me, a good graduate who knows his business is worth its weight in gold, there are practically none of them and they are very much appreciated. You will become a “programmer” over time if you are interested in this further.
I did not understand anything until the 2nd year. Even wrote something, but did not understand. And then the insight somehow descended :) From books I will advise www.ozon.ru/context/detail/id/1313520/ and www.ozon.ru/context/detail/id/5602592/ , it was thanks to them that I was able to understand C ++ and C#. Well, in general, there are still situations at work when I don’t know what to do and don’t understand what is happening. But still it turns out to find a way out. Sometimes even elegant :)
In general, try harder!
PS The programming process should be fun. Not typing the code, but umm ... to see how before your eyes, something working appears from the void. I feel like a creator, artist, architect and this is very motivating)
> want to become a programmer
Why do you think so? That is, without irony, seriously, why? Your whole question consists of “it doesn’t work, I can’t, I don’t understand.” If it sounded like “I saw it, caught fire, tried it myself, it turned out, I went nuts and became a fan”, it would be a different matter.
> and earn money
"There is no money in programming" (c) :)
From the point of view of money, programming is quite a dead end path of development. Working as a programmer - you always work for others, this is the specifics of the profession, and no one ever works for you (at best, under you, in a team), sooner or later you will hit the salary / income ceiling.
As it was rightly said above - all sorts of MBA and your own business over time - this is the way without such restrictions.
> Where, roughly speaking, to start?
If you master Donald Knuth, it will be good to start. There is a minimum of coding, but a lot of base for programming.
ps: what is the specialization at the university?
> In a word, I want to become a programmer and earn money.
get better MBA there all sorts and earn money.
> I tried to read books, watch video tutorials, write complex and not very programs, learn algorithms,
Everything is right, keep it up). And, most importantly, try to be interested in how it works at a low level.
I am not a great programmer to give specific advice on where and how to start, but from a philosophical point of view, I can say a few words.
Firstly, if you love it, and are ready to live it, then you should not ask yourself unnecessary questions. It's a waste of the time you could have used to study the material.
Secondly, it was written: “I tried to read books,
watch video tutorials ..”
But don’t try, you read, re-read hundreds of times, if necessary, but delve into it.
Live it.
A short non-programming example, but the goal is similar:
When I started breakdancing, I practiced eight hours a day.
In the hall, at the stadium, at school... wherever space allowed!
And every evening I sat at home and came up with new "chips" in order to try them in practice the next day.
I gave myself all, I lived it, and the results were not long in coming.
Love, devotion and the desire to develop are the keys to success.
Thirdly: Again from the words: "I feel that
I do not understand anything."
This is the stone on which, once tangled, people give up forever. And in vain.
You don't feel it, you wind it up yourself.
Ask anyone, and they will tell you that if you don’t understand something, then you need to try it yourself again, or ask someone more experienced.
To summarize:
You love and want to do programming, but doubt yourself.
Advice:
Doubts away, and forward to conquer the peaks, with your head held high!
To become a programmer, another programmer must bite you%)
write complex and not very programs, learn algorithms
>> In a word, I want to become a programmer and earn money.
I want to become a programmer, or I want to learn a profession to earn money?
If the first - then read literature, blogs, try to participate in some kind of open-source project. “Try” each niche, which one you like the most.
If the second, then choose a language that is now popular, go to courses, get a piece of paper, and you can apply for the position of "junior-coder"
I support that in order to learn how to write programs, one must not read, memorize, but write. From what I tried, I liked the Hexlet platform, with an integrated development environment. Practiced on a Java course . You have to try and everything will work out.
Join as a junior in some team, remotely. In combat, it is quickly understood. That's how I started.
Well, you tried, you don't understand. Is it interesting to you? Maybe not interesting at all, why then do you want to become a programmer?
Well, let's say it's interesting (but how else is it). Then come up with a task that will be interesting to complete. For example, make your website / blog / web service / your_option. Come up with a task that has development prospects. Start with the homepage, do everything well and beautifully so that it works quickly and correctly, and you are happy with the result. And gradually come up with new tasks to expand your offspring. It is important that the tasks have practical meaning, i.e. not just a website, but, for example, a personal TODO list or some other functional service that you would like to use.
These are not the droids the job you're looking for!
I remember myself very well in my first year - I was ready to grab everything in a row, etc. etc. To the diploma - I already knew well who I am and what I can do, and what I can want, and I already “danced” from this. No hurry.
I didn't read all the replies. I hope I don't repeat.
I am not a programmer by training, but I think that if you want to learn something, you need to plunge into the right environment. Do you want to become an enthusiastic programmer who loves his job? Find such people. Try to join their company. You will be saturated with their spirit and you will be bursting with desire to do something, and they will tell you where to start. Habr is good for this, but communication in real life is even better. Look for them in the faculty. An enthusiast is distinguished by the fact that he can talk about his business endlessly. He almost never gets tired of it. Moreover, when you are next to him, you immediately want to change the profession to the one in which he is immersed.
What else? I have a rule: Do you want to learn something? Do it. That is, you may really need some kind of program (or you have been dreaming about the game of your dreams for a long time), but all such programs that exist do not suit you (for example, they are only available under Windows). Approach an enthusiast or at least just a more or less adequate person and describe your program to him. Yes, if the program is complex, you won't write it all yet. You need to find some part that is available to you now. You need to start somewhere . The main thing is to start. I saw that they offer to make a hamster here (home page). If you're interested, go ahead. The main thing is that you should be interested, that you know why you are doing all this (in general, the main thing is the motive).
Any "how" can be overcome if you know why (Nietzsche).
Overcome barriers, learn English. Most of the questions related to programming for a beginner can be answered by stackoverflow.com. There are also Russian specialized forums for programming - such as sources.su, vingrad.ru, if there are problems with English.
You need to start first of all in order to learn how to write programs in any language, you can also use one of the popular frameworks. And then gradually move on to more complex ones. In any case, having learned to program in one of the languages, you can quickly master others when you need it. The exception is perhaps such low-level languages as assembler.
It is also important to be able to correctly formulate a question. Very often, when you write a question on a forum, describing it in detail, you understand how to solve it and do not even publish it.
And most importantly, self-education. At the university they will make you a coder, if you want to grow further you need to definitely read books related to programming. First of all, it’s worth starting with McConnell - Perfect Code, this is a book that gives a lot of useful knowledge, and absolutely not related to a specific programming language, and this is the main value of this book. But this is worth doing after you learn tolerably program in any language in order to understand and realize the mistakes that you made. The book does not need to be read in its entirety. The chapters related to software engineering/design should be postponed until the 3rd course, you just won't be able to understand them. Well, then it all depends on your direction in programming, here you need to know what area you want to get into - system, application, web,
Sorry for the snobbery, but if a person is not a programmer in the 1st year, he will never become one. Learn programming, but don't try to become a programmer. Be a scientist, researcher, designer, journalist or manager.
A programmer is not someone who wrote a cool program in a million lines, but someone who understood exactly what happened when the computer printed "Hellow, World."
I did not expect that the topic will cause such a stir. Thanks to everyone who was happy to help. By the way, the question is, is it worth starting programming with this book ?
What book would you recommend reading on computer hardware? Sometimes I feel like I don't always understand how it all works.
Once again, many thanks to everyone who responded!
I liked Joel Spolsky's answer to a slightly different question, but I think it will be useful to you too.
Tyts
Faced a similar problem. To pass this stage, you need a strong forehead, walls of different thicknesses, a rake to walk on.
From all this comes an invaluable experience.
Well, I will quote from one book: “not a day without a code”
Here are some thoughts on the topic: eax.me/beginning-programming I'm a bit late with the answer, of course, but better late than never.
If you want to become a Java programmer, you won't find a better resource than JavaRush .
I liked the presentation of the material here .
Then it’s good to continue from the android, a low entry threshold and the result is immediately visible, which you can even show to your loved ones :).
There is a good course from Google.
Important! Don't waste your time and register HERE (English must-have).
Take this simple lesson and you'll know for sure if you'll keep learning.
www.3mu.ru/?p=1696
It is interesting to know the answer that the guy found for himself during the three years of study at the university :)
In my opinion, the best place to start would be to start with a practical course in mobile or web development. I would recommend that beginners start by learning HTML and the Django framework in Python - the easiest way to start and see the result.
A good start could be: https://www.khanacademy.org/computing/computer-pro...
The topic prompted me to write an article: itman.in/programmirovanie-s-chego-nachat
:)
The most important thing is, of course, desire, but it is not enough. You need to have certain qualities characteristic of programmers. Because it is one of the most intellectual and creative professions.
The topic is well described in this article - How to become a programmer . It will be very interesting to read, because. the style of presentation is quite simple, original and sometimes humorous :)
Start with the simplest programming language, Microsoft Small Basic. Having mastered the simplest language, you can move on to more popular programming languages. Ms Small Basic was created specifically for beginners, for Russian-speaking users it has an adapted interface and interactive tooltips when writing code. Here is a site with a description of the language and free educational materials in Russian: small-basic.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question