Posts by Devprogramacao • 119 points
19 posts
-
0
votes2
answers115
viewsQ: What is the performance gain when I log into my variable?
I’m still reading the Complete and Total C booklet, and it says that: [...] This means that operations on the Register variables could occur much faster than on the armezanadas variables in memory,…
casked Devprogramacao 119 -
0
votes0
answers37
viewsQ: What is volatine in C
I’m reading this booklet (http://www.inf.ufpr.br/lesoliveira/download/c-completo-total.pdf) and came across the modifier volatile. I don’t quite understand how it works, so my question is: What it’s…
casked Devprogramacao 119 -
1
votes1
answer39
viewsQ: Javascript script is not running
I have the following problem... I have this code in JS: window.addEventListener('DOMContentLoaded', function(){ const regexCharactere = /<li>.[^<* ]+/; const regexEmail =…
-
0
votes0
answers85
viewsQ: I can’t access the route controller on Laravel 5.8
I can’t access the Laravel controller when I use: Route::controller('categorias', 'CategoryController'); He makes the following mistake: Invalidargumentexception Attribute [controller] does not…
-
1
votes1
answer404
viewsQ: What function and how to use Controllers in Laravel
I’m learning Laravel by a channel, and left me doubt... How should I create my Controllers? As far as I understand it, the view asks for it, the controller will validate and successfully calls the…
-
-2
votes2
answers69
viewsQ: Laravel version 5.8 does not come with routers folder?
I installed Laravel on my server (which was uploaded with vangrant and Virtual Box), but did not come the routers folder, which I found very strange, I read through the documentation that it comes…
-
0
votes1
answer228
viewsQ: Installation in Laravel project gives error
I am following the IT Specialization classes (https://www.youtube.com/watch?v=iPTxznidNHo&list=PLVSNL1PHDWvR3PeLXz6nvBkDhv1IQk4wP&index=1), but when I do the installation of my Windows in…
-
3
votes3
answers182
viewsQ: Access modifiers in PHP
Does it make sense that I create a class, define three functions, two public and one private, and make the private function be accessed through the public method? Example: class Pessoa { private…
-
-2
votes2
answers1152
viewsQ: How to pass data from an HTML form to a php object
Good morning, In the past articles I wrote I was mentioning that I was learning Object Orientation in PHP in the documentation itself, and now I decided to do some tests that maybe can be applied in…
-
1
votes1
answer171
viewsQ: How do callbacks and anonymous functions work in PHP?
Good afternoon, How an anonymous PHP function works? How does the callback in PHP? How to work the two together? (anonymous and callback) I studied a little Javascript and found it very different in…
-
3
votes3
answers75
viewsQ: Definition of "arrows" in PHP
I don’t know if I got it very well in the official php documentation (https://www.php.net/manual/en/language.types.array.php), so I came here to ask a question. I’m giving a general review, finally…
-
-1
votes2
answers39
viewsQ: The addeventlistener event is not listened to
I don’t know if this can interfere or not, but I have 3 equal forms on the same page and 2 other scripts being called in the same way (with window.addEventListener) HTML <script…
javascriptasked Devprogramacao 119 -
0
votes1
answer52
viewsQ: Function in C does not return the number squared that the user computed
I’m learning C and data structure, I’m using a workbook (https://docs.google.com/viewerng/viewer?url=https://api.apostilando.com/pdf-Viewer.php? pdf%3D3353_structure_data.pdf), I think I’m having…
casked Devprogramacao 119 -
0
votes1
answer828
viewsQ: window.onload property interferes with loading several scripts?
The estate window.onload () = () => { //Executa algo } Can it only be in a script? Let me give an example for the best understanding. If I have 3 scripts called: mail js. js test. something.js…
-
0
votes2
answers98
viewsQ: Values in C do not return what is expected
I am in personal studies following a booklet that this algorithm gives the following result: Algorithm of the Apostille #include <stdio.h> #include <conio.h> main() { int n = 10; int m =…
-
0
votes1
answer206
viewsQ: Taking ids from an HTML and playing for a Javascript array
I have a very large form in HTML and would like to take the ids and store them in a Javascript array, and then access them by applying the rules (empty name type; invalid.) HTML <form…
-
0
votes1
answer23
viewsQ: Xmlhttprequest does not find execute (Duplicate)
In the last question (Xmlhttprequest cannot find run) was struggling what was going wrong in my code, so I followed some tutorials on youtube to see what the demonstration is like in practice,…
-
2
votes1
answer54
viewsQ: Xmlhttprequest cannot find run
I can’t find the error where Xmlhttprequest is, but I made an Alert to see how far it plays. JS window.onload = () => { //Constantes que são pegas do Formulário const name =…
-
0
votes0
answers54
viewsQ: Javascript Event Execution Error
I have a problem in Javascript that indicates that the line is in error, I compared with other codes but I see nothing different from other codes... HTML <script src="../js/contact.js"…