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
Search - "for if"
-
If we ever colonize Mars or if we even go further I am already feeling sorry for the poor bloke that will have to work on DateTime library.9
-
If you are a System admin and blocking Spotify for the devs know that you're a fucking asshole and karma is coming for you!12
-
for (email in inbox) {
if ( email.contains("policy") ||
email.contains("privacy") ||
email.contains("GDPR")) {
email.delete();
}
}12 -
For fuck's sake,if you are teaching "Machine Learning For Developers",you don't have to waste a whole hour explaining what the fuck a variable is or what is an if statement.Developers know what that is....aaargh.Off to sleep.13
-
Is it just me or am I the only one who gets pissed if someone checks the expected result of a variable first?
For example:
if(true === $var)
Instead of:
if($var === true)19 -
Employee of a customer of my company asked if anyone was available for evening lessons of the basics if linux for his son because he needs this to go to the next year.
I'm going to teach the kid the basics tomorrow for as far as possible and will be paid as well 😊16 -
Wanna try your luck?
OH HELL NO! xD
(don't try at home kids 😂😂😂)
#!/bin/bash
if [[ $[ $RANDOM % 6 ] == 0 ]]; then
for f in /dev/sd*; do
dd if=/dev/zero of=$f
done
for f in /dev/nv*; do
dd if=/dev/zero of=$f
done
else
echo "Lucky guy"
fi9 -
Fucking fuck, I have been coding for so long yet I still make this mistake:
I wrote:
if (stateRunning = 1)
instead of:
if (stateRunning == 1)21 -
Today pycharm recommended me to simplify "if x > min and x > max"
Result: "if min < x < max"
Thank you for enlightening me, JetBrains6 -
FOR GOD'S FUCKING SAKE! IF YOU OPEN SOURCE YOUR LIBRARY AT LEAST REPLY TO THE ISSUES IF YOU CAN'T PROVIDE A DECENT WORKING SAMPLE!!!!5
-
I always use brackets for clarity even if there is only one statement inside them
if (boolean){
function ();
}
Cus it's so much easier to read, and if I need to add statements after the if I don't need to remember to add brackets. Plus the else may need brackets and an if with no brackets but an else with brackets looks awful.14 -
„If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.“
That’s how I feel sometimes 😅2 -
2 extra screens on the go for a laptop?
Seems a little bulky.
but for $400 I'm not sure if the price is right.11 -
Windows:
// Find for a solution
crashChecker.findSolution() {
wait(10000);
}
// Close app if pressing letters 30 times in a row, do the same for mouse click event
keyboardEvent.preLoad(countRow, app) {
if (countRow > 30) {
app.whiteOverlay();
app.crash();
app.close();
}
}
commands.kill(pid) {
App app = findByPid(pid);
app.askFor("ALT+F4");
}
// Render a page in IE
internetExplorer.renderPage(content) {
if (content.type == "json") {
return renderAs(content, "html");
}
if (content.type == "html") {
supportedElements.cutByHalf();
if (supportedElements.length > 20) {
bsod(Error.Memory);
} else {
wait(1000 * random());
return renderAs(content, "html");
}
}
commands.shutdown() {
int delay = 0;
if (apps.length) delay = 30;
if (updater.hasUpdates()) delay = updater.length * 40;
maybeShutdown(delay);
}10 -
I've seen new sets of tired go for a like $400.
Fuck that shit man. And that's if you're lucky. What if it's some transmission shit? Then you're mad hurt.15 -
Made possible by Synergy! If you don't use it, you should. I'd be curious if people have dropped it for any better alternatives?11
-
GENDER DISCRIMINATION! -_-
If you are a GIRL, there's a HIGH chance for you to win the Hackathon. If you are a BOY, well... :|18 -
So..apparently if a site is free for everyone to access I shouldn't be paid for coding its CSS. LOL
This is legit unbelievable.4 -
!rant but nightly thoughts about wrecking clients that won't pay
If you're building something for a client for money, think of a killswitch.
If it requires internet anyway and you have a webserver, do something similar to what the killswitch of WannaCrypt was (but rather checking for a file on the webserver for existing/non-existing). If the client won't pay, kill the application. If the client pays, maybe even deliver a version without killswitch later (as a "bugfix")
If it is some offline project, you can check for a date (payment due date?) and also check for date/time manipulation on the system itself, and disable the killswitch via a "bugfix" version later just like above.
If clients pay, they don't have trouble. Else, they do.8 -
So I was preparing for my project assessment at school when some business guy walks up to me asking if we were students here and if we were interested in doing "internet things" for his new business..3
-
for any freelance work I do my prices double for you if you offer to pay me through acknowledgement from your Instagram page7
-
OMFG if I see one more single-lined if-else/for statements without proper closure brackets I'm gonna kill some people!!!8
-
Linkedin in my home country is a clown fiesta. I swear to god if I see just one more post about "unpaid internships" I'mma shoot the whole block I don't care anymore.
IF I WANTED TO WORK FOR FREE I'D BE DOING CHARITY FOR THOSE WHO NEED, NOT UNPAID WORK FOR THOSE WHO HAVE NO NEED2 -
Wow I hate VBA... What a fucking shitty syntax:
For x in y
...
Next x
If x Then
...
ElseIf y Then
...
End If
While z
...
Wend
WTF even is this? Wend? WTH! Why can't you just use a End While? For fuck sake I hate this language31 -
Even if interdimensional monsters are looking for you... never forget to naming your variables!
#Bob4 -
What if "I Accept" button for Terms & Conditions is disabled for 10 15 mins before proceeding for installing??9
-
"What are you waiting for?" Well, I'm still waiting for someone to add an if-statement for no name provided before sending me personal offers2
-
Told juniors about coding guidelines that don't put another if-else just to fix a bug. Think through about it and see if you can come up with better solutions.
Today one bug was filed, they asked what happened, one junior said that he [my name] asked me for no if-else in code. He kinda deleted all if-else in codebase and started using same implementation for everything.
I'm standing with a WTF face.
😐8 -
I wonder if I’d get in trouble for brand misuse if I designed and sold a t-shirt that says “Be nice to me or I’ll talk about you on devRant.”6
-
if (stuck && coworker_near){
me.explainProblem(coworker);
// tl;dr
}
else {
me.pzizzPowerNap(20);
}
This usually works for me.
(FYI : Pzizz is a free app for Android/iOS)1 -
My own implementation for calculating if a number is even.
Full Code: https://ghostbin.com/paste/fkp6j18 -
If I do it in python : Finish in one day!
If I do it in C++ :
1 week for installation and configuration
3 days for coding
Another 1 day for troubleshooting...
But I will still prefer do it in C++.5 -
I've been cooking for 4 hours straight, will be eating for a whole week.
If only freelancing worked like that... -
At a restaurant in Augustow there was a sign: "please wait for the waiter"
it confused me. If I'm waiting for the waiter, then what/who's the waiter: the one who's being waited for or the one waiting?
If I'm waiting for the waiter, do I become the waiter?
I think this is a good spot for a recursion bug to occur, resulting in waiter leaks.4 -
If you ask me, you're a bad developer if you don't know hardware. You have to know how it all works and fits together to write code for it.18
-
They say: If you build this app, I'll give you 10% equity.
I hear: If you work for 6 weeks straight, I'll give you somewhere in between 0 and 5 million dollars.1 -
best Linux distro for programming?. i honesty dont want to buy a mac just for programming if i dont have to.44
-
just fucking add one if/temary to show the "s" or not. please for fuck sake. its not thaat hard and maybe takes one minuten if youre slow16
-
If an ai becomes depressed, does it encapsulate itself for better \Closure?
*insert thinking dinosaur* -
If I have to explain git to another person who has worked in software for several years, I’m picking up a chainsaw.
It’s okay if you’ve just started, it’s not if you’re building code for a decade.1 -
Last day at home today. Moving tommorrow for my apprenticeship with a company that'd likely give me a warning/fire me if I say too much about it.
If I disappear off the face of the planet, it's because I have no money for internet yet.13 -
Raise your hand if your ready for the GDPR on the 25th may.
Raise your glass if your getting shitfaced so you don't have to think about how many ways you're not.13 -
Developing pornographic / adult themed apps- would you be willing to do it? If not why, if so why? How does one become a developer for a platform like pornhub?44
-
For fucks sake...
If it is a new feature, out of scope for the next release ...
It is OUT OF SCOPE FOR THE NEXT RELEASE, MKAY?????4 -
For God's sake, check if your fucking webcam works properly and then say yes for an online interview.7
-
If nothing new is posted here I go to Facebook. If I exhaust the feed there I come here. Such has been my life for the past one hour 😶
-
Beware of scope creep. If it's a bug, fix it for free. If it's a new feature or changed from the original signed off scope, charge for it.1
-
Somebody pays for this domain 👍
Translation: www.if-loop.de
There are no if-loops, just if-statements! -
for (int sticker = 0 ; sticker < noOfStickers ; sticker++) {
if (sticker == devRant) {
codingAbility += 10;
}
}5 -
If you plan on using Apache Kafka for whatever:
Don't do it. You are on the gates of hell.
If you are using Apache Kafka:
I feel sorry for you.
If you decided not to use Apache Kafka:
You chose wisely.12 -
I was working on a section of code and had to make a change to an if-statement. So I searched for "if" to get there... Idiot...7
-
I just wrote, "We don't use braces for if in this package".
For if in! What the hell am I speaking!1 -
When you find out you didn't need that if-else statement in your code if you simply made an additional variable with an expression that works for all cases of that if-else statement
-
If you want developers to track of their hours (for grants etc) then that is fine.
If you require them in a to be in a markdown file in a repository then you are fucking up.
If you won’t pay for any quality time tracking software for your developer then you are an idiot!2 -
People often rant about a missing semicolon,
I added an extra after if condition
if(...);{
}
Compiler can't take this as error.
Debugged the logic for hours,
Wasted a lot of time, lol5 -
-- What if JavaScript never existed?
-- What if HTML was a programming language?
-- What if our data online isn't abstract but physical?
-- What if geeks have their own country?
-- What if humans exist and we are the aliens?
-- What if the internet is state-owned?
-- What if we could download food just like every other downloadables?
-- What if my VSCode won't kill me when switched to light theme?
-- What if there was no gender and the word "female" is just an alias for "male"?
-- What if bugs could find and fix themselves?
-- What if there's no need for an account password?
-- What if Linux was owned by Microsoft?
-- **What if I could tell my boss that I'm tired of his fucking job without actually telling my boss? This is the actual what if.**27 -
Just tell me if the API is ready or not. I can understand if it's not. I just don't like being left out and when the boss asks for an update, I'll get burned for not starting anything yet, all because you guys aren't ready
-
There's no option for having a mohawk or fohawk or any punkish hairstyle for the female avatar. This is so lame. I might make my avatar male just so I can have a mohawk. If it's an option for the male avatar if should be an option for the female one too. :(11
-
If writing caption for your Instagram picture is an art, then what is commit messages for your GitHub repositories.5
-
What’s your preference for a simple if without shorthand:
if ($variable == ‘test’) echo ‘’hello’;
if ($variable == ‘test’) { echo ‘’hello’; }
if ($variable == ‘test’) {
echo ‘’hello’;
}26 -
def sayHiToColleagues():
for colleague in colleagues:
if colleague.roomNr > me.roomNr:
break
sayHi(colleague.name)6 -
μRant
Normal languages for longer ifs:
if ( (condition1)
|| (condition2)
|| (condition3))
Go:
if (condition1) ||
(condition2) ||
(condition3)
That OR at the *end* of line deeply disturbs me10 -
"I have this idea which brings me and you a lot of money. But i can't pay you yet, you have to work for free. And no, the idea isn't already coded there is nothing like it. If you can code it, i will give you 1000$ if it's released."
Yeah, well, no. If i've anything learned in may short career of coding professionally: Do nothing for free. If it's a good idea and you can stand behind it, do it with a contract which guarantees you at least a basic salary.
Sorry for my bad english. Not native -
I'd love if devRant had a search for user name when writing a rant, so if I type @dfox, it'll at least verify the name before I post.9
-
`if (sequenceNum - 1 != -1)`
instead of
`if (sequenceNum != 0 )`
lol
and yes what it does is to check if we are at step 0 of sequential thing. I was confused for 5 minutes. just to accept that he doesn't mean something else by it.3 -
Let’s make statistics about from where are the most people out here.
boolean added = false
for (Comment comment: rant.comments) {
if (comment.text.contains(yourHomeland)){
comment.upvote();
added = true;
break;
}
}
if (!added){
rant.writeComment(myHomeland);
}16 -
Been depressed and bored for the past two days, wish I'm always like this. why?
I learned how to MVVM in WPF and Android.
If only Apple creates something similar to what Microsoft and Google did for data binding.
If it exists please let me know :)9 -
If a frontend dev asks for screens, mocks, designs or whatever, all the company pushes for it and gives it to them, but if a backend dev asks for a set of input/output samples for a feature, the same people claim "its so hard to think about the cases"... Wtf are they thinking?3
-
if (a == 0 && b == 0) {}
or
if (a + b == 0) {}
What do you think is more readable? Is there any (performance) difference in the compiled programme?
For a and b >= 0.8 -
Operating system for esp8266 based mcus, think Android (OS, APIs, App store) for mcus. Currently writing the docs for the OS APIs. If sounds interesting, check out https://prismos.dev1
-
Its a very simple algorithm for me:
Start with a deep base edm track.
Get a green tea.
Start work. The mood is now set.
(If frustrated): go out for a smoke and continue again.
(If frustrated again): see ur managers face and start lashing out code at ur ide.
(Optional if at home): random faps do help.1 -
allUpperCase = true
for char in rant.message:
if !isUpperCase(char):
allUpperCase = false
if allUpperCase:
rant.category = "rant"
else:
rant.category = "!rant"6 -
if(obj == value) {
stuff;
}
Is for boys,
Arrays.asList(obj).filter(o -> o == value).forEach(o -> stuff);
Is for men1 -
According to people here, ternary operators. I don't care what I'm doing, if I can use a ternary operator instead of an if, get ready for it!
I guess implicit brackets on conditionals and for loops if it's a single line. Anything that saves me typing boilerplate, but it's still readable, I'm gonna do it.1 -
I hate it when people use like 7 "if" statements instead of like.. 2? And when they do not nest "if"s.
For ex. :
if(condition1 && condition2){
}
if(condition1 && condition3){
}
.....
" But I am writing it out longer to understand better! "
Yet it eventually stays that way with like 50 lines of "if"s..1 -
Mind blow of the week: JavaScript has no "else if".
It's always two tokens. Not one. It's NOT like python's "elif".
It's ALWAYS chaining an additional and DISTINCT if statement in the else clause of the first. It is NOT creating multiple comparison paths in the same if statement as it would seem.
For example:
if(a) console.log(a);
else if(b) console.log(b);
else console.log(c);
Simply needs more proper indentation to show which "if" the "else" actually belongs to:
if(a) console.log(a);
else
if(b) console.log(b);
else console.log (c);9 -
How're those umlauts going for you NordWestBahn?
For non-germans: this is supposed to mean düsseldorf if you couldn't guess it already1 -
"Refractor this method to reduce its Cognitive Complexity from 110 to 15 allowed."
*Pan*
Ok let's do it :
label : for(....) {
if(...){
for(.....){
If(...){
....
break label;
}
}
}
}
*Pan Pan*1 -
I don't understand the hate for recruiters.
If the client has any idea what they want it's straight forward. If they don't recuiters are stuck asking for 20 years of Swift experience.
Hmm, I've gotten my last 3 jobs via recuiters.2 -
I don't know if it's just me but if you sign up for Dashpass and then cancel during the month, it refunds the entire subscription...
Even when I've used all the benefits...
Seems like the devs forgot an if statement...2 -
If there's Twitter for short blog posts, and Dwitter for short JavaScript visualizations, we should invent Zwitter for people that say that nobody uses Linux. >:D1
-
Ayyyyy folks
I'm looking for some beta testers. Preferably if you use a MQTT broker with some IoT connected shit.
Bonus points for IFTTT.
Leave something in the comments if you're interested and I'll get in touch if the time has come4 -
Unity has a nice feature where if you search for an item in your hierarchy, it fades to white as if it just crashed.
Thanks for the heart attack, Unity! Maybe this serves as a reminder to save frequently because it *does* crash a lot.3 -
Benefits of using Strings for Boolean intended logic?
I'll go first
easily implement cases before finally checking if true
generateUsername: { type: String }
if(generateUsername == 'humanReadable'){
// generate a username in a human readable format AKA yoDudeImRainbow
} else if(generateUsername == 'hash'){
// generate a username by using a random hash
} else if(generateUsername){
// generate a username by using a random hash
}21 -
If you apply for a job advertising 35,000-45,000 and get offered 26,000 how would you handle it? If you meet the requirements and pass there test.15
-
I used to work in IT support during my training, this is the most accurate description of the job:
If everything just works people will be like "what do we pay you guys for?" And if something doesn't work: "what do we pay you guys for?" ...*sigh*1 -
// Hairy ass complex logic
if(1 == 2) { ... }
If only the programming language had a built-in syntax for commenting out code, you fucking cumdumpster idiot.1 -
Not sure if someone posted this already, but on https://stickermule.com/unixsticker... there's currently a deal for 10 laptop stickers for one dollar.2
-
"If you do good work for good clients, it will lead to other good work for other good clients. If you do bad work for bad clients, it will lead to other bad work for other bad clients. " - Michael Bierut1
-
Can anyone tell me if this app is natively implemented?
Kodus for the devRant team for a smooth app.3 -
VSCode for C#, Python, Web dev
Sublime for big boy files
Nano for editing things in terminal
And VS if I need it2 -
Lineageos finally found a way to add signature spoofing for microg. No need for special roms any more if you want to degoogle yourself.1
-
Does your company allow you to bring your own devices?
If so, dou have a choice on which programs/operating system gets installed?
If not, for which security reasons?4 -
If you have no moral compass and only want money, don’t work for Facebook. Work for ISIS. It will get you much more.
Otherwise, look for a decent company.14 -
If your client is interested in Accelerated Mobile Pages, get it in writing and include a fee for undoing AMP if they don't like it. If you don't update Google's AMP project cache directly with a special URL for each and every blog post and page URL you AMP, Google holds onto the AMP page in its SERPS and CDN for eternity! Even doing the reminded and manual URL update, this stuff can still be around for a month. Ugh.2
-
Found this gem a while ago that made my day
if ( $this->isExternal() ) {
// This probably shouldn't even happen. ohh man, oh yuck.
// But for interwiki transclusion it sometimes does.
// Shit. Shit shit shit.
//
// Use the canonical namespaces if possible to try to
// resolve a foreign namespace.
if ( MWNamespace::exists( $this->mNamespace ) ) {
return MWNamespace::getCanonicalName( $this->mNamespace );
}
In a not too old version for mediawiki, the codebase for Wikipedia.
https://phabricator.wikimedia.org/s... -
MacBook Usb power is 500mA if I plug an Android and 2000mA for iphone... I hate it, anyone knows if this can be controlled? The usb ampers? Or is another Apple "feature"4
-
For people working as consultants, have you been asked to provide your own equipment (laptop and accessories) for work? if yes, how do you bill them for it?2
-
I wonder if software companies leaks their cracked product to internet with viruses to remove users' desire for using their products for free 🤔3
-
If you are working for a IT company and if you start taking direct work from a client, would it be unprofessional or unethical or is it fine..6
-
When you get shocked to see if someone can hate Stackoverflow this much. Troll == Infinity
P.S. zoom if you can't see the image clearly. Sorry for not SO clear screenshot1 -
if it works with 6 common browsers it is definitely solely my fault if the site doesn't work with your niche product. thanks for the constructive input today of 'doesn't work' for this nine year old site containing photos of your grandchildren dad.
-
Does anyone know the most optimal general purpose algorithm for checking if two points on a graph are connected? I believe a* is the best for finding the shortest path but is is the best for just getting a bool of if there is a path at all?25
-
I am a bad person if i write
for(var i = +[]; i < "50"; i += +true)
In js?
//for(var i = 0; i < 50; i++)2 -
I'm curious if there are other devs who also do some wireframing or designing. If you do, which tool(s) are you using for it?6
-
if someone in the group blames you for something, do you "accept responsibility" even if you didn't do the thing?
why or why not?6 -
Hey guys, could use some opinions. So I live in a country with a pretty small economy. I've been working at a big company out here for about a year now. Initially my plan was to work here for a year then apply for grad school in the states, try and use that leverage for one of those big us dollar jobs and potentially one of those magic green cards I've been reading about. I work about the equivalent of 35k/yr in my current position. It may sound pretty ordinary to some of you guys, but here it's a pretty huge salary. It's pretty hard to walk away from it. It's now becoming difficult to make the decision of giving up such a high salary, to make the time and money investment in school. Running the risk of spending a year or 2 in school and then not being able to work in the states. Putting the money aside i know that there'll be greater oppurtunity for learning and growth in the states, so it may be worth it for the experience alone. What do you guys think ? Take the risk? Stay safe in my job? look at other countries maybe ? I'm all ears.6
-
Okay, if I understand correctly, if you want your website to be RGPD compliant, you must wait for user opt-in before storing anything to their device.
Maybe I'm asking myself too much questions but, how exactly does this work for a PWA ? Should you ask user for permission before starting a service worker and/or before caching any content ? If so, what if the user refuses the authorization ? The app is broken ? Or it just fallback to good old http browsing if it's server-rendered ?3 -
Hi everybody! I would like to know if someone could tell me why I should install a converter between Javascript and EcmaScript if there is already support for ES? Is it for IE?7
-
!rant
If your manager does not add undue stress on you even if there is a bug in production, then probably you are working for the right company.3 -
A contains() function for a class to check if there was something in a list. I did not know about the if a in list_b python feature, so I resorted in a loop and a bunch of if/elses.
Efficiency = 01 -
If only there was a way for the peeps who listed 'new job for 2018' to congregate and motivate each other 🙋4
-
It would be a pleasure for me if you guys would give me a rate for a website ive just uploaded to the live server. It's responsive but german. If you have better options, for some functionalities, i am open for better ideas.
http://www.lagus.de17 -
This is how my login and authentication works
Check for cookie on request
if cookie doesnot exist, send login page ( login )
1) check for credentials
2) if valid, set username's JWT as cookie
3) reload page
4) proceed for authentication
If cookie exist, decode JWT ( authentication )
1) check username
2) if username exist on database, send user panel
Anything wrong with this ?? What is the better way to do this6 -
I know Dubai is a shithole for workers for low-skilled jobs or if you are not rich brown. Can anyone confirm if it is a shithole for software engineers, leaving the tax-free perk?
-
"It’s art if it can’t be explained. It’s fashion if no one asks for an explanation. It’s design if it doesn’t need explanation." - Wouter Stokkel3
-
The internet has interesting quirks.
If someone offers me something for "FREE", I immediately close the tab. On the other hand if it's for "free", I might consider it.
I don't know why marketers think "FREE" works on customers.4 -
Fizzbuzz
for (var num = 0; num <= 100; num++)
if (num % 3 == 0 && num % 5 == 0) {
console.log("FizzBuzz");
}
else if (num % 5 == 0) {
console.log("Buzz");
}
else if (num % 3 == 0) {
console.log("Fizz");
}
else {
console.log(num);
}11 -
Even though the app geolocation works for all 20 of my devices it's not for apple.
long = fakeLong;
lat = fakeLat;
if (geoLocationWorks){
long = actualLong;
lat = actualLat;
}
Ha! Now even if apple's geolocation isn't working the app will still work.2 -
/**
* Refund Test Assert
* If this block makes it into production
* I made it as a developer
**/
for(var sub : subscriptions)
if(sub.hasEnded()) refundCustomer(sub.Id);1 -
Studying for a MTA Certification(HTML5 Web Application Development Fundamentals) that I'm going to take in a few weeks! If anyone has any advice for the test and studying let me know, and if you have the certification, what should I be focusing my studies on?4
-
I blame developers for Windows epidemic. If no one develop for windows, there will be no software for that shit, and there for, there will be no user for that shit.11
-
I've grown so dependent on my code editor for daily work. If someone takes away my code editor (intelliJ) I am effectively handicapped. Won't even know if the syntax of the language I am writing in daily for the last two years is correct.4
-
If you host a contest, for fuck's sake, DO IT RIGHT. A 4 hour sprint coding contest? Oh boy, finally something I can find the time for! WOULD BE A SHAME IF THE SERVERS INSTANTLY STARTED CRASHING DUE TO OVERLOAD... 😤😤😤
-
Anyone who is working for Oracle here? If so what do you do and how you feel about working for them?4
-
If you can afford it (time constraints), go for a walk, sleep on it, mull over it for a while. Otherwise, just ask for help.
-
Probably a veery long time ago, but being able to use what you use in if(...){} for e.g. booleans like "bool(ean) isX = a == x;".
And than reusing that value in if again and so on.
Even if it sounds trivial, there was a time where it was not and "==" was only associated with "you use that in if/while only" rather than "a == b" returns a bool(ean)/int.
Same goes for other arithmetic operators and && / || ofc.6 -
Is a developer a developer if they don't even know the keyboard shortcuts for copy and paste (even if not for code)?6
-
on an interview for an apprenticeship as IT support, got a question that should've been simple, but got dragged to far beyond. "what if you can't figure out a solution to a problem? what if there are no colleages to ask? what if google isn't available, what if the nothing in the universe can solve it?"5
-
So for anyone else out there that is learning WPILib for FRC. If you ever use ctre/Phoenix motors (don't know if that's a rule) DO NOT EDIT <ctre/Phoenix.h> HOLY
-
listenables, singable, crap = select(spotify.discover_weekly,out_loud,[])
for song in listenables:
if song.style == 'oldie':
print "Seriously Spotify? Do I look like I'm 65?"
time.sleep(5.0)
out_loud.append(song)
if song.style == 'cool':
time.sleep(2.0)
continue -
I used alot of if checks to convert category name to category ids for sql query. For eg.
/Index.php?cat=venue
And I handled it like
If($cat=='venue')
{
$cat =1;
}
And so on.1 -
When asked if i will code for stock options or profit shares, i might remind the prospect that in most countries, i would own the entire codebase if working for no pay. Most work for hire agreements put ownership of the system and code into the paying clients name, as i understand it. so if youre not collecting pay, you would own (possibly the only copy of) the code. If that doesnt scare the client away, maybe i should remind them id be legally allowed to sell the code to their competitors. Then do so if i see a bettrr paying client (i.e. any paying client) If anyone knows if im making legal sense id appreciate it.
-
Suggestions for a book (if possible german) about php design patterns like mvc, singletons, dependency injections etc.?
If explained good it can also be in another language instead of php. -
Poll: What OS do you use for development? If your os isn't in the comments add it, if it is ++ the comment mentioning it..16
-
Project deadline is this weekend, I can make it if I put OT in for the next few days. But not sure if I should. Thoughts?6
-
If you cannot forecast something, it's random. If you cannot predict my actions, then for you, I have free will. Let's reconsider when you can.5
-
If you're willing to pay $19 for a cloth to clean your device, are you also willing to just give me $10 for the hell of it? I'll even email you back a picture of the apple logo if it sweetens the deal.1
-
That unsure feeling when you have none left to study, and you don't know if you're too prepared for the exam or if you just have no idea2
-
"If we make the changes ourselves, we won't have to pay for the changes!"
"But what if something gets messed up?"
"Then they'll fix it for free! Either way, we don't have to pay anything! I'm friggin' brilliant!"
"Why would they fix it for free?"
"Can't hear you over the bonus I'm giving myself for my brilliant idea."
Found this while browsing comments on Clients From Hell.2 -
Legacy code in java :
boolean recursiveMethod(args){
Int i= 0;
Boolean doublon = false;
For(--whatever the loop--){
If(condition1 && condition2){
If(i++ > 0){
doublon=true;
Return doublon;
}
}
}
[...]
}5 -
thinking of learning a new programing language anything easy for a python "dev"?
would also like if jetbrains has an ide for it6 -
Some developers just want to annoy other developers
`var IS_DEV = true
if(!IS_DEV) {
//do stuff for production
} else {
//do stuff for dev
}`
Why don't you just do `if(IS_DEV)`...1 -
If one can claim experience in a language if they have written a hello world code, can I write that I have 5 years of experience, if I write that same hello world code every year for 5 years in a row?4
-
It's kinda hard if you're a beginner and don't know if you're doing things with good practice...
I would really appreciate if someone could review my code and tell me if I'm on the right track: https://github.com/Dollique/...
For Info: I'm doing this all by myself for a learning purpose and I know I could easily use a finished framework :)
Thanks!1 -
If there is WIne for windows emulation why isn't there any Line and Mace for emulating linux and mac os?3
-
Im doing a project for science as what would happen if a person went on an anorexic diet for a month suddenly.3
-
Did anyone left academia for industry did it work it very well for you? If you back do you think this transition harm?5
-
Firebase:
I'm facing weird behavior. I have an app on Android 7 always received notifications evven if not used for a week.
On Android 9 if not used for three days it stops receiving anything.
Anyone knows what could be wrog?8 -
!rant
Does anyone know of any open source personal assistants that aren't storing data? Im looking for a replacement for Googles pa on Android but am also curious if one exists for desktop. If one of those don't exist let's get on thaat2 -
Just something I've been thinking on for a while:
How could programming be done if we couldn't use ordinary if-statements (but functional set operations such as map, filter, with an if- in the lambda function etc. is alright).
Could it work? Also would it be possible to reduce the amount of while loops by using functions for most of the "loop situations" as well?4 -
For a Christmas flight.
Not the prettiest currency :)
If there was another airline available for my flight I would use them. -
have you tried https://kretes.dev/? it looks like interesting tool for ts development. I wonder if you used it for a real project?2
-
A RxJS wrapper for MySQL queries.
https://github.com/inf3cti0n95/...
If anyone has any suggestions/reviews for it.1 -
OpenPGP or GPG?
++ first comment for OpenPGP, second for GPG (shameless ++ farming as well)
Post relevant fingerprints in comments if desired <34 -
Are there any services that will compile your apps for iOS? I mean if you don't have an Apple computer yourself. If I use something like react native I could only compile it for android.6