Comment on: Hand coded assembly beats intrinsics in speed and simplicity
3 15 Sep 2015 19:23 u/taxation_is_slavery in v/programmingComment on: I hope one day I'll live in a country where I have freedom to write any code I like without fearing.
It's here right now. Some presenters at hacking events have had visits from three letter agencies telling them that they will not be talking about what they were planning.
Comment on: Excuses For Lazy Coders
"I couldn't pawn the work off on my $5/h Indian coworkers that don't speak an intelligible dialect of English or have any programming skill whatsoever, but it's somebody else's fault it's not done yet. Yeah the guys that were fired, it's their fault."
Comment on: How to Write a Git Commit Message
If I wanted a detailed account I would look at the source. Commit messages are just an overview.
Comment on: Where should I migrate my projects to (from Github)?
aiming that generalisation at me as an Atlassian user
No, but I see how it might seem like that with my sentence structure.
I agree Atlassian and JIRA are not truly terrible. OTRS isn't perfect for everyone either.
Comment on: Where should I migrate my projects to (from Github)?
I had a customer that used Atlassian and JIRA for similar reasons. Their in-house talent was crap (the sort of programmers that code sql injection vulnerabilities daily or write specifications for encryption that pass the data plain text with a static "special secure code". As you might imagine there are consequences to that, and they now exist only as a thin veil between their offshore Indian devs and their pissed off customers. I think Atlassian is used with some success to hide that fact, but I digress. OTRS is my issue tracker of choice.
Comment on: Where should I migrate my projects to (from Github)?
Slow, lots of downtime, horrible UI, poor integration between them, and the company spams your email account.
The salesmen do a great job selling Dilbert management on pretty graphs and reports in the dashboards, but in practice it's crappy. I have no doubt there are many free alternatives made 10+ years ago that are better, having used one at about that time.
Comment on: Where should I migrate my projects to (from Github)?
I was onboard until you mentioned Atlassian and JIRA.
Comment on: Why the Open Code of Conduct Isnt for Me
Programmers flocking to central repositories has given undeserved power to sites like github. Fuck 'em.
Comment on: No Code of Conduct: A Code of Conduct for Adults in Open Source Software
Why should they? The programmer could be a juvenile chicken fucker, but computers run the code just the same.
Comment on: No Code of Conduct: A Code of Conduct for Adults in Open Source Software
SJWs can get fucked. "Code of conduct" of any sort, including this, is apologist bullshit to be ignored.
Comment on: The code in your banner is triggering me
Okay, but we have a 400 page book of procedures that you have to work through before we can take action by farming it out to Tata or IBM in a no-bid contract.
Comment on: Does Voat not unit test or is it just not included in the GitHub repo?
If you're paid by the hour they are wonderful wastes of time. Though I prefer more interesting things, if you hate the company you're doing work for it's one option.
Comment on: The trade-offs of using a Microservice architectural style in software development.
Microservice is absolutely essential with more than about 5 devs, or if there are a couple retarded devs. It limits the damage and limits the exponential growth of filthy hacks that would otherwise appear.
Comment on: Hi everyone!
That's the problem, people can do annoying shit like this:
for(...){
if(...){
}
}
So if I'm working on my code, I don't have any issues with C syntax because I leave the brackets symmetrically indented. Unfortunately I often have to touch code written by a bunch of monkeys chained to a terminal somewhere in Asia, or in the case of Java that bastard syntax is the official recommendation.
Comment on: Hi everyone!
Thanks for the link, that does look interesting enough to give it a whirl.
Comment on: Hi everyone!
Python's indentation is wonderful, and I wish C and Java had it. I don't understand why many programmers don't appreciate the symmetry behind lined up indented blocks. It's almost like they prefer to scan through a mass of shit counting brackets to figure out where the fucking block ends.
Keep those fucking brackets matched up in the same column or I'll fucking murder you, or run it through a code beautifier.
Comment on: The Rust Code of Conduct contains this
That ethos is a good indicator that the code is crap, don't get involved.
Comment on: What is your favorite comment you came across in code?
If a company survives long enough on products like that, they usually start asking why development is so expensive, then they outsource to Indians which sends the company into a swan dive above concrete.
Comment on: What is your favorite comment you came across in code?
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck? <-- THIS HERE
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
return y;
}
Probably a few others in business apps, but they elicit the wtf, and don't ask it.
Comment on: No Code of Conduct
In Canada that's called a "Human Rights Tribunal". Wish I was joking.
Comment on: I can't wrap my head around this bug...
Actually he was giving the address of that char, but %s format expects null terminated strings, not just a single char, so printf continued until it hit a zero byte somewhere in the memory space after it.
Comment on: My Robot C Program Which Opens and Closes Blinds Automatically Depending on Light Intensity
If it can see the sky, just get time from gps.
Comment on: My Robot C Program Which Opens and Closes Blinds Automatically Depending on Light Intensity
A cloudy day will cause problems for it though as it quickly turns off an on. You should have a minimum delay and/or another threshold.
Comment on: Difference between 'programming' and 'coding'?
Coding is when you are following some pre-made design. Programming includes the design and coding part.
Comment on: Does Java run faster than C and C++ today? [No, because it only matches it; build once, run anywhere mentality.]
Java attracts the type of programmer that likes layers upon layers of crap. Best case you still have to deal with 100MB of JRE. The main reason it's used is that it's newb friendly and managers can throw a thousand monkeys at it and still get something that sort of works sometimes.
Comment on: The C# "bug" that will catch you.
I love C99. She ain't real pretty, but at least she isn't a cheating whore and does exactly what I tell her to.
You realize that you can leave comments in the asm code right? The only reason you might find it harder to read is if you don't understand the machine architecture.
Usually the C reference implementation comes first, then when it's deemed too slow an assembler version follows. So to port to another CPU you just use the C code, and if it runs too slow on that architecture you write another asm version.