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 - "variables"
-
Declare variables not wars,
Build packages not walls,
Execute programs not people,
Throw exceptions not stones.12 -
My senior dev, shortens “analytics” into “anal” variables. Iam literally dying while Reading through the code!13
-
Math: the imaginary unit is i.
Electrical engineering: no, it's j.
C hacker: hands off my loop variables!13 -
Variables vs Deadline
Wk1 : int Store_Account_Balance ;
Wk3: int StoreAccountBalance ;
Wk5: int StoreBalance ;
Wk7: int storebalance ;
Wk9: int balance ;
Wk11: int bal ;
Wk 13: int b;2 -
DevConfession
I often google names for my variables to see if I find a betrer fitting synonym that reads better14 -
In all honesty, if there was a course on giving variables good, informative and not completely stupid names... I would take it.13
-
DevOps is like development, except there is zero test coverage, everything is a race condition, and there are a million variables declared as global. 😡8
-
Just finished writing a script with all the classes and variables named after the characters from Sherlock Holmes. I regret nothing.7
-
Please for the love of god name your variables in a sensible way! How the FUCK am I supposed to read your shitcode if you decide to write 6 (!!!) nested loops with variables each named by exactly one character. With no comments whatsoever!
I would rather crack password hashes than this nonsense.13 -
Improving an old JS code, replaced all 'var's with 'let's. Previous guy wrote a comment above his variables, which is now saying:
"letiabes"17 -
Just spent the whole day rewriting a 5,000 line function with variables like num55 or num287. These variables constantly get re-used for different purposes and overwritten at will.
Everything is now broken. Including my spirit.4 -
"How to name your variables and functions so they can be understood by other humans" should be a mandatory lesson right after someone writes their first ever computer program.15
-
When you have trouble naming variables, begin writing the comment for what it should do and the name will come to you :)7
-
Idealistic goals:
1. Learn python
2. Start a project and see it through
Realistic goals:
1. Learn how to initialize variables in python
2. Make plans for 20192 -
CTO wants all variables in file to be same length. You cant have "start" and "stop". You must have "start" and "cease".16
-
Windows environment variables dialog. What the actual fuck. For like 15 years you couldnt change the size of the fucking window.2
-
I just love when someone writes variables in Polish/German/Russian/Chinese/Esperanto/Klingon or any other language that is not an English33
-
To all the programmers calling “ToString()” on variables that are already of type String....
Please stop.22 -
Never name variables with single letters. Make them at least two characters, so they're searchable5
-
why the fuck people name variables endig with numbers? why? how the hell do you even figure out what's what?
checkStatus1
checkStatus2
checkStatusMyAss10 -
You know the code is in bad shape when you see variables starting with "get":
Integer getDataBlockSize;4 -
Deciding a domain or project name, got to be the next worst after naming variables and exposed method names14
-
Unless you had a horrible accident where you lost most of your fingers, I don't understand why anyone would do this. I had to double check I wasn't looking at obfuscated code.
```
String a;
String flag;
String tp;
String n;
String chn;
String lt;
String lg;
String bid;
String d;
```11 -
I absolutely hate when people name local variables something like temp or tmp. I was working on a project with a guy who did this with almost every local variable and it was really confusing to have like 7 variables with the same name in the same class.
Please use informative names!7 -
Global variables in JavaScript everywhere... Being accessed by every file, every function every class... Everywhere....5
-
If your language supports private member variables
And it's not part of the language style guide
DONT START PRIVATE MEMBERS WITH AN UNDERSCORE.
Shit is ugly as fuck.17 -
Classmates having trouble with their mess of spaghetti code and improperly named variables (I saw variable names like "poop" already).6
-
If naming classes, methods and variables in your (not english) native language seems like a good idea, please get another job.9
-
Use profanity labelled variables... like the $penis I just used in my code... (makes coding fun, until u get "undefined variable: cannot find $penis on line 31")1
-
Never name two different variables with the ALMOST same name or It will stop your work for a hours. I named one "lang" and anothers "langs"2
-
Don't you feel confused if someone in your team declares variables like this?
TextArea textarea1, textarea2;
Component component1, component2, component3
textarea2.setText(textarea1);
It's an identifier for a reason, make yourself identified!3 -
Even if interdimensional monsters are looking for you... never forget to naming your variables!
#Bob4 -
Worst project I had was when I was asked to just copy-paste code and change the names of variables. Yeah, that's it, nothing more than that.5
-
Confession time.
I mix naming styles in my code. Some variables will be camelcase, some will have underscores, some will be all lowercase.
Classes are always title case though. Anything else is barbaric.undefined sorry not sorry it's a real problem some variables feel camelcasey some variables feel underscorey it's worse in javascript for some reason4 -
javascript... the language where your code works even if you forget ';' and declaring your variables.
wtf7 -
Best Practice: variables with meaningful names.
Me: variables named after stuff from the Marvel universe.
End result: Debugging after 6 months. WTF is mjolnir6 ???2 -
Programming challenges:
Easy: Hello World!
Medium: Matrix multiplication
Hard: Artificial intelligence
Impossible: Coming up with meaningful names for variables and scripts...2 -
Step by step here:
1. Choosing a stack
2. What to put where(folder structure)
3. Naming stuff(variables, classes etc etc)
4. Finish what I started.1 -
Sometimes naming variables and classes. Because the name should be relevant, short and understandable. 😊2
-
Hey, I´m through with the Win10 update.
That was fast. And no problems! Everything seems to be working.
Wait...
Android SDK not found...
Java not found ...
Seems all my environment variables are gone.
Even better all the standard variables are wrong too.
My Home Drive is now "H:" ?
What the hell?9 -
What kind of variable conventions do you use?
timesincereseat
TimeSinceReseat
timeSinceReseat
TIMESINCERESEAT
TIME_SINCE_RESEAT
time_since_reseat
global{'tsr'} # so nobody can read it :)12 -
ah yes, i'm a VERY kinky Java dev
my favorite NSFW act is naming my java variables shorter than their data types11 -
Var X1 = "" ;
Var X2 = "" ;
Var A = "" ;
Var A2 = 1;
...why. Just why ever name variables like that.1 -
Welcome to PLC development! Your first thing to do is find out whta these dozen global variables do that are used by several tasks in odd places.11
-
the number of ++ in devrant and the -- in stackoverflow I get , are random variables with equal distribution.3
-
Last night I had a panic attack and woke up in cold sweats because in the dream I had I was constantly using the wrong variables in the wrong places...
-
Superpower to instantly create variable names every time I need to declare a new variable based on the perfect matching with the code being written..
-
Parents - It’s so hard naming kids you know.
Me - At least it’s an one time job, try naming VARIABLES.6 -
*Java*
Friend: So I can have variables on interfaces?
Me: Yeah, just that they are final and static
Friend: ...2 -
People who reuse variables.
Yeah, sure, let's just go declare
number1 = g * 86;
Oh and 10 lines down let's reset it
number1 = 0;
I WILL FIND YOU. I WILL DESTROY YOUR SMALL RAM 'ed THING YOU CALL YOUR COMPUTER.
Variables should be made for one purpose and one purpose only.2 -
My Windows friend: They say I need to setup Environment variables!!
Me: Oh! I've done that before.
After 5 minutes...
Me: How do I get into that Advanced Settings???!!!4 -
When you spend so much time using PHP that you start naming variables with $ in other languages without releasing.
bool $haha = true;
if (haha) ...
haha is not defined.3 -
People who name variables totally inappropriately and without comments should serve time in prison8
-
A project at work which is based on blindly copying other projects, empty catch clauses, a static class for global variables, and incompetence.1
-
I hate people who put underscore at the beginning of private variables names in Typescript. And I don't care if they have their reasons, I just hate them.7
-
I love that JS allows for variable swapping,
thanks to structuring / de-structuring.
```JavaScript
[ a , b ] = [ b , a ]
```
Thats all, lol.22 -
Being a programmer and had to read scientific papers is the worst. the way they name variables in the pseudocodes making me puke.3
-
Some people in the company (3000+ people) didn't know how to use static variables (c#) in a thread-safe manner which resulted in production problems.
Only possible way to solve this in management's mind?:
Disable the usage of not read-only static variables via quality control...1 -
Keeping my layer names as clean and explicit as my variables when I am designing.
I will never leave an "New Layer 1" untouched!2 -
When I was in first year, I let my classmate copy my source code for our VB program in order for him to save the semester. We both agreed that he should change the variables, etc first before submitting the project.
GOOD NEWS: He literally changed the variables.
BAD NEWS: We had the same interface on our project.
It sometimes haunts me, until today.3 -
Challenge☕️💻🎊
_________________________
Changing value of two variables without using third variable.16 -
just saw a production level code, all the fucking variables in the code are in capital letters🤪😵😵😵2
-
I legit had an interview once where he said
"Ok next question. Static variables...are they good or are they bad"
The funny thing is I can totally relate to working with someone who thinks static variables are bad but it's sad to see this is how far we have fallen.7 -
My definition of hell?
Being forced to debug nested callbacks abusing global variables & closures generated from from reflection...6 -
Windows 10 likes to set my Temp variables back to C after an update, as well as enabling Superfetch and Prefetch. I made a batch file fixing all that shit...1
-
When folks install Bootstrap and then continue to hack directly in the Bootstrap source files instead of just overriding the Sass variables...2
-
I named an alias variable feedItem in my database query but I keep accidentally typing feetItem. I have no one to blame but myself.1
-
I was writing some migrations and I had to do THIS. Could I have named my variables differently? Didn't wanna... 😈7
-
To all the grown up devs. Since you have had quite an experience of naming variables and side projects, did you find it easy to name your own child? 😃21
-
Spend two days struggling with environment variables not being available in python script running on a docker container, tried providing environment variables directly, not working, tried providing a env file, not working
.
.
.
Turns out I was passing variables to the wrong container fml2 -
Metasyntactic variables, you use them, but do you know their origin?
This should be essential programmers knowledge:
https://ietf.org/rfc/rfc3092.txt/1 -
Creating a json in Swift!? Not a joke. Real code I had to deal with... (just changed variables and text)2
-
I suppose I should stop randomly naming variables and keep the randomness throughout the whole project
example: int psnhiwovb;
...I still have a project with such random names.2 -
Only just noticed that CSS has variables - when the fuck did this happen and where the hell was I when it did!!!!6
-
I think the best moment of writing a code is removing curses from comments and renaming variables from like "FUCKING_ITERATOR" to something more normal after everything finally works.
-
Can someone explain what's so wrong with CSS?
My only issue is you can't set media query variables - which is totally not an issue with cssnext or similar..3 -
I feel naughty when I put variables half way down a function in javascript. C is so strict it makes javascript a joy ride 😂1
-
Using the console to print out variables is a perfectly valid method of debugging for new developers: often, it can help you resolve the problem faster than using a debugger.2
-
Yay ...
No more !important in SCSS...
All colors pulled from variables...
Such code ... Very clean 😂 -
300 global variables.. THREE HUNDRED FUCKING GLOBAL VARIABLES?
Are you for real?
Now let me check the line numbers again..
hmm.. line 97 to .. yep line 410, just a few new lines to seperate some of them or.. group? Idk, I've given up on trying to understand those.
Now you may ask "But ThatPerlDeb, where did you see this and what was the intention?"
Low and behold, take a chair and I may explain this to you.
First of all: Fuck the dev that wrote this!
Second: Fuck all the devs that kept up with this practice or whatever you want to fucking call this!
Now, the application is our POS system that our customers can use for a monthly fee (That this piece of garbage even requires payment is disgusting) but anyway..
The global variables sometimes are declared for labels, sometimes for some frames, sometimes just for random values to be there.
We're using Perl for the POS system and Perl ain't the best at OOP, so in the dev's defense I can understand why you'd use a few global variables, but not fucking 300!! FUCK OFF WITH THIS BULLSHIT!!
So now I'm going through this torture slowly but surely deleting globals and putting them into some sort of scope and always MANUALLY test if something broke. Again, this company sucks ass and there's nothing that could even be considered a "unit test" or something like that, so fuck that, too.
After two hours I've brought down the count of global variables to about 260, so there's progress being made..
But then, there comes more!
"But how???" you may ask, and you're right, I've asked that myself.
Now to resolve the global stuff in each file some of the initial globals are used, we got about 20-30 files which do different stuff, all fair and square, at least there was an attempt at seperating functions but god this mess is so fucking fucked up. So in order to "safely" delete a global variable I have to check if any of the variables are used in another file, and if so, in which scope and how they are used.
Spaghetti would be a compliment for this fucking disgusting piece of utter bullshit.
Let alone the code quality of this "code"
Indendation? Dafuq is dat?
Scope? Nah, we got everything global anyway
Function size? Well, some are 5 lines, some are 900 lines, who cares anyways, right?
I'm so fucking glad once I leave this shithole, for real.6 -
I'm angry today. The customer's code reviewer blocked my delivery because variables of type "Context" are abbreviated as "ctx".7
-
Passing variables by reference in nested functions using PHP.
If you miss an ampersand your afternoon is very long.
😝😝😝😝😝4 -
Here's a multi folder drag and drop batch script that keeps the first 1000* pngs* and deletes the next.
*Abusable variables :)
https://github.com/bennysway/...5 -
When you spend more time renaming variables, class names, properties etc.. to achieve perfect code and patterns rather than actually solving the problem. I'm bored now...
-
COBOL, Clipper, DBase, FlashCode, DOS 3.30, Novell, dot-Printers ... Now learning Swift... Emojis for variables! ... I'm to old for this..... Damn millennial languages.5
-
This quote made my day.
"Dependency Injection" is a 25-dollar term for a 5-cent concept. [...] Dependency injection means giving an object its instance variables. [...]."2 -
This Safari Bug is sooo bad, really hard to find it. (It initializes new variables with the element where id and variable name is the same, why?)10
-
Being assigned an old system that has scarce/cryptic documentation and uses global variables for everything. Not a maintenance nightmare at ALL.3
-
TIL pointers are slower than normal variables, and it makes a lot of sense, when previously I had thought the opposite.7
-
today when I was asked to fix some code I couldn't help but count if those variables where used more times :D2
-
please for the love of all that is right in the world...name variables something useful. ll_j does not help me.4
-
University: "It is important to distinguish between read-only variables and editable variables. They make it easier to find bugs if you're changing a value that should not be changed"
Me: changes all `const`s and `val`s for `var`s every time I get a re-assign error.2 -
if(isset($form_state['concert_fieldset_container'][$key]['concert_fieldset']['broadcasting_fieldset']['features']['comments_conditions']) && !empty($form_state['concert_fieldset_container'][$key]['concert_fieldset']['broadcasting_fieldset']['features']['comments_conditions'])) {
$variables['concerts'][$key]['field_concert_comment_conditions']['value'] = $form_state['concert_fieldset_container'][$key]['concert_fieldset']['broadcasting_fieldset']['features']['comments_conditions'];
$variables['concerts'][$key]['field_concert_comment_conditions']['fieldDefinition']['label'] = $this->give_label($type, 'field_concert_comment_conditions');
}
THIS SHOULD BE ILLEGAL! FUCKING BURN DRUPAL TO ASHES AND SHIT ON THE TOP OF IT!!
God fucking damnit 3 months left before I leave this place.7 -
Well I program in PHP, JS and C#.
Weak typed variables are literally the worst thing ever.
In C# I particularly hate the way callback as handled9 -
Being forced to rush code, then waiting for merge approval from your US based approver at 3am while they add comments to the review complaining variables aren't final.
-
This Udacity course I'm taking for Android development thinks I'm too fucking retarded to use Variables. They also "taught" me that i++ exists. Java Knowledge is required for the course.
-
*writes programs with variables for arguments*
Runs.. Crashes
*removes variables places exact same code in parameter list*
Runs.. Succeeds.
I don't understand you my GPU -
Today's comment of the day:
# Begin OMFGWTF
...
# End OMFGWTF
10 completely separate variables all set to the same damn constant value. -
I have this classmate in college that names all his variables and classes like this: "seosX". I once spent an afternoon of my life helping him with this weird error he was getting running his program and the class name and file didn't have the same name...
I blocked him from all social media and my life. My IQ has doubled since. -
The first fruits of almost five years of labor:
7.8% of semiprimes give the magnitude of their lowest prime factor via the following equation:
((p/(((((p/(10**(Mag(p)-1))).sqrt())-x) + x)*w))/10)
I've also learned, given exponents of some variables, to relate other variables to them on a curve to better sense make of the larger algebraic structure. This has mostly been stumbling in the dark but after a while it has become easier to translate these into methods that allow plugging in one known variable to derive an unknown in a series of products.
For example I have a series of variables d4a, d4u, d4z, d4omega, etc, and these are translateable now, through insights that become various methods, into other types of (non-d4) series. What these variables actually represent is less relevant, only that it is possible to translate between them.
I've been doing some initial learning about neural nets (implementation, rather than theoretics as I normally read about). I'm thinking what I might do is build a GPT style sequence generator, and train it on the 'unknowns' from semiprime products with known factors.
The whole point of the project is that a bunch of internal variables can easily be derived, (d4a, c/d4, u*v) from a product, its root, and its mantissa, that relate to *unknown* variables--unknown variables such as u, v, c, and d4, that if known directly give a constant time answer to the factors of the original product.
I think theres sufficient data at this point to train such a machine, I just don't think I'm up to it yet because I'm lacking in the calculus department.
2000+ variables that are derivable from a product, without knowing its factors, which are themselves products of unknown variables derived from the internal algebraic relations of a product--this ought to be enough of an attack surface to do something with.
I'm willing to collaborate with someone familiar with recurrent neural nets and get them up to speed through telegram/element/discord if they're willing to do the setup and training for a neural net of this sort, one that can tease out hidden relationships and map known variables to the unknown set for a given product.17 -
Turns out our environment variables are not managed by environments but putenv/getenv instead ... great!
-
Having a static class in C# with 20 variables of generic type: ArrayList with zero documentation to know type of array content 😒1
-
If I have four unknown variables, x, y, j, and k, but know the values of x*j, y/k, and k/j, and x*j == y/k
How do I go about getting the values of the individual unknown variables?10 -
"I don't think we should be playing with our privates {variables} like that" - framework designer
= context =
It was noticed that we have too many setter functions to change private variables just to do unit tests. So we had a small meeting to discuss what to do about this.
Options:
- don't do the test
- ignore till another time (ie: keep the functions till its a problem)
- put the variables into a provider
- use reflection (the above quote was a reaction to this option)6 -
!ok
A guy just told me that printing variables to check for errors is better than debugging!
I am done talking to him 😂6 -
"There is a reason that we keep our variables private. We don’t want anyone else to depend on them. We want to keep the freedom to change their type or implementation on a whim or an impulse. Why, then, do so many programmers automatically add getters and setters to their objects, exposing their private variables as if they were public?"
-Uncle Bob, Clean Code.1 -
I think for my next project I will give my classes and variables interesting names, so when anyone views the source - they can be entertained.4
-
I don't get why annotations are even allowed for local variables.
Reflection doesn't even work for local variables.
What's the entire purpose to annotate!!!
Am I missing something!!!1 -
The moment you're declaring variables but keep writing "ASS" because you're typing too fast...
Happy Monday!11 -
Just found a crystal subreport with 33 shared variables. For those who don't know what that is (lucky), they're super global variables that exist everywhere.
Please send help. I'm supposed to refactor this...19 -
Spaghetti code
Mixing about 27 functionalities in an 800-lines-function accessing global variables.2 -
Found two different variables used in two different ways "profileCard" and "porfileCard" Sweet baby jesus1
-
Erlang... variables you can't vary? WTF!
Writing JS two weeks later...
const a =1
const b = a + 1
Why would I ever assign over a? Pfft.
const c = b + 1
...1 -
I seriously hate ppl that write vague variables name. It makes so hard for me to understand ur code !2
-
FML having to take on and support a python test framework that looks like it was written by a junior C embedded dev without a mentor.
- Imports everywhere in the code
- No abstraction or OOP
- sys.path.append fest (broken imports of course)
- Global variables fest
- No docstrings
- No readme
- Somehow mixed with a jUnit test framework as well
- Uses Windows environment variables profusely
- Pycharm has a stroke when I open files from this project5 -
Developers who insist on naming all variables in a program after characters from Twilight. Ugh. You know who you are... 🙄🔫1
-
I did some general searches in the actual project. The names of 22 variables and attributes I created contain the word 'shit', and 5 contain 'fuck'.4
-
when you're working on a project you hate, and start naming global variables in profanity ($dick , $shit , $yourMother, etc...) to make it more enjoyable2
-
Launching the company's platform setup script:
"we added some variables to your bashrc. please source it and re launch this script"
"source .bashrc"
"we added some variables to your bashrc. please source it and re launch this script"
...
You had one job. -
I hate naming variables.
DEVICE_INPUT
Is it input of external device or input of my device? Should I read from it or write to it? Help... -
Always always always restart command prompt after changing path variables!
Learned this the hard way after struggling for like 2hrs1 -
Introduce lot of temporary variables and print statements while coding and won't remove it later...🤐
-
Another student pushed code to Github. Asked why there wasn't a single comment. He said there was no need since he used good names for his variables... *sigh*
-
There are mainly two cases (up to my knowledge) for naming variables. `snake_case` and `CamelCase` but some how we managed to add another one. Snake_Camel_Case_Combined. e.g. That_Weird_Variable_Name is so annoying to use.10
-
In Java, I use dummy variables to set breakpoints and get around the return unreachable compiler/Eclipse check2
-
I'd two roommates that when they get hungry while coding they start to name the variables like p*ssy, f*ck, d*ck. One day, they where late to send the project to evaluate and
forget to change the variables names. The teachers didn't like that 😂 -
I looked at an SQL server today from a customer, talked with one of their devs and he said that he's unable to understand why the server misbehaves... All (!) queries were optimized, but they have 'big data queries'... Migraine started, I had a very bad feeling. Monitoring? Nooooppeeee. Migraine kicks in. Connected to server. SHOW GLOBAL VARIABLES...
After a bit of scrolling I found a lot of misconfigured variables (e.g. extreme large join buffers, unrealistic buffer sizes), high slow query count (nearly 60 % of COM_SELECT) and a few variables that were unknown to me.
Then came the version line.
5.0.46
Yes. 5.0.46.
Big data? Well... 30 GB of usage data.
I called the company back... The dev told me sternly that this was the production server (I had hope...) and that I lie - neither the version, nor the variables could be the problem.
A coworker had to verify it and our manager had to do the communication... Worst, most traumatic working day I ever had. -
I saw one of my coworkers do a multi step bus ticket purchase in one file (we use angular 4) instead of using components he just hide and show the sections, resulting in a class that have about 2000 lines of code, unused variables, unused functions o just functions that console.log something, and many many lines of declaring variables. I tried to fix that, but this crazy deadlines were fucking with me3
-
Isn’t the usage of environment variables common for golang apps?
I interviewed for a company which made me develop a golang backend service and I used environment variables for sql connection strings and client and secret IDs and all.
When I submitted them the project, the feedback was that the tech person isn’t familiar with dotenv configuration.
Any inputs about any other way this could’ve gone?3 -
In high school for an assessment we all had to make a simple game and we to plan it first and then program it. In the planning stage we had to list variables and functions used and whatnot I'm my planning sheet I was given I had "variables modified by user" which basically meant data inputted buy the user stored in a variable with only one player name variable listed in it and everything else in my game was being computed another runtime and my CS teacher told me I didn't have enough user inputted variables and I explained that it didn't need any more she said "so you're telling me the user enters their name and the the game just plays itself?!!! " :|3
-
I was sitting in Geometry, and i realized something. Geometry fucking sucks, i would pick Algebra any day. I love using letters it reminds me of varibles and its not thay bad5
-
Am I the only one who likes to see milion variables? Like I assign variables for everything. :) If yes, is that normal?3
-
So I've been tinkering with this idea since this morning:
There should be a dictionary for developers, to help give meaningful names for variables, functions.
With some pipe like interface to narrow down possible names,2 -
Out of everything in this assignment, I just know I'll lose more marks for shitty variable naming than any missing features.
Commenting? Perfectly acceptable. Use of functions and classes? Perfectly acceptable.
Variable names? perfectAcceptableMaybeFileOneButAsAString
I don't get how I'm so shitty at it! I currently have shit like file input, file input as string, file input as vector, I didn't know that would be the hardest part!1 -
Dev on my team likes to declare his variables types System.Int32 instead of int. Drives me crazy!!!2
-
Trying to do an LFS build on a computer that keeps restarting. Need to mount the partitions and export variables all over again (ノ=Д=)ノ┻━┻1
-
Noob question
I’m trying to deploy my front end web app (my personal website) to GitHub pages.
In my app, I used react environment variables to store a api key I need in my app.
When I deploy my app with GitHub pages, will the app still be able to access the react env variables?
Let me know if that doesn’t make sense. Thanks!7 -
Is there a sane way to allow external styling of vanilla web components' shadow dom? Right now I do it by using 30 CSS variables, but I feel like there should be a better way.7
-
Maybe I shouldn't code today... or get more sleep.
Every single bug I had today was due to referencing the wrong variables... and not including 'this.'
How do you guard against creating variables with the same names in method and class scope?2 -
Is storing-of-data-in-classes-as-static-variables-to-access-them-later-on-from-one-page-to-another a good practice? It always seemed fishy to me...5
-
Day of days! Insomnia supports environment variables! And has for a long time! I just missed it is all!
-
My AP Comp Sci teacher back in highschool. She spent a lot of time making BS assignments to get me out of bad habigs. (Uninitialized variables, public variables in Java, bad documentation, cryptic variable names [x, y, string q], etc.)
-
Before you tell me shit is real, kindly provide the variables.
```
def real_shit(shit, real):
return shit is real
```2 -
Compile and debug program, no local variables show.
Clean project, debug program, build errors.
Thanks Mr. Compiler -
Ok, here is something boggling my mind - just as much as naming variables boggles my mind.
Can you guys share your notification settings?4 -
People that we have to work with man! This one guy I worked with once wrote a base script that had 100ish variables and nothing else that got inherited by another script containing again nothing but more variables that got inherited by another script which you guessed it right has nothing but more variables and this went on for about 6 more scripts. A total of around 600 variables and no functions or anything. The final script had all the classes and functions with yup that's right more variables. That person is the tech lead of a game dev studio now.
-
Using variables names like asd, qwe, a, x in demo/tests. But using "Foo, bar" before shoeing to anyone.1
-
(Fork of the current Chuck Norris wave)
Jack Bauer can assign values to undefined variables just yelling "Gimme a name!!!!" -
Has anyone else ever used Matlab and wished other languages had a similar setup? The coding window, repl, variables window and the debugger, all of which are constantly connected?6
-
can't use IDE automated refactoring to extract method because we can't figure out the types of parameters and variables
fuck you typescript, javascript, graphql3 -
To whoever broke Chrome 79's DevTools hover on variables: you broke my heart
https://piunikaweb.com/2019/12/...1 -
decimal discount = line.Discount - (line.StandardPrice - line.CustomerPrice);
2 fucking hours working out what and why the fuck this line of code. Fml -
the main issues for DevOps seems to be environment variables.
Cuz thats what they always talk about. I mean.2 -
one of game development pros .... you can name variables stuff like "fishArray"
i know it's silly but it made me giggle4 -
It's always the same mistake I do: writing bad words as variables or in comments. NEVER DO IT YOU WILL ALWAYS REGRET IT2
-
Clinician : How did you choose what variables you put in that multivariate analysis?
Me : ... don't ask, just be happy it's significant -
Ayo, I just started using shell variables for git branches......
No more spamming tab after typing feat/bug/rele/etc.. 🙏1 -
Do you put Caps to public variable ?
My IDE was doing caps to public variable but someone told me that he was wrong it's not caps for public variable only functions.9 -
Today a collegue ranted about that he needs 96 variables in his code and also for the database querys and told me that's not possible to do it without so many variables... I just thought wtf.. I definitely need a new job!
-
That frustrating moment when you create a source file with random name and later which becomes the final name coz changing the file name and linking it becomes so damn vauge.
-
How to keep an imperative programmer busy for hours?
tell them the syntax for swapping two variables in Haskell is:
let a=b; b=a in <exp>3 -
bash....................my fucking head in
how the fuck do quotations work for bash variables
='self','unsafe-eval' becomes self','unsafe-eval or wtf???1 -
Work today as a student: trying to unterstand CERN code - 50 member variables, no local variables - can you please practice some c++??
-
The web application which I'm making is fucking big for 1 person and suddenly I'm out of sensible variable names :@
-
rant. Tried to fix a weird bug in gamemaker, with some unfamiliar technic, resulting in another bug. Then one hour later, still no solution to that bug until I look around in the code seeing that I already used the exact solution that fixes the first bug.
In gamemaker there are scripts. I tried to forcefead the fucking script with a variable when calling it. Inside the script, there where already variables working fine with the extension or what-to-call-it:
other.(insert variable).
And that pisses me off. -
my head complains about lack of trigonometry and too many variables. and it's just about drawing and positioning some circles. no 'real' math.1
-
Why the fuck does the Execute Process Task from SSIS in Visual Studio fail when trying to use variables in an expression?!?
I've been debugging this shit for hours and have made absolutely no progress. There's no apparent workaround.
Fuck you Microsoft, for leaving a known bug in VS for over a decade, where the expressions are surrounded in double quotes, negating the entire purpose of using an expression for variables!!! 😡2 -
Just name your variables:
...
$6511513766a513cab6ca628098f9cc24 = ...
$689dbc13b1848936f81ddd607eaeb569 = ...
$6ae11661178a761ab1263de1786762b3 = ...
$928ec0279424ef02f6e69fbd97e72cb9 = ...
$3335fe407464b8902032b89657b35f7d = ...
$4924b36e3440d3ff6bf3a4733bca4e43 = ...
$7447d37e259d1189c9baa756b44f903f = ...
$5e6e7cd6d0a7010aed0315264af2c65f = ...
$0bcb4da51bbd710c0c1da816fe266ecc = ...
$fc1c388526a028c98e859f5e68105282 = ...
...
...and your app is super secure.3 -
An overview of GNU make automatic variables and helpers to make them easier to grasp: https://monades.roperzh.com/redisco...
-
Installed NVM with administrator on my new assigned device by company. It has windows 10. I set environment variables and did everything. But the laptop still ain't recognizing node 😤2
-
Which syntax is "correct" TypeScript syntax ?. I prefer the first one. But what's about guidelines ?
Note for UpperCase variables: yes I know. We use that syntax to differentiate public and private variables. (Yes I know that doesn’t exist in JavaScript)8 -
Variable Naming process
-------------------------------------------
Fetching a data of Counties into a variable using Fetch API.
Variable Name: countyData.
The code review is going to be interesting.4 -
Do declare all the variables you're going to need at beginning of the function, or right before you're going to need/initialize it? What do you prefer.3
-
When the college, that started at the same time as you, needs your help declaring variables after half a year in the company...
-
when you haven't touched or changed your eclipse environment variables
but eclipse decides fuck it, can't fucking find em , get a separate unrelated error -
That point where you start to think about decalring variables once globaly to save space in memory ...1