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 - "style"
-
Colleague: "Python is slow..too much slow."
Then I look at the code:
Eight nested for loops, inside two of them, two function calls and three list comprehension. That function has 2 nested loops and two "objects.all()" Django method, plus a list comprehension too..
Yep, Python is slow.20 -
Found this site today and want to share it. Algorithms explained Ikea style.
https://idea-instructions.com11 -
"Use whatever brace style you prefer.
But not this.
Don't do this.
Seek help instead of this."
From @UdellGames in twitter19 -
"I'm a full stack dev."
<html>
<h1 style="color: red">
<?php echo("Hello world"); ?>
</h1>
</html>
...16 -
I really hate people who prefer this coding style:
if (condition)
{
// something shitty here
}
Instead of this:
if(condition){
// perfectly clean code
}42 -
I found a really neat way to toggle two implementations using C style multiline comments.
https://twitter.com/_Gaeel_/status/...3 -
Put it on a poster:
"It's ok to:
say "I don't know"
ask for more clarity
stay at home when you feel ill
say you don't understand
ask what acronyms stand for
ask why, and why not
forget things
introduce yourself
depend on the team
ask for help
not know everything
have quiet days
have loud days,
to talk,
joke and laugh
put your headphones on
say "No" when you're too busy
make mistakes
sing
sigh
not check your email out of hours
not check your email constantly during hours
just Slack it
walk over and ask someone face-to-face
go somewhere else to concentrate
offer feedback on other people's work
challenge things you're not comfortable with
say yes when anyone does a coffee run
prefer tea
snack
have a messy desk
have a tidy desk
work how you like to work
ask the management to fix it
have off-days
have days off
(From UK Government Digital Service: https://gds.blog.gov.uk/2016/05/...)7 -
As a German developer living in Germany, I am used to write my code completely in English. In all of my former companies that was also the norm. In one company, we even talked completely in English with each other to a point where even if only German people where in a room, they would default to English at one point in a conversation because it became second nature to us.
(That company was very international and we had a lot of people from all over the world working there.)
Now, I work at a new German company that focuses on the German market. And for some reason I failed to ask them:
Do you write your code in English?
Because that's the norm, isn't it!? I just assumed it to be the case.
Nope! This time it is a mess of German and English term intermixing in glorious abysmal ways I never thought possible.
Sometimes we translate terms, sometimes we don't. So you have to wrap your mind around collections of words that COULD mean the same thing unless they don't. Best case, you have two words for the same thing, but I've seen up to five words (or abbreviations) to describe one business entity. Madness.
And don't get me started on the plurals. In English, it's almost exclusively: add an `s`.
In German, the singular and plural can be the same (e.g. all nouns ending with `-er`) so tough luck determining if you are on an object or an array of objects. (Weak typing language in use does not help either but that's an entirely different rant.)25 -
A nice word to all developers who say stuff like "I know I write bad code, but what does it matter.":
Please try to think in a logical way about what this part you are about to write has to do. It is much more difficult to rewrite code, the longer you wait after you started to code.
Bad code can have big impacts on different levels.
For example financially: Bad coding style or program structure can lead to thousands or much more in losses because of nasty bugs, bad performance, expandability or maintainability.
Think about quality over quantity.
A little example: I had to work together with other coders to meet a fucking tight deadline. The last day we coded like crazy and these dudes started to apply styling changes (CSS) directly as inline styles to the HTML code, instead of taking a few minutes more to find where in the CSS files they had to make the changes.
At the end of the deadline we had more stylingbugs than before. It took us another whopping 3 hours to fix what they had done.
So next time you code: Thinking before coding is mostly faster than just straightahead coding and fixing at the end. 😉4 -
I love group projects.
There is no greater feeling than, after you set up the repository with the first code files, your team mate changes the indentation and commenting style in every file to his own style without even discussing the general coding style rules in the group first.
Fucking awesome start.
Go eat a sack of unwashed hobo balls you filthy cunt.4 -
One of my coworkers uses
if(null == something())
I know it's just coding style, but it fucking annoys me.18 -
Oh my dear DevRant, please add code-formatting standards & check-style validation on submitted code snippets, because the wrong indentations of code snippet posts on DevRant is driving me crazy, check-style ftw!2
-
Cringed when I saw camelCase, snake_case, PascalCase and CONSTS (for non consts) in 10 consecutive lines of code! 😖😖😖
I suppose if you don't know which coding style to pick... Just try them all!!!!! 😱7 -
My CTO in the 'good old times', when he still talked to me and shared his wisdom, once told me what I should know about oop and explained me the world of programming and what really matters:
CTO about oop and C#:
"I think this object orientated stuff is overrated and useless. You don't get finished. I write everything in one file. You should do that too. The fastest way is always the best one."
So, dear readers, you might think, he maybe understood, what oop means. I have to disappoint you. He is as FUCKING STUPID as he sounds.
He didn't understand the whole concept of the language C# or oop.
He doesn't use properties, every single method is static void and there is nothing like an object.
Since there is more from where that came from, this will be continued...7 -
me: *submits a PR on our old system*
My teamlead: please mind the code style, there was no need to add the extra whitespace line under that loop.
Me: 🤔 there are style conventions in this project??
-----
NB: this is really old code with tons of long lines, weird spacing and whitespace in random places and functions that span hundreds of lines.
I seriously did not notice a consistent style here.
I wanna go back to working on the new system ☹️9 -
Which side are you on? Lolundefined coding style engineer devrant functional programming programming programmer engineering javascript rant coding function31
-
!rant
What is your editor/coding environment fashion setup?
Here is mine and I am very proud of it:
Termite terminal + dvtm (like tmux) + Nano with semi-custom syntax files.
Left language is C, right top C2 (c2lang.org), right bottom my build-system25 -
Structure: decades of programming in too many languages to enumerate. I lean functional, but only when the language doesn't fight it. No matter what I'm doing, my code is immutable in practice, if not paradigm.
Syntax: No one thing in particular. I code differently depending on the language.
When I start learning a language, I'll find the standard style checker and create a project where I write an example of every single rule.
The end result is generally a quick intro to the language and a bonus understanding of the hot sports opinion in said language. I call this an ocean boiler.
I lean heavily into autoformatting because I've worked on too many projects to care, and I have a general expectation that something which is important enough to make a code standard is important enough to be enforced in tooling. I'd rather spend my time solving problems that thinking about stylistics.5 -
STOP. LOOKING. AT. HALF. FINISHED. SPRINTS. FOR. STYLING. ERRORS.
For the love of god I know it's not right yet leave me aloooooone7 -
Exercise devs, exercise, exercise and then exercise a little bit more
I've been coding for a long time and tbh programming is a very fiscally stale labour/hobby and even if your mind is rushing looking for answers, jumping from one place to another you are not moving that much, yes adjustable desks for programming while standing up are good and having breaks also helps but nothing like running, jumping, climbing or any sport.
During my lifetime I've seen the long and short term negative effects of sedentary jobs, back problems, liver problems, hormonal imbalance, overweight, depression, and anxiety.
I've been fiscally active for a long while but when I stopped, the first symptoms I had were weight gain, anxiety and depression, one night I even broke a tooth from stress teeth grinding.
Ive seen that people here might be having this issues and think it's normal, but try it out, start with a walk or jog sprinkled on your weekend.11 -
Genuine snippet of code from something we are rewriting from scratch..
// Returns true if section length is greater than maximum path
public bool isOversized(double sectionLength) {
return false;
}
Fffuuuuuu6 -
Greatest dev sin.... oh god there’s been a few over the years.
Hmm 🤔
I guess one of the top 5 would be making an ecommerce platform without unit testing or documentation for the front or backend. 🤫
Mind you it runs smoothly to this day so I was doing something right 😦1 -
There's a weird joy in implementing the design style guide for a new project.
Now, if only the designers would stop making changes to it I would be so happy.5 -
We might achieve world peace one day and still won't have agreed over indentation.
Indentation = TAB. Just 1 character (N spaces = N characters = more disk space, duh!). And then each dev can chose their own TAB width (in spaces) in their IDE of choice. Beautiful.11 -
Your choice. Select one
1.
foo (bar) {
return true;
}
2.
foo (bar)
{
return true;
}
3.
foo (bar) { return true; }
4.
foo (bar)
return true;
5. Collapse
|-------------------|
| foo (bar) ... |
|-------------------|
6.
#define foo boo
#define bar par
#define ( `
#define ) '
#define return go_home
#define true false
#define { ☞
#define } ☜
6-1.
boo `par' ☞
go_home false;
☜
6-2
boo `par'
☞
go_home false;
☜
6-3.
boo `par' ☞ go_home false; ☜
6-4.
boo `par'
go_home false;
6-5.
|--------------------|
| boo (par) ... |
|--------------------|
Select and Comment below.
Or add your own.28 -
Mystery of the day: why some developers can't decide on a code style. Let's count:
- two types of brace placements
- three types of assignment spacing (with, without spaces, and aligned with extra space)
- two types of clause spacing
- mixed case in the first char of a variable for no apparent reason(?)
- bonus: unneeded parentheses
At least in ONE thing the person was consistent: no space between parameters!
WHY GOD.13 -
Yes, my Python scripts are not remotely pretty. But then, neither was my nonexistent formal training in scientific computing. And no, I will not 'write two lines of comments for every line of code'. Physics major programmer problems.1
-
We learned Java in school this year. Everyone who did not comply to the coding style defined in some stone-age books, got a bad grade, including me, who rather used a "normal" style everyone uses. They thought us this:
CLASSNAMES, Constants, MethodNames, VariableNames, etc.
Worse than that, they used german names for pretty much everything including classes, variables and methods.9 -
Getting super fed up of that one guy in the office who refuses to conform to the code style everyone else is using on the project.4
-
Every time I tell a more senior dev I need help, they tell me to try the obvious things, I tell them I tried those things already, and they think I must have just done it wrong. So they spend an hour explaining to me how to do something I literally just did, and then more time trying the exact same things I just tried. Nobody wins.
Except for me when I find the correct solution while they’re re-implementing the failed solutions because nobody trusted me.
Sadly, this happens all the time. “Did you try a and b?” “Yeah, no luck.” “Okay, so when you try a, you have to remember to call c and d. Let me explain...”
So much wasted time. But the silver lining is in getting to be the one who found the solution (until they wonder ‘why’d she even come to me anyway if she knew the answer?’ ... 🙄) Because I trusted you to know what “team” means, and it’s not too late to learn ¯\_(ツ)_/¯5 -
Software development best practices: decouple your code
Apple, on applying a bold text style: Nah.6 -
Does anyone actually know css off by heart or would your webpage look like diarrhea if stackoverflow was down for the day14
-
One thing you learn after a few years in IT and some languages is that there is no problem with most languages.
BUT
Ugly code is ugly code! Has half of the devs I have been working with never heard of a style guide? Is it so long of a read that they just skip it.
I have flashback of variables being called "a", "b", "c" and/or methods being called "method_alfa" in production code.
In my opinion, repeatedly sh*ting all over a style guide is a reason for getting fired.1 -
CSS :
- In my country : name of a football club
- In the rest of the world : cascading style sheets5 -
Mac suddenly stopped working. Came to know motherboard is gone & the price to get it changed is around 60k.
Fuck you Apple. Never buying the shit again. Though one good thing came out of it ;it used to be my work machine too & now I'm chilling from last 4 days.13 -
Today I was refactoring code with 10 levels of indentation. Java 8.
Lambdas.
Each one is a block which spans multiple lines, that makes the outer ones hundreds of lines long.
This should be forbidden: () -> { ... }
If you don't understand why, please never send me any code.
PS: intellij shows multiple errors on each line.
PPS: my colleague should be happy that I do not use swear words.6 -
What people don't get about drinking and coding is this.
Coding and development is very similar to art. You've to be creative in your solutions. You've withdraw all emotions and concentrate. And you've to find your own creativity.
You have drunk artists all the time, why not drunk coders?11 -
Yo i know this shit is discussed way too often, but it kills me from the inside:
In that one coding class we get some source files where only the function bodies are missing (i know, sounds childish).. but it uses this style
function()
{
...
}
I fuCKING HATE THIS GODDAMN RETURN THERE WHAT THE HELL WHO FINDS THIS BULLSHIT AESTHETIC ALL SPACEY SO YOU SCROLL YOUR ASS OFF WHEN FILES GET LONGER THAN 2 FUNCTIONS?😔7 -
Thank God for Ctrl+Alt+L in PHPStorm...one guy from our company seemed to like this code style once upon a time:
if ($variable > 0)
{
// stuff
}
else
{
// other stuff
}7 -
Found this beautiful piece of code, that I wrote apparently a year ago .... oh my 😂 🤦♂ 😅
If I could travel back in time, I would would slap myself for doing this. Although I remember, why I did this, because of many min()/max() operations that I needed. I wanted to keep the code, so that I would know, which code piece belonged to which part, but man ... is that badly written! Nowadays with Clean Code style, I would certainly do it differently.7 -
I am writing a UI api for microcontrollers as a pet project.
I usually follow kernel.org for coding style so visited the site to see if there are any changes, these docs are so funny8 -
Does anybody find that different styles of programming suits their personality better?
I've put a lot of effort into learning Rust. I think it's type system is fantastic. But after trying to make a basic programming language interpreter in it, I found Rust too complex. I kept struggling to express my types correctly, so I spent more time trying to understand the language instead of designing and writing my program.
Now consider Go. It has some overlap in programming domains with Rust. It has almost none of the high level features of Rust baked in e.g. iterators. It's approach to programming is very imperative and procedural like C before it. If you want abstractions you will have to make them yourself. As someone who enjoys understanding the details I appreciate this step by step approach and its comparatively simple language design.
What do you think? Do you think certan programming languages are more suited to different personalities?18 -
"Always code as if the guy who ends up maintaining your code is a violent psychopath who knows where you live", which as I end up maintaining my own code, happens to be true.
-
I bought a domain and need some styling suggestions.
it basically demonstrates how language barriers can hurt communication (and I want to screw over google)
so, it takes a phrase and translates it to a bunch of random languages with google translate to see how messed up it gets.
the link is:
https://translationiteration.com
READ BEFORE CLICKING: i still have an unresolved bug with php cookies and sessions so once the page loads, just press refresh ¯\_(ツ)_/¯
so now i need some styling suggestions, and advertiser suggestions (i’m thinking media.net) who respect user privacy and are contextual.
comment :)
p.s. does anyone still say advert or am I the only one ? 🙃20 -
Because, definitely, size shouldn't matter.
Code description for the blind: if the size of this query is loved, then close the database and die.8 -
I just realized i can call myself an IT GIRL.
Well I do care about coding style..
Maybe I should put that on my business card1 -
The abillity to mute clients who use IE8.
<!--[if IE 8]> <style>
.client {
display:none!important;
}</style> <![endif]-->3 -
Not really in work as a job, these people inspired me rather in lifestyle and thinking: (these are not quotes!!)
Richard Stallman - you can't be sure the program isn't harmful unless you see and understand the code.
Linus Torvalds - doesn't matter if you like the person or not, let the code speak for him/her.
Raymond Hettinger - there are both stupid and smart people. It doesn't matter. What matters is asking the right questions and providing clean and explaining answers. -
working with UX/UI designers who don't understand the concept of style guides or reusable UI components is torturous, why don't they understand things work a bit different in real life than in Photoshop, Illustrator or Sketch
-
We're so defensive about listening to music while [insert concentration-intensive task here]. Instrumentals, piano, EDM, what have you. Deep down, we know it's distracting us. It's just so hard for us to admit that. 😂😂😂5
-
Client: oh we just need you to organize the files and all..
*ftps into server*
Me: oh so you guys use codeigniter
Client: yeah but for some reason the changes we make on the css files won't go through
Looked into the view files, and literally every element had its own style tag3 -
Jenga driven programming:
Stack pieces of code on top of each other until everything falls down and you have to restart shit.2 -
For a long time I was of the opinion that pointer variables in C/C++ should have the asterisk immediately after the type name (e.g. int* foo).
Eventually I became convinced that it makes more sense to have it before the variable (e.g. int *foo).
Now I find routines that return pointers look weird, e.g.: void *allocate_something() so I am considering adopting the original style I used.
The only advantage of having the asterisk before the variable name I am aware of is that it is easier to remember to add an asterisk if you define more than one pointer on that line.
Anyone else find it hard to settle on code style guidelines for their own personal projects?12 -
I️ cannot tell if it’s good or bad to have my own coding style guide that might go against convention6
-
Senior colleague wants to remove eslint from a project, it keeps giving him errors when his lines are several hundred characters long 😐13
-
Jeez, it can be done! Thank you CSS, i really thought it wasn't possible. My bacon is saved. (Overriding an inline style, javascript generated, from a linked style sheet).2
-
Just a quick thought...
If you are storing files in your Windows computer, you are giving data to them for free.
Who knows? Whether they have "root:" access to computers all around the world. Same with macOS.6 -
This is actually a rant.
But just like CSS - let's not take everything we write so seriously!
!important28 -
I love when people who still use Windows 95 style on their desktop give me advice about my mockup design.
-
dubSmall = lambda x: x*(2-min(1,x//100))
dubSmall = lambda x: 2*x if x < 100 else x
I prefer the first one, and I think people will always hate me for that.6 -
Hey guys, this isn't a rant. I just really want to know what is the font style used in devRant's logo?2
-
This developer has an media query break point for each style 912 break points. 304 desktop, 304 mobile, and 304 tablet break points. With 18000 line style sheet.6
-
My company ex-IT Maintainer, left a long automation script in c++, bit of python 2, and bash for our server which developed long before i went to junior high school. and now, the system is outdated, and have a compability problems. so i got task to give it a fix.
when i opened the source code up. i was like; holy shit who the hell write a code especially c++ all aligned to the left, Yes All of it, not a single line are indented. but in the other side the code seems maintainable, and after autoformat, autoindent and couple of fix later, it was readable. I am just wondering who the hell in the world write a code with a style like that ???? i knew he was aware of code style and indentation since he wrote couple of python scripts. Unbelievable.
sadly i cannot show you the pict cuz of company things. -
What's your git style? Commit many times as a sort of change tracker/backup regardless of feature completeness or functionality, or only when something is complete and passes tests?6
-
!Rant
When you can't decide on a font
I'm using Zooper widgets, tasker and my Python assistant.
I want a clean looking font, but I can't decide1 -
I am working in a cool company where during our coding principles conversation , I was giving a walkthrough of my code. I accepted some valid criticism. Shit hit the fan, when my I tried to explain it to them why I have written modules and the necessity of them in this application. So instead of writing several functions , I have created a common module for handling these tasks . After a lengthy argument , I am told that I should write understandable and lengthy code instead of complex and small one. This is what I think so too, that code should be readable by human but at some point , one also has to look decide if this practice is suitable for every carse or not. Man this is fucking killin me. Then I am also told that to rewrite the code and write it in such a way that's naive and easy to understand
-
I'm always helping out a girl in my class with her coding assignments but her code is absolutely atrocious. I don't have the heart to tell her that her whole method, file and variable naming, and process is wrong and is causing her so many headaches.12
-
More and more getting myself caught thinking about the code more than writing it. I mean I draft it, it is usually very shitty at the first moment, and insted of refinifng and adding spaces to moments I just sit think, write some ideas in my notebook, search on Stack overflow, listen to the music, and wait until the code talks to me.
I know it sounds like some hippie shit, but it actually happens and really solves the problem.
Anyone has the same thing? -
i am not a SQL expert, but i can do what i need to do in order to be considered a full stack dev
the syntax i have to learn was deprecated before i was even born -
My colleagues want to forbid the usage of the shorthand constructor in TypeScript.
I feel strongly about this.
At least they find it annoying that I call the more verbose one "PHP-style constructor" :D -
1. Commented code instead of actually cleaning it up.
2. Returning default return variables instead of rewriting obsolete code. (Generally if/else conditions with return). So instead of removing the if/else statements i return default value(null or empty objects). This is when the case of if/else will never arise. -
Just updated the app to use the avatar builder, now I have a goal in life, get enough upvotes so I can get my avatar some slippers, I love coding in slippers or bare feet
-
Spaces vs tabs has kind of become a non-argument for web tech and the former has won (at least in every place I've worked or observed in open source projects).
Although I don't really care (just stick to one for the same codebase) I don't get why spaces won. Given the argument is mostly about how we like to read code individually, and tab width can be configured per editor while space cannot, why did spaces win?9 -
As a Software Design junky, I just enjoy using TypeScript for more conventional C-style programming structures in JavaScript !2
-
Bad coding style:
bool condition = false;
if(condition) { /* enough whitespace so that braces appear offscreen in editor*/ }{
std::cout << "hahahahaha" << std::endl;
}6 -
"Be fluid. Treat each project differently. Be water, man. The best style is no style. Because styles can be figured out. And when you have no style they can’t figure you out." - Jay-Z1
-
How do you usually divide the commits?
I'm a student and I would like to know your coding preferences at both work and your personal projects. Do you prefer to commit almost fully coded classes or you just rapid-fire all the functions you finished?8 -
Still remember the first time I started writing style sheets, the biggest confusion was why do they use an id where we can always use a class.
Now I know why. Only you are your identity, but there may be many people of the same class. :)2 -
Suppose you made a tool for your STL that throws compile-time errors when trying to copy references, so your pointers remain tidy.
Suppose also that the language has a a turing-complete preprocessor that can be used to throw useful errors.
Then WHY THE FUCK DOES UNIQUE_PTR NOT OVERRIDE THE DEFAULT ERRORS WHICH TELL ME NOTHING ABOUT WHAT I FUCKED UP BUT PRETEND UNIQUE_PTR IS AT FAULT FOR NOT DEFINING "OPERATOR=" ? -
When the product designer ask me to move my bug fix Jira ticket back because there's a style change.
-
Not a rant but a question/style.
What do you prefer and why?:
if(condition)
vs
if (condition == true)
and
if (!condition)
vs
if (condition == false)
vs
if (condition != true)19 -
They are using a interesting code formatting style
Star Citizen: Bugsmashers! - Spectator Mode Crash - YouTube https://youtube.com/watch/...2 -
How do you do java style oop with classes and inheritance and all that in c++?
Do I really have to make a header and a source file for each class?
And while we are on it: are there any sources of "famous" games written in cpp?8 -
Biggest influence was the Java coding style, where constants are ALL_CAPS and everything else is camelCase
-
Poll time/input requested. Multiple assignments in one statement: yay or nay? For a (painfully) simple example:
a = b = true;
vs.
a = true;
b = true;7 -
I'll tell you a joke,😂😂
Why didn't the website get the girl?....
Because it didn't have style 😁😁😁😁2 -
K&R style Brackets are so goddamn shitty. I hate hate hate hate that style. It makes code so goddamn hard to read. And for what gain? You write "less" lines of code? So what? Who gives five fucks about that? Readability is key for coders.7
-
C# styling question: in a constructor do you prefer:
public MyClass(int MyVariable) {
this.MyVariable = MyVariable;
}
or
public MyClass(int _MyVariable) {
MyVariable = _MyVariable;
}
?23 -
Short names for the short living variables and good and meaningful name for long living ones because they'll be with you for long-long time. They are family.
I hope you get the f***g point 😠. -
I am now thinking of introducing a new self imposed rule of breaking functions up when they go above 10 lines to ensure I don't have too much happening as I often don't make small enough reusable parts and my code gets too complex. Opinions?7
-
I really hate double quotes because in my eyes they look awfully inelegant if compared to single quotes. Now that the Black formatter (Python) decided to use double quotes everywhere I feel very conflicted. I have always supported standards but I'm not sure I can embrace one that forces double quotes...6
-
Me at the start of the day:
"Hmmm fresh new CSS sheet, this time everything will be properly organized. "
Two hours later:
"Shit, I got this feeling that I have already styled this class... Oh well, I'll organize this later.
At the end of the day:
"same element selected 3 times in same style sheet? My CSS is versatile. Spaces and indents? What the fuck am I selecting here? Everything seems to be working as intended, I should organize this... Nvm, I'll make a clean sheet next time.3 -
Is there a common style name/popular origin for the style of whitespace in code where you put spaces inside parentheses but not after keywords in control statements, or after function names? (See img)
This is my preferred whitespace method (in most languages), but I don't know where I adopted it from, if anywhere... ;P16 -
Sometimes I just can't be arsed to write static_cast<> () and go crazy and use a c cast. What a risk taker I am.1
-
Hit into NullPointerException on production then I saw this in the source code,
entity.getKey().getValue().contains("a string"):2 -
I fucked up my Chrome Dev-Tools. Why won't Chrome recognize my external CSS file properly on page reload anymore? Instead of filename.css:[linenumber] it is listed as <style></style>7
-
Looking at the src of a text based game, when the esteregg storry starts the src style changes, choices are no longer declared as one like before, they just are there.... Ok
Good style guide -
I DESPISE languages that enforce a style on you because "muh community code consistency". Like ok, I understand it, but if it gets to a point where I cannot configure *MY* IDE to format *MY* code the way I want I'm gonna get pissed at you. Why does it matter to you if my project uses 2 or 4 spaces? At least give me the option to disable your fucking formatter and use my IDE's default one.
Fuck you Dart.16 -
I genuinely want tp know why few devs don't add the opening brace on the same line as method/class declaration ??
Whenever I find a piece of code which follow such style a part of me cries thinking of the time I'll be spending first correcting...14 -
When tackling a solo project, which one of these approach do you usually use (and prefer):
A) Mash up something that works ASAP while ironing out bugs and cleaning up code later on - a.k.a. "duct tape programming".
B) Have everything planned before you even start coding. Strive to get everything right from the get go. UML diagrams galore.
p.s., If none suits you, feel free to tell us about your preferred approach anyway. Those 2 are the only thing that came on the top of my head at the moment.
p.s.s., I'm all for A. Should you care about it.3 -
Looking for some advice from anyone who has used and transitioned away from Material-ui (React).
https://material-ui.com/
Tasked with removing the Material-ui used in our react project. Old team took shortcuts like using these types of frameworks at every step and the software is brittle.
Any advice from anyone who has ripped Material-ui out of a project.
We are doing this to move away from CSS-in-JS and this is conflicting with every fucking element in the fucking project.
<TextField> with it's special internal props
<Buttons> with its fucking "classes" prop that one take fucking CSS-in-JS
Any advice or just say some random shit or post a GIF for the lulz.
Peace.2 -
Does anyone work with EditorConfig files in VS?
dotnet_naming_rule.Variable_bool.symbols = Variable_bool
dotnet_naming_symbols.Variable_bool.applicable_kinds = field
dotnet_naming_style.Variable_bool.required_prefix = b
dotnet_naming_style.Variable_bool.capitalization = camel_case
dotnet_naming_rule.Variable_bool.severity = suggestion
this is part of one i'm currently working on. My intention is to let it detect every boolean variable that is not named correctly. Am i doing this right? Am I missing something? (Because at the moment it doesn't work).9 -
To link a html to CSS is it
<link href = "style.css" type="style/css" rel="style sheet"> I need halp11 -
I want the sticker and that's why I am quoting. "Code never lies, comments sometimes does."undefined programmer coders life commenting coding javascript hacker coding style nodejs angularjs programming java2
-
How do you transfer text from one machine ( laptop ) to another ( phone ) with no common tools ( Firefox Send spat out a long string of characters that I had no way of transferring either ) on either? Basically a clipboard sync.
There used to be this online notepad at notepad.cc, but that tool is gone away now.
How do you do it hacker-style? `wall`!
- SSH into the same same server from both machines ( this also assumes you have Termux or some equivalent tool for your phone )
- use `wall` to broadcast message from source
- copy broadcast at destination
- done31 -
Dammit! CSS is such a huge pain in the ass. I just want to use a <style> tag inline with a class to control margin positioning of one friggin’ image. (Yes, I know it’s better in a CSS file but this is a temp fix that will be reverted soon.)
<style>
.30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
<img class=“30-day-seal” src=/path/to/img.png”/>
Nothing happens. Only if I use a style=“” attribute directly in the img tag.
I’ve even tried:
<style>
img.30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
And
<style>
.30-day-seal img {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
And even
<style>
img .30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
Why do I suck so bad at this?! Still!?6 -
Informal python poll:
Do you put your __init__ functions at the top or bottom of your classes?
AKA:
class myClass:
def mymethod(self, arg):
pass
def __init__(self):
pass
or...
class myClass:
def __init__(self):
pass
def mymethod(self, arg):
pass5 -
After a while, I already have something presentable on the blog. I have a lot of work ahead of me, not only in terms of styles but also functionalities.
* Multilanguage, because I love you too.
* Option to save locally, for when there is no connection.
* Search bar, to make life easier in general.
And other things that come to mind.
Chake it out: https://k-site.ghost.io1 -
Today it took me *five* commits and nearly 2 hours to tidy up a module before doing a tiny 5-minute change.
I could have just done my change but that thing was so messy, I first had to straighten things up.
It's not that I didn't expect that, the module was mainly done by my dearest co-worker who's code usually causes me anaphylactic shocks.
But I'm always amazed how hard it can be to follow a style guide, and ours is really small anyway.2 -
Had to fix some bugs in some really old ASP code today. Need Front Page Server Extensions which doesn't work after XP. Spin up a VM, install XP, IIS, FPSE, then we need Visual Studio 2003 because the project won't migrate. Turns out - installing 'Visual Studio 2003' is a prerequisite for installing 'Prerequisites for Visual Studio 2003'. Cheers Microsoft 😯
-
!Rant
Want to do some browser based game development. Which game engine would you guys recommend? 2D Side scroller style.5 -
Today I've discovered the greatest feature of CMDER: Quake style slide down. I think I am in love again.
-
À test Class can not have any private method.
That's a coding guide line. And if I ask why, the answer is... wait for it..... BECAUSE X and Y DECIDED THIS WITH Z LONG AGO...
Agggghhhhhhhh.... -
How, to load static images in the reactJS component, by using like declaring in a stateless function where we declare a style object name style return and passing into a <div style={...}>2
-
So for the special kind of event handlers that runs before an event, would you prefer the react style "will" as in "onWillChange", or the W3C style "before" as in "onbeforeunload"?5
-
I need recommendation for site/community to improve my (clean) code style?
And, in more general, what are your ways to improve code style and programming way of thinking - more oriented towards bigger picture of application/systems (patterns, architecture, etc.)?3 -
What i have observed is that these days shearling leather jackets are trending in women winter fashion. For me its a life saver, it keeps me warm which is important and it is trendy which is way more important. LOL
i've recently purchased a sheepskin leather jacket from a website mauvetree. com , it is just piece of art, believe me!. after that my husband also ordered his shearling as well. they have a great collection of jackets. do have a look! here is my jacket <3 <3question aviator jacket style usa shearling jacket leather jacket mauvetree fashion sheepskin jacket1 -
Getting serious about the website. backed up my images, and this is my starting point.
https://parkcitymedia.github.io
gonna make it more of a portfolio-ish display on the main page. figuring out where i'd like to implement navigation and other such stuff - time to actually sit down and learn some js!