Details
-
AboutStudent BSc Computer Engineering
-
SkillsJava, C#
-
LocationDelft, the Netherlands
-
Github
Joined devRant on 4/6/2017
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
-
3rd.
Also @C0D4, I use alt syntax when I place clear html between them, else I use that 3rd notation. -
If sendMail is a function in a different class, mock the Object of that class.
If sendMail is a function in the same class, it's a tad more difficult, and to fully comply to tdd, you probably need to refactor. While you could try to mock sendMail()
(Using PowerMock in Java iirc), this is considered bad practice. -
@cannonau This is what I meant.
Mocking is not the art of creating an extra variable, it's "faking" an object in your test. -
In test driven development you're supposed to change/write your codebase in such a way that it IS possible to test.
For example by passing parameters to the class and mocking these in your tests -
@saiij me too.
-
@Shardj the sql to handle the db isn't wrong, but as @Buggz points out in his last comment, you have to put access credentials to the db like everywhere.
-
Tbh. A lot of websites nowadays are small applications, and your browser is running around 80 of them.
-
On the other hand. Making that program function in bloody sql is quite an achievement too.
A terrible choice, but quite an achievement -
Why not flip the if and else? Makes it more readable
-
https://azlyrics.com/lyrics/clash/...
-
Step 0. Install Windows if you don't have it installed already.
Step 1. Install the English (US or UK) language pack.
Step 3. Allow Cortana to creep on all of your data
Step 4. Ask Cortana to sing you a lullaby
Step 5. Fall asleep
Step 6. ...
Step 7. Lose sleep because I missed Step 2. -
On the other side. Porn is one of the most tech savvy businesses.
-
And trolls. Don't forget trolls.
-
Wasn't there like a game where the movements were based on VIM?
-
@FrodoSwaggins I write in java at my work
-
Zbook here. It's still going great
-
HEY you stole my thoughts! *puts on tin-foil hat*
-
Why not just use Linux bash on Unix subsystem on Windows then?
-
South Park? M'kay?
-
Well it's just you two. Sony keyboard 😬
-
Do you depend on it being correct? If answered with Yes; don't do it client sided
-
No arcing back VS arcing back
-
Wooop Dutchie 🙌
-
Especially in terminals. That shit's annoying. Does backspace still remove just one character? Does it remove all? How many did I remove already? So. Much. Questions.
-
And there you have it. The difference a space makes. Ultraviolet or ultra Violet.
While one is REALLY FUCKING violet, the other is invisible -
@Lahsen2016 I already thought I miscalculated somewhere, but wasn't willing to count them again 😅
-
@Gerrymandered S,E,N and D are all duplicate, you only have to count them once and multiply by two. Then just the U is remaining. 😉
-
Java and assembly. Second quarter was html CSS js, nodejs, ajax and sql, third quarter was prolog and GOAL, fourth was cpp
-
Rubber ducks are love. Rubber ducks are life.
-
I call bs. All green squares add up to 137. To make a distinction between intensity more commits than that have to be made. This is more than the 111 contributions claimed above the graph.