Posts by Alexei Dimitri Diniz Campos • 969 points
6 posts
-
6
votes4
answers276
viewsA: Why is object orientation not suitable for most scenarios?
The advantages of object orientation appear only in large projects. It takes a lot of work to break up a problem into small objects-oriented pieces, because the orchestration of these pieces is…
-
0
votes1
answer315
viewsA: How to count the number of comparisons of an algorithm (insertionSort)?
The answer is simple. It’s in your for. for (int i = 1; i < input.length; i++) { for(int j = i ; j > 0 ; j--){ Vc makes one for, which goes up to N (n being the size of the vector). Inside, we…
-
0
votes2
answers890
viewsA: Structural database, address table for two different entities
Look buddy, I’m seeing a mistake that I consider to be the preponderant of why your code is giving problems. Your modeling is incorrect. Which led me to this conclusion: you’re working with text…
databaseanswered Alexei Dimitri Diniz Campos 969 -
3
votes1
answer530
viewsA: How to save data to database through ajax?
His teacher mixed code in pure JS (Javascript) with jQuery, a famous and widely used library to deal with differences between browsers, while the professional only thinks of logic. Note that your…
ajaxanswered Alexei Dimitri Diniz Campos 969 -
4
votes7
answers33990
viewsA: How do SELECT all fields except a few?
But the question is also interesting, such as the wildcard(*) issue in select. You want to make a flexible/scalable system. That works even with new columns. Then you make a system that searches for…
-
66
votes8
answers16426
viewsA: Why is using "SELECT * FROM table" bad?
Not bad/bad practice to use wildcards (*). Depends on your goal. I want to be a good programmer (probably your case) A good programmer knows that or he will need all columns of a row (for example,…