Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
llhbc607yI used to spend, but in The Office or with friends, every time I want to implement something new, I ask a colleague to sit next to me and judge my implementation (extreme programming), and the same, when we are Stuck on something
-
DevRage51027y@llhbc next time i'll ask a friend for advice, i really spend 2 hours thinking about something so basic
-
llhbc607y@Cesar It may be that you think very broadly to solve the problem, divide it up to get a simple test, or a minimal entity and then communicate it with the rest of entities that solve the real problem
-
You should validate on both the client AND the server. Client side validation helps the user spot mistakes, saving them time and a page load. Server side validation prevents bad data from getting into the DB.
-
Sometimes doing anything to distract your brain for a bit will work wonders when you return to the problem. I step outside with a coworker and just talk about movies or whatever is on Netflix. Anything to reset my brain rut. Fire alarms work well too. And naps.
I was think of using ajax to pass data from javascript to php because of some validation to my multiple checkbox, then before i go home the idea hit me to just use validation in php with some basic variable manipulation and if else, i just wasted 2 hours of searching just to arrived at a basic solution, i think it's much better to think before you code about what you want to do,but when i open my text editor i get distracted a lot.
undefined