Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Comments on Is it OK to use abusive content on code?

Parent

Is it OK to use abusive content on code?

+5
−0

In SO, I had saw that a person was writing lot of abusive words inside code. Just like,

if(a==b){
    print("f***")
}

I had flagged on that post with little bit explanation.

The user gave some abusive content.

But, they declined and said that, that's the code of author. But, there's lot of young programmers right there also. Those type of words can "distract" them. So, I want to know if it OK to post like that in Software Codidact also.

Cause, in this post @JohnDoea had written word (Brainfuck) like this.

Should we mark those posts as rude or other reason?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (1 comment)
Post
+13
−1

"Brainfuck" is the name of a programming language; using the full name of the language is perfectly fine. We don't need to bowlderize proper names.

As for your other example - foul language in code samples - I'd say it's discouraged but not explicitly disallowed. If it's present in the original code, it makes sense to include it in the question, but we don't need to encourage gratuitous use of foul language on the site.

And in some cases, including the swear words can be necessary - such as a question about regex for detecting abusive language. It's kinda necessary to leave in in that case.

Essentially - use common sense; if it's essential to include, include it, including proper names of languages. If it's part of the original code it's probably not an issue, although replacing it (when originally posted by the OP) wouldn't be remiss either (not a huge deal either way). Gratuitous swearing isn't something we want to encourage here, though.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Foul language is probably not necessary in most code examples (1 comment)
Foul language is probably not necessary in most code examples
Trilarion‭ wrote about 3 years ago

I would simply replace it everywhere, where it's not necessary. There does not seem to be any advantage to it and surely some visitors won't like it. You already write that it's not a huge deal either way. For me, I would probably always make an edit.