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 - "blocks"
-
This code review gave me eye cancer.
So, first of all, let me apologize to anyone impacted by eye cancer, if that really is a thing... because that sounds absolutely horrible. But, believe me, this code was absolutely horrible, too.
I was asked to code review another team's script. I don't like reviewing code from other teams, as I'm pretty "intense" and a nit-picker -- my own team knows and expects this, but I tend to really piss off other people who don't expect my level of input on "what I really think" about their code...
So, I get this script to review. It's over 200 lines of bash (so right away, it's fair game for a boilerplate "this should be re-written in python" or similar reply)... but I dive in to see what they sent.
My eyes.
My eyes.
MY EYES.
So, I certainly cannot violate IP rules and post any of the actual code here (be thankful - be very thankful), but let me just say, I think it may be the worst code I've ever seen. And I've been coding and code-reviewing for upwards of 30 years now. And I've seen a LOT of bad code...
I imagine the author of this script was a rebellious teenager who found the google shell scripting style guide and screamed "YOU'RE NOT MY REAL DAD!" at it and then set out to flagrantly violate every single rule and suggestion in the most dramatic ways possible.
Then they found every other style guide they could, and violated all THOSE rules, too. Just because they were there.
Within the same script... within the SAME CODE BLOCK... 2-space indentation... 4-space indentation... 8-space indentation... TAB indentation... and (just to be complete) NO indentation (entire blocks of code within another function of conditional block, all left-justified, no indentation at all).
lowercase variable/function names, UPPERCASE names, underscore_separated_names, CamelCase names, and every permutation of those as well.
Comments? Not a single one to be found, aside from a 4-line stanza at the top, containing a brief description of that the script did and (to their shame), the name of the author. There were, however, ENTIRE BLOCKS of code commented out.
[ In the examples below, I've replaced indentation spacing with '-', as I couldn't get devrant to format the indentation in a way to suitably share my pain otherwise... ]
Within just a few lines of one another, functions defined as...
function somefunction {
----stuff
}
Another_Function() {
------------stuff
}
There were conditionals blocks in various forms, indentation be damned...
if [ ... ]; then
--stuff
fi
if [ ... ]
--then
----some_stuff
fi
if [ ... ]
then
----something
something_else
--another_thing
fi
And brilliantly un-reachable code blocks, like:
if [ -z "$SOME_VAR" ]; then
--SOME_VAR="blah"
fi
if [ -z "$SOME_VAR" ]
----then
----SOME_VAR="foo"
fi
if [ -z "$SOME_VAR" ]
--then
--echo "SOME_VAR must be set"
fi
Do you remember the classic "demo" programs people used to distribute (like back in the 90s) -- where the program had no real purpose other than to demonstrate various graphics, just for the sake of demonstrating graphics techniques? Or some of those really bad photo slideshows, were the person making the slideshow used EVERY transition possible (slide, wipe, cross-fade, shapes, spins, on and on)? All just for the sake of "showing off" what they could do with the software? I honestly felt like I was looking at some kind of perverse shell-script demo, where the author was trying to use every possible style or obscure syntax possible, just to do it.
But this was PRODUCTION CODE.
There was absolutely no consistency, even within 1-2 adjacent lines. There is no way to maintain this. It's nearly impossible even understand what it's trying to do. It was just pure insanity. Lines and lines of insanity.
I picture the author of this code as some sort of hybrid hipster-artist-goth-mental-patient, chain-smoking clove cigarettes in their office, flinging their own poo at their monitor, frothing at the mouth and screaming "I CODE MY TRUTH! THIS CODE IS MY ART! IT WILL NOT CONFORM TO YOUR WORLDLY STANDARDS!"
I gave up after the first 100 lines.
Gave up.
I washed my eyes out with bleach.
Then I contacted my HR hotline to see if our medical insurance covers eye cancer.32 -
Gmail puts emails from YouTube into spam, Google Chrome blocks pop ups from Google Drive
10/10 compatibility across products _/\_6 -
Client : Can you make some adblock?
Me : Why? There is a lot of good things already...
C : I mean... Listen carefully.
M : ok
C: i have some google ads and user blocks with adblock
M : yeah, that is normal
C : so i implemented adblock blocker which blocks adblock so that i can show the webpage plus ads when the user disables adblock.
M : i bet users hate that.
C : yeah, so users found out a way to disable adblock blocker which disables adblock blocker which i implemented to show the ads! So i cant earn revenue..
M : so what?
C : Can you make ad block block block block?
M : Sure. How much will you give me ?
C : 20 to 30 dollars
M : great ( the most generous client ever seen)
*couple of years later*
Client : can you make ad block block block block block block block block block block?
Me : i cant understand
C : count the number of block
If there is odd number of block i means to block ads.
If there is even number of block ads, it means to show ads making user to disable ads.
M : so just tldr your request this time
C : even number
M : ok how much will you pay
C : 20 to 30 dollars
*next day*
C : can you..
M : offline
Who in the fucking world made ads, made adblock and made adblock block?15 -
Forbes: Adblock Detected. Please Turn off your Ad blocker.
Me: *Turns off Adblock*
*Clicks on Continue*
Forbes: Thank you for turning off your Ad Blocker! blah blah
3...2...
Me: *quickly turns on Adblock*
1...
*clicks on Continue*
*Adblock blocks 11 ads and Forbes loads*16 -
My school blocks all social media websites, so i made a small social media site with chat and going to run it localy on my laptop and they cant block it :D44
-
Movie idea: a plane in mid air catches the wannacrypt virus and refuses manual control. The plane flies straight forward but they only have 2h until they're out of fuel and crash. The only way to pay the ransom is to get enough bitcoins but a recent price-fluctuation made the amount of bitcoins to pay way too high. The only way to resolve this is to create a tumoil on social media causing the bitcoin price to go down.
Visit your local cinema this summer to see 200 passengers and a group of devrant-guest-starrings use nothing but their brains, geniuety and arsenal of devices. Will they find the guy that blocks the wifi by watching 4k porn? Will alice and alexdelarge have to resort to building a fuel-powered mining-rig? Or will linux and linuxxx compile an open-source cockpit program before they run out of time? If so, will they even be able to decide on a linux distro to install on the cockpit?
Coming out in <% new Date().getFullYear() + 1 %>21 -
Devs, if you're developing an app that's targeted to the country Georgia, you better make absolutely sure it doesn't have in-app purchases. For some reason, Google Play Store blocks those apps for Georgia. Even the free apps.7
-
First rant from a phone without Google services.
Put shitloads of Google/fb etc domains in the hosts file so my phone cant reach those either.
Root firewall blocks everything except for devrant, a download manager, fdroid and firefox focus.
As for my phone, I'm Google free!55 -
User: "Hey, can you help me? My program doesn't work."
Consultant: "What is the problem? Are you using Turbo Pascal?"
User: "Yes, the program just blocks the machine."
Consultant: "Well, does it compile?"
User: "I don't know -- it just doesn't run. You see? There's the EXE file. If you run it, it blocks the machine."
Consultant: "And where is your source, the PAS file??"
User: "I wrote it and renamed it to EXE so it could run."5 -
Reinstalled my dedicated server and realized (afterwards) that I just erased my entire openvpn/mysql auth setup and I don't have an entirely working copy.
FUCK.
Okay, nothing I can do about that afterwards, setup csf right away, monitored the auth log for a minute and noticed one ip which had just connected and found it weird somehow. Blocked the ip.
Then, one second later, as my console stopped responding and that ip address suddenly looked veeeery familiar, I realized I just blocked myself. (the blocks persist across reboots)
😐
Went to the control panel and hit the reinstall button. Confirmed, and two seconds later I realized I could just have connected to any of my own fucking vpn services to unblock myself.
What in the living fuck is wrong with me @_@30 -
List of things that my fucking corporate proxy blocks
* Maven
* The NPM registry
* Github
List of things that aren't blocked
* Google drive
* Twitter
* Porn
Half my mobile data is burned away by NPM sinkholes. Fuck this place.20 -
For fuck's sake please add braces for blocks even if there is only a single loc inside. 1 line wont ruin anything but it would be a very big favor for the person reading the code.
I am talking about java. Python guys, you good ✌️10 -
When you accidentally open the emulator when you already have 7 android studio projects, 20 opera tabs ,code::blocks,u torrent, sublimetext and a word document open8
-
Windows: Try Edge! It blocks 13% more malware than Chrome!
Me: Try using your brain! It blocks 99.4% of ALL malware!
*Later*
Windows: Try Edge! It blocks 13% more malware than Chrome!
Me: Edge, you are malware: You are an unwanted piece of software installed without the user's consent, and you make annoying pop-ups.10 -
90s devs: "Did you know about GOTO/CONTINUE for control flow? it's so convenient and powerful!"
00s devs: "GOTO is an antipattern. But did you know about try/catch? You can use it for control flow, just write a lot of exception classes, it's so powerful!"
10s devs: "Using exception blocks for generic control flow is an antipattern. But have you heard about event listeners and observer patterns? It's so powerful!"
Developers are so good at repackaging and reselling square wheels by giving them fresh, impressive sounding names.
😡18 -
So a coworker wrote this -- a function that returns a view if a specific object exists in the database. Now what would happen said object doesn't exist in the database? Forget about returning false and handling it properly, he decides that the function should print (echo) a zero! Not to mention almost all his if-else blocks prints a fucking zero when the if condition is false (there are 8 of them, if you're asking). Error messages? The hell with those.
He is now the PM btw. I've had enough of this shithole.14 -
/* Daily sit down meeting */
What did you work on yesterday?
- Tea
What are you working on today?
- Tea
Any road blocks?
- *sips tea* ...nah no11 -
Listen. Use invariants. If you can do
if(!x) {
return foo;
}
...rest of function logic...
Instead of
if(x) {
...some long branch with more tests...
} else {
return foo;
}
Please do. It's so much easier to read when all of your conditions are tested in a line at the top instead of nested 8 layers deep in if-else blocks.
Thanks12 -
@dfox Can we have the option to include code blocks in rants and comments? So that they're formatted as monospace text? I mean we can get around it with pictures, but it would be a nice option to include code with an appropriate font. =)12
-
CHILD: But how can Santa deliver toys to every little boy and girl on his list in one night?
MEH: (laughs) It's quite simple. The items on Santa's list are called blocks, and each block in his "blockchain" typically contains a hash pointer, a timestamp, and transaction data...6 -
"Errors? Won't happen to me!"
One of my first jobs was to finish and maintain a program, that was made by a guy who had a real genius image among others. Years later, people said "oh him, that smart guy."
I never met him, but that's what i heard.
However, he was not only smart, but it seems he was also very confident. That's what i deduct from his code.
He didn't use catch-blocks. They were all empty. Not even logged.
If errors appeared , it was not possible to see what happened and where and why. The program would continue it's execution and if following steps could not work, because there had been an unnoticed exception, it would just throw another unnoticed exception and at some point, end in an undefined state.5 -
I started coding in 1994 making .BAT menus for my DOS games. Used HELP.EXE to find commands I could use. Then I figured out how to modify and run GORILLA.BAS (using Q-Basic). Man, when I realized that all BASIC commands were in the OS documentation as well, that was the Red Pill! Just started to copy commands and blocks from the Gorillas game into a new program, read the doc, modify, run and learn. Btw, the first BASIC command I played with was "PLAY" (for music).
At that time I was 10 and there was no Stackoverflow, no Youtube, no tutorials, no Google... no easy path to follow down the rabbit hole.
Ref: https://en.wikipedia.org/wiki/...10 -
Who needs screenshots?
At my first job in a web agency, we had this client who wanted to make some changes to his website and sent them to us by email. So far nothing unusual ... until I opened the email. To show us the changes he wanted to make the guy has done these steps:
1) He took the picture of his PC screen with the smartpone
2) Printed the photo of the screen
3) He made some pencil scribbles on the paper with comments like "Here we change the font, here we change the color" and the arrows that indicated where to move some blocks of the layout
4) Then he scanned the sheet with scribbles and sent it to us as a pdf by email
Of course, all our attempts to explain how a screenshot works have been useless and he went on like this for weeks5 -
As a Java developer, reasons to kill other programmers:
- static mutable variables
- WRITING to static mutable variables
- API call with Framework X didn't work. Add Framework Y along with X and try that. Wrap X in try/catch statement. Catch block fires framework Y.
- six, seven, ten levels of nested code. Zero thought put in organization
- 6K LOC Java files
- spring (singleton? Maybe) object assigning values in static mutable (see pt.1)
- a couple of unit tests in code base that no longer work. Zero unit tests in new code
- unit testing disabled in CI pipeline
- empty catch blocks
- pass mutable data between threads. Modify in various places concurrently.3 -
Little Jakob finds out you can open a js in (mobile) text editor.
Little Jakob finds an nether mod for early Minecraft PE editions (0.7 @ that time or so).
Little Jakob changes some number and vars and creates an Aether mod. (works the same like nether but other blocks&tools).
Little Jakob publishes it with screenshots in a video, gets 30.000+ views on youtube, mod reviews etc. There hasn't been an Aether mod before.
Little jakob feels badass.
2 years later I revited the video - and found out that the mod was licensed and I did something "illegal".
Seeked the internet and apologized to the original author (who was aware of this copy mod) - felt bad, he forgave me.1 -
No, listen to me. I cannot approve this PR because your code does not comply with our code style. All the imports and annotations must be sorted in ascending order by length. They must all make fir-like blocks of code. Because it looks nice.
Now go and fix your code
I just smiled and walked away to obfuscate my code with firs . I had no idea what to even say to that... I still don't14 -
It seems like GitHub just got blocked here in China...
the gov: *talks about the importance of tech-related education all day long*
also the gov: *blocks every major site that provides good programming-related resources/education*41 -
They see me coding
They testing
The Try and Catch blocks show me coding dirty
Show me coding dirty ...3 -
Got arch Linux working on my laptop.
Installed Budgie GNOME, Cairo dock, Termite, VS Code, Code::Blocks, Android Studio, IntelliJ....
It's so beautiful9 -
I am sure this has happened to all of us in some extent with some variations.
Colleague not writing comments on code.
Ask him something like "How am I suppose understand that piece of garbage you have written when there is no comments or documentation?"
This keeps happening for a long time. Some time after, I write a kernel module using idiomatic C and ASM blocks for optimizations (for some RTOS) and purposely not write neither documentation nor comments.
When he asked for an explanation, I answered to everything he questioned as general as I could for "that trivial piece of code".
After that he always documents his code!
Win! 🏆4 -
Me: Alright, lets hammer out some Udemy courses...
*Opens course*
Instructer: So we are going to go ahead and download Code::Blocks
Me: *Audible sigh*10 -
For the privacy freaks of devRant, have a host file that blocks all Facebook owned domains:
Blocklist Facebook domains (2016) - https://github.com/jmdugan/...
(not mine, found on HN)7 -
I write blocks of code like this:
If(condition){
code
}
I'm trying to fix a bug and the previous dev is doing it like this:
If(condition)
{
code
}
Does anyone know any good nerve calming pill ? 😜19 -
I'm averaging 3 hours a day outside of meetings. Mostly in 30 minute blocks.
Manager is wondering why I can't get work done...5 -
Waiting for the perfect browser :
1. It's not Safari or IE and without their shitty problems.
2. It's not a RAM gobbler like Chrome. But has its minimal UI.
3. Has Chrome like dev tools or Firebug and nothing less than those.
4. Does not have ads.
5. Cross platform. On both desktop and mobile.
6. Web extensions only
7. Everyone loves it. Even fanboys who swear by Safari
8. Blocks annoying pop ups on some sites.
You're open to contribute more points!35 -
Keeping old and unused code blocks commented out and not deleting them immediately is the equivalent of leaving that bottle of soy sauce in the fridge even though you know very well that you won't use them ever again.7
-
As a junior developer, your primary goal should be to learn and absorb as much as you can, not to try to make a name for yourself. It's all too common that I see devs fresh out of college with this amazing gung ho attitude that quickly devolves into needing to feel like the smartest person in the room.
This leads to an unnaturally inflated ego, a feeling of self importance, and blocks you from truly understanding what is going on in the stack in front of you.
That's not to say you can't try to take on difficult tasks, just be humble and ask for help when you need it, and don't make assumptions that might lead to rework later.
I would much rather you ask me a question then put up a PR that has wildly different assumptions because you didn't fully understand the acceptance criteria of a particular task.
tl;dr - sit down, shut up, do your job, learn what you can as fast as you can.
Sincerely,
A very fed up Senior Dev5 -
World class Korea's Scratch (yeah, the orange cat scratch) Test
You see the blocks, see the requirements, then DRAW the scratch blocks and do block coding IN PAPER.
WTFFFFFFFFF7 -
I cringe everytime I see improperly formatted code -_-
Me: *sees no spaces between function blocks so I format it myself*
Classmate: *Happily types code with no spaces between lines or comments and overwrites what I did*
Me: Seriously?!8 -
Fucking gimmicks.
You know what the worst experience in technology is? A virtual keyboard. FUCK typing on a smooth piece of glass.
What's the solution? Attachable real keyboard. That blocks the bottom of the screen. Making it a normal laptop. Fuck off.7 -
!rant
Has anyone looked at the linux kernel 1.0?
I am amazed with this! And the comments are priceless
e.g:
tcp.c
/* I hope this returns what I want. */
return(~d+1);
buffer.c
* 14.02.92: changed it to sync dirty buffers a bit: better performance
* when the filesystem starts to get full of dirty blocks (I hope).
*/
So cool!!!!3 -
Real-time physics calculation of +250000 blocks on AMD Athlon.
No worries boys, I had fire extinguisher.4 -
I think my productivity at work seriously went up when I discovered this site with custom noise generators. Blocks out my coworkers, and I can pretend it's raining all the time. Perfect for coding!
http://mynoise.net/NoiseMachines/...2 -
So I was using this very nice web app for some administration. When browsing their blog, I discovered they were in my hometown, and only a couple of blocks away from my place. I emailed them "do you maybe have a job for an IT student?" And they said "Sure, come on over!"
-
- Team_leader_1: I know you're a frontend developer, but trust me NodeJS has threads :) sync operations don't block the main thread :)
- Team_leader_2: You need to study the theory :) NodeJs can handle further operations during the sync function :) it spawns a new thread, you haven't studied Javascript well enough :)
- Me, very ready to dab on 2 condescending little fucks:16 -
So the school I visit blocks TeamViewer in their network for the reason that you could bring in malicious stuff.
They happily allow USB sticks though so that doesn't seem right.
Whatever, I used AnyDesk to get stuff from my PC at home (and I never got caught, otherwise I wouldn't have been able to ever use a school's computer again).1 -
One of the more memorable computer problems I solved were when I added some lego blocks to solve a recurring windows bluescreen
A friend had a Pentium 3 (slot 1) that kept throwing him several bluescrens per day so I decided to help
I open up the computer and saw that the processor were not properly securred in it's place and the plastic pieces that should have holding it in place were gone, so I improvised pressing in some lego pieces that I found somewhere to secure that the processor didn't move if someone were walking close to the computer and after that he didn't have any more bluescreens than the rest of us4 -
I'm thirteen, and we have an excel unit in our computer class. When she's want to teach us something, she'd deploy her screen on ours and we couldn't do anything. It took me until the third time (yes, that long) to remember the connection was wired via Ethernet. I took the cord out and my computer was free! During the boring "lesson," I opened Code::Blocks to work on a fun side project. When she notice she wasn't connecting to my computer, she walked over to my chair and saw Code::Blocks on my screen. Then, I noticed her behind me. I quickly pressed ALT+TAB. She walked back to her chair. To this day I swear she thinks Im a hacker.11
-
TIL: C# has a "Catch When" syntax to help you filter exceptions. It already allows you to filter by Exception type, but this is news to me since it allows for finer filtering like:
try
{
//Shit code that will throw an exceptions more than Hillary's tantrums about the elections
}
catch (ExceptionType ex) when (ex.ErrorCode = "0x696666")
{
//Log this fuck up
}
catch (Exception ex)
{
//More logs
}
finally
{
//Run code that doesn't depend on the successful execution of prev code
}
I love C# and use it every single day, but this "When" keyword in Try...Catch...Finally blocks is new to me and will be interesting to start using it now :)3 -
An actual anonymous web browser that doesn't collect location info, search history, etc. It also blocks any website you use from collecting data on you.6
-
I was debugging my UDP server and client for 3 hours until I realized our school network has a firewall which blocks my connections.6
-
What kind of rusty asshole develops an FTP client which seemingly treats uppercase and lowercase filenames as exactly the same and is not able to fucking understant UTF-8 filenames!?
OK or maybe it was the shitty ass server to which I had to deploy the website to.
I've never been so pissed in my life.
It's already an asshole torture to upload 2.3 giggle bytes of pixel jizz, but 5 hours later, when the site has been made public, you find out that 25% of these images' filenames were automatically renamed during the extraction because some asshole dev thought it was a great idea to not even inform the user about this behaviour.
Fixing filenames in production while your boss is really pissed next to you the hole time is not a great feeling. Especially when you accidentally purge the whole image cache and the PHP image transform task then blocks thus making the whole site not loading any more images for 40 minutes.
WHAT AN ASSRAPE!
Please don't comment. I'm still too pissed to read comments. Thanks.4 -
So my colleague is listening to alot of Music and je always stomp the floor when he does - I really hate it.
I have created a nice firewall rule that blocks spotify, Youtube and all video and Music to his user and phone ever 5 minuter for 2 minutes.7 -
Blocky, a small game I created last week. You have to destroy blocks to score points and win. Check it out!11
-
Boss: we can't accept your MR request until you fix the problems we highlighted, everything is blocked and the client is getting angry
My brother in Christ, I understand your concerns but I need you to understand: you decided to block a perfectly working and documented PR because you didn't like having "<!-- -->" in a couple of HTML files and menial bullshit like that.
It may not be the most elegant thing ever but don't put on me the responsibility of your blocks or I'll smash your face with the coffee mugs I've used to work until midnight so that you could deliver the product in time after someone else delayed the deadline twice already.
Thanks and get fucked ASAP.3 -
Stop teaching people deprecated bulls*it.
I'm taking a "Web Design" course and the teacher wants us to use html attributes and the <font> tag to format pages. He doesn't allow us to use CSS. Says "We'll get to CSS later, right now I'm teaching you HTML". He thought us the <frameset> thing which isn't even supported in HTML5. And of course no <header>, <footer>, <aside> etc.
Same thing in my C++ course. The computers don't even have a C++11 (or newer) compiler. Just an old version of Code::Blocks we're not allowed to update. It does support C++0x so you can still get some of the features, but still.4 -
COBOL is something I use at work. Typically, you see IF blocks like this
IF condition
Stuff
END-IF.
But the END-IF part if actually optional. You can just use a period and it does the same thing.
IF condition
Stuff.
Many headaches if not caught when reading.6 -
Oh don't know why my "if" condition never execute.
Happens very very often.
Small things are hard to find.11 -
Indentation is for pussies amiright?
What is worse?
lack of indentation
lack of spaces in the compiled language
lack of blocks
Itsavesspacelikethissentencedoes!13 -
When the company you work for decides to install a new firewall and the firewall service recognizes stack overflow as a forum site and blocks it.... :/3
-
Crazy weather in here. There is a little sandstorm. It's pretty windy, even the outdoor advertisement letters are moving and the sky is brown :v
The thing is that, in order to go back home, I must walk 4 or 5 blocks (from the place one of my co-workers can leave me), but with this wind I'm afraid of getting sand in my eyes (I don't have glasses). Another option is to take an Uber to my house, but it takes too long to arrive to the office.
What can I do? Do I take the Uber or do I run to my house?6 -
Building on my last rant, a friend told me that resizing the partition caused the blocks to be no longer aligned, whatever tf that meant. So i adjusted the partition table and reboo—-
Grub: OHAI THERE, DO YOU KNOW HOW TO USE A GRUB RECOVERY SHELL? NO? WELL FUCK YOU BECAUSE HELP ISNT A VALID COMMAND HERE. FIGURE. IT. OUT.10 -
Chrome blocks sites on my company intranet because the HTTPS is unsecured...
But let's a rogue JS script run that completely freezes my computer and prolly it's damaging my HD and RAM....
I had to do a forced shutdown.... I've never done that in YEARS8 -
Today is a stark reminder of why i want to leave here. First we couldn't do anything because production was down which blocks dev login. Then support tells me I need to work harder because my bug count keeps going up. But what is in my bugs? Feature requests, global changes, and work that isn't mine. Gee thanks :( Why does support get to comment on my performance anyway by something as dumb as a bug count? Grrr.5
-
I finally perfected a script that helps me fix my procrastination! It hooks into DNS's log and spies on my and blocks me if i get too addicted!
No joke I spent on it likely cumulatively over 48 hours of pure coding time but it was worth it.
If anyone would like to take a look or criticize my coding, here it is: https://github.com/meowxiik/...8 -
!dev, !rant
Flew to Berlin for the weekend. Kinda disappointed xD
Trash everywhere, water costs more then my kidney, ugly communist blocks and buildings everywhere(I mean, yeah, sure: GDR, but like what, did nobody build anything since then? lol), almost nothing to eat .-. (I don't think we encountered even a single "german food" place walking around Berlin)
On the flip side, roads are awesome, no construction everywhere that blocks half the roads, no cracks everywhere and the asphalt doesn't make you vibrate when you ride over it. People were nice and polite, I didn't get the overwhelming urge in stores/stalls to just place everything back on the shelves and fuck off just from talking to a cashier/clerk/worker. Food, drinks, and services were cheap as fuck(Except for water, which I'm still coping seething and malding over, I thought the "Beer cheaper than water" was a joke, or an idiom, not fucking reality).
Also got to see @Ranchonyx IRL <3
So that was the highlight of the vacation.24 -
Siemens Step7 code block protection (PLC's).. It was designed to lock code that you don't want others to be able to read. All blocks are in a dbf file, so you just need to find the block record and uncomment one line, voila - source code available.
Given the massive use of Siemens PLC's on plants all over the world, and the simplicity of hacking via S7 protocol, usually Internet connected, it's a breeze to steal or modify the controllers code with possible critical implications.
Enter Stuxnet.1 -
Previous intern had a bad habit of living empty catch blocks...
It's like he had some mommy issues.
It's like handing an empty first aid box to guy.
"You know what I am gonna do, leave empty catch every where just to fuck with the next guy...Ha...Ha..."1 -
I don't give a fuck anymore. I'm leaving this company in less than a month and I'm so fucking pissed. No matter how fast I work, I ALWAYS end up not getting PR reviews FOR WEEKS. I POSTED A PATCH FOR AN ABSOLUTE BLOCKER THAT HAS MAYBE 20 LINES AND I STILL DON'T HAVE THE FUCKING REVIEWS A WEEK LATER. WHAT THE FUCK. Not to mention that bigger feature I've been working on that blocks subsequent dev steps. It's been, what, a month? And not a single review. The fuck am I supposed to do?5
-
So.... yeah, making a Scratch clone (with more features) is frustrating and super hard.
Major problems include
- Drag&Drop from listbox to usercontrol - stress level : 3/10
- connect blocks when two blocks are close to each other - stress level : 10/10
- generate live code when there was a change in blocks editor - stress level : 9/10
- write a compiler or some interpreter that converts block code to real c# code - stress level : 10/10
- generate output by calling csc.exe - stress level : 1/10
- make code at least readable - stress level : 7/1014 -
Why do so many online resources still change quote characters in the code for the curly ones? It's 2023, how hard is it to add a fucking rule to skip conversion inside the <code> blocks?9
-
Roses are red
Exceptions are blue
Empty catch blocks are going to hurt you!
try
{ somethingVeryDangerous() }
catch { // No Op
}
finally { SaveFile() }1 -
My GPU blocks the airflow from the lower front intake fan to the CPU, so I wanted to have a fan in the 5.25" drive bay directly targeting the CPU.
While that bay fits a 140mm fan nicely, there was no mounting point. I ended up making four fan struts out of the metal covers for the 5.25" inserts, the ones that you wiggle out. Drilled holes into the case, a bit of foam above and below the fan to seal the larger gaps, and done.
The trick is ofc that the 5.25" case covers are meshed and hence act both as air intake and dust filter. The CPU runs a few K cooler under load.14 -
So today I saw someone using that retard units and I get a little bit frustrated. Then a side project idea popped out; a website called something like retard units to non-retarded units. It would simply convert between units and have a clear message that suggests stop using any retard units. Then I hit google to check if similar website exists and boom! I found this:
https://tononretard.com/
ITS SO FUCKING BEAUTIFUL. Also it has a feature that blocks you from converting metric units to retard units. A wonderful masterpiece!6 -
You can fuck right off.
First it won't let me have two of the same characters consectively, which fine, technically makes a more secure password.
But then blocks more than 12 characters?
Fu.3 -
Oh, $work.
Ticket: Support <shiny new feature> in <seriously dated code> to allow better “searching” (actually: generating reports, not searching)
UI: “Filter on” inputs above a dynamic JS table don’t update said table; they trigger generating a new report.
Seriously dated code: 12 years old. Rails v3-isms. Blocks access without appropriate role; role name buried in secrets configuration files. Code passes data round-trip between server/client/server/model that isn’t ever used. Has two identical reports with slightly different names, used interchangeably. Uh, I guess I’ll update both?
Reports: Heavily, heavily abstracted; zero visibility.
Shiny new feature: Some new magical abstraction layer with no documentation nor comments. Nobody in my team knows how it works. The author… won’t explain, but sent me her .ppt presentation on it (the .ppt, not a recording).
Useless specs for seriously dated code: Tests exclusively factory-generated data; not the controller, filters/lookups, UI, table data, etc.
Seriously dated code and useless spec author: the CISO.
The worst part: I’m not even surprised at any of this.2 -
Solid cube of command blocks. Any guesses what it does?
Hint: hasbro.
(There aren't many context clues in the image, so you'll probably need to blindly guess)18 -
Python prorammers ignore this.
Oh so now we got a fucking new fight started on devRant on which line to put brackets on.
Fucking why!!??
Both conventions basically mean same thing and even no fucking ide is partial about the fact.
Stop it!8 -
// Feature Request START
Is it possible we can have some kind of markdown on posts and comments? Maybe not bold or italic, but because of the target of the app, some kind of one-line and multi-line code blocks that highlight from other text (for example: having a gray background, using a consolas font, etc)
// Feature Request END1 -
Someone asked me about Ruby vs Python.
The flashbacks regarding the python vs ruby wars started to kick in man.
I always liked Ruby faaaaar more than Python. And find Rails to be a far superior alternative to Django as the web framework champion from each side and Sinatra far more enjoyable than flask as the micro framewor champion on each side goes.
But this guy is very math oriented and likes the idea of data science for which Ruby has a disadvantage in terms of available ecosystems.
You can't take my blocks and dsls from me tho. I will fight for them.2 -
I can do HTML, responsive CSS with JS but there is one damned thing blocks me all the time. What color?
How you guys choose your color on a webpage?14 -
If you write blogs and tutorials about programming,
Please don't just throw blocks of code at people. Explain what this code does, why you wrote it in this particular way and not the other, when people should use this technique and when they shouldn't. Also don't make your tutorial specific to a particular library/package unless you specify in the title.
Stop making blogs just for the sake of making them. Make blogs that help people become better. Advertise for your proficient and show others why you love it. Put some effort into your craft people!!2 -
Fuck you JavaScript with your blocks within blocks within blocks, your promises and callbacks, your million of libraries that are doublons or not finished. Fuck you with your assigning variable before functions, fuck you!11
-
Just finished setting up PiHole on my RaspberryPi.... no more adblock extensions with shitty performance... no more custom hosts files... and network level adblocking for all devices...
FUCK YEAH
oh, and I added so many lists that it now blocks about 350k domains (ads and malware)
Today was a good day.. time to hibernate...4 -
Developing a notification API, sends emails to subscribers, email API can take only 100 IDs at once, so partitioned the email list and send mails in blocks of 100.
Forgot to reset the list after every block, so each new partition got appended to the existing list and kept going on.
Ran it against a test DB, which was recently refreshed with near-prod data !!! Thousands of emails went out of the app server in one shot and everybody receiving numerous duplicate emails. Especially the ones in the very first partition.
Got an incident raised by the CEO himself reg the flurry of emails. But, things were out of our hands, quite literally. All emails are queued up in the exchange server.
Called up the exchange server team, purged the queued emails. No other emails were sent/received during this whole episode.
Thanks to Iterables.partition in the present day.3 -
So I was trying to compare my local website CSS properties to the one deployed on production and realized that font/blocks were a little bit smaller than usual. Tried to debug which CSS changes caused this issue for half an hour only to realize that it was because the browser's zoom level was set to 90% locally 🤦🏽♂️
This happened with a guy who just finished 5 years of professional coding yesterday 😂2 -
there's a special place for people who write empty catch blocks INTENTIONALLY ..
try{
... do something that may produce NPE;
} catch {Exception fuckYou){
// go die in a fire
}3 -
Corporate IT blocks all network traffic, whitelists port 80 and 443 😡
... cos port number is the best predictor of security threats, amirite? 😒2 -
Story time.
I worked on a project recently where the HTML was written just _perfectly_. Div elements were exactly indented as the blocks on the browser window.
CSS classes were self explanatory and altering them didn't introduce any new kind of bug on the browser window.
Introducing a new div block with CSS classes fit perfectly in the window along with responsiveness on different screens.
JS was also written in a self explanatory way.
It was such an Italian Chef's kiss grade of work that I just sat back and admired the glorious work for 10 mins. Totally deserved it.8 -
I am scared... I'm scared because the code works.. but it shouldn't work I mean it's not supposed to get triggered and I have no idea what triggers it. It feels like my program got cursed and started doing things on it's own. I even put up blocks to stop the function from triggering but it still works... It always works.. I am scared...7
-
WYSIWANK
Why do they not know this? Spending the time to create beautifully crafted css for bullet lists, only for the client to ignore the bullet list icon in the cms and put some shitty keyboard bullet causing the display page to luck just plain shit. Fucking useless wankers (why do i bother). That's why wysiwyg blocks in cms are a cunt in the hands of fuckwits. -
*Opens tutorial video*
Ok, today we are going to create x using x and we are going to use code::blocks as our ide
*Closes tutorial video and continues searching*
Anyone else just have an indescribable hate for code::blocks or just me?9 -
Damn bro Vue 3 sucks actually. It's just a big function now with arguments like "`this` can be sometimes confusing when TypeScript is used." - hell no, my component was a class and this was the fucking class. nothing was confusing about this.
It's all a clusterfuck of magic now, I don't see why writing `ref(5)` or `return { all of your shit }` after `setup() { complete business logic inclusive functions here }` is better.
I was so looking forward to all the improvments, but why do we need these 3 apis with actually no difference, tried to be explained by the same image of colorful blocks in every single fucking article?
what happened to methods? am i seriously supposed to return them from a function? that just feels wrong.22 -
If you host a forum for dev discussions, make sure that, even in code blocks, every single or double quote will be replaced by quirky typographic quote characters that resemble their ASCII equivalents so closely that cut-and-paste programming will be punished by hours of searching the error in the wrong place.4
-
Wow what an eloquent detailed explanation. Thank you for clarifying what the problem is. Now i know exactly what i have to do. You F U C K I N G TRASH LOWEST PILE OD GARBAGE OF HUMAN WASTE CORPORATION HOW ARE YOU NOT FUCKINGGGGGGGG BANKRUPT YOU FUCKING CANCEROUS SHITHOLE FUCKING ASSLICKERS FKKKKKINGGGGG GAYPAL FUCKKKKK YOU MOTHERFUCKERS I HOPE YOUR FAMILIES DIE IN CAR CRASHES WHOEVER IS RUNNING GAYPAL
MY FUCKING MONEY IS STUCK IN THIS FUCKING PILE OF TRASH HOLE CALLED GAYPAL AND I CANT FUCKING GET IT OUT. ITS JUST A MATTER OF TIME UNTIL GAYPAL BLOCKS MY ACCOUNT FOR NO FUCKING REASON AND STEALS MY MONEY, LEGALLY????!!!!!!!!!!! AND AGAIN23 -
— *draws three overlapping blocks of content*
— it’s not going to shrink on small screens. Maybe we can put them in column for narrower widths?
— NO! They should overlap and I don’t care how you’ll do that!
So I stripped a responsive viewport, now the website is not responsive, but yes, we have “kewl and pwetty overwapping bwocks”, congratulations! -
Custom image format update for anyone who is interested…
First blocks of data have been written and the colour table has been compressed from ~170KB to 30 bytes…
Now to decide on my preferred method for pixel indexing, RLE or no RLE… and how should one do the RLE…20 -
I spend so much time debugging because the previous developer has empty catch blocks everywhere in the code base.
-
Worked on a WordPress Multisite project that required digging around to find ways to hook into areas that weren’t meant to be hooked, create and add custom core files that would withstand updates, ensure certain plugin capabilities were available even if the current site didn’t load them, and a variety of other black magic that I’m too fried to remember off the top of my head.
By the end of the project I more or less felt like a god in WordPress—There’s little I could ever want to get it to do that I didn’t know how to do.
Then again, this is all probably a long way of saying I learned some very bad ways to do things. Mercifully, it’s fully documented with PHPdoc blocks down to the loop level so that even a 3-year-old should be able to figure out the logic...
All this to say, I’m definitely ready for a new project.3 -
My school blocks all UDP traffic going outside their network. 1 - 65535. Which in turn means that I had to switch to TCP for my VPN to connect. Now my VPN is slow as shit. -.-8
-
!dev
Fucking money problems..
Had 20k on the side before relocating..
Old country wanted 10k taxes, 10k left..
Flight, hotel etc 2k..
8k left..
Bought a cheap car, 5.5k left..
After the rental cars, 3k left..
Bank blocks card because of potential fraud, so I can’t pay the insurance and have to take another rental car..
2.5k left.
2.4k deposit so I can’t pay the insurance for 2k..
At least 0.4k left and first salary comes in, but since I’m new, I’m on emergency tax so I only got about 1.5k.. will get the taxes back later but for February I’m so fucking broke..
At least everything is paid now so I can start to safe from 0 again...
Fuuuccckkkk..
Totally worth it though..
#lifeIsSoMuchBetterOverHere,ImNeverGoingBack..
#iDontThinkCommasInHashtagsAreAllowedButIDontGiveAFuck!9 -
Some hacker went through a lot of trouble to get around a minimum order amount on our site. And they’re still hitting us after Cloudflare issued a bunch of blocks. Well, there are some back doors I have to finish closing. I guess I’m lucky I’m just inheriting this site and I’m not the one who built it. But I’m still unlucky because I have to fix this mess. But damn hacker, why’d you go though all this trouble to get around existing validation. Go find another site to charge $1 amounts and test your stolen credit card info. Pretty please 🥺
-
Block off blocks of time as “unavailable” and use that for me time. Gym. Take a walk. Watch some tv. Read a book.
-
At the age of 10 I got interest in ''changing computer'' things. I started to watch over the shoulder (I don't know if you can say that in English ¯\_(ツ)_/¯ ) of my dad. He programmed I2C and other microcontroller.
I started with little batch files and Visual Basic. I think we all know the ''Virus'' with shutdown 😂
At school in the computer lesson we learned a few other languages. I was the only one who learned these languages at home too. The biggest problem is that you think ''I learn at school and at home I can play games''.
Some day I started to learn PHP and Java at home. I came to Java with Minecraft. Yes, Minecraft. You can learn so many things (like the structure of a network packages from the server) and you can visualize everything with blocks.
Since the professional colleague we learn C# and Python which I use in some projects at home too, for example for the rasperrypi.
Now I'm 17 and I can C#, Visual Basic, PHP, JS, Python, JS and HTML1 -
I work as a .Net consultant. Currently I am at a company that blocks all sociale media sites and sites that look like 'em. I don't mind the social media, but YouTube is also blocked and I need my dose of daily epic music world while developing. So, I set up a proxy on my server to easily bypass these blockades. Note: company policy says nothing about not being allowed certain websites, I always read this before using this trick.
Last week, a new guy joined the company and gets a desk just next to me. After a lot of looking at my screens and trying stuff he asks me for the entire office: "Hey how are you going on YouTube? It doesn't see to work for me.". 😫
The rest of the day, I had to explain to co-workers what a proxy is (they don't care about any tech they don't need...). And I had to explain to the pm that I was not hacking their network...
I'm not sure if I will be getting along with this new guy.... 😧1 -
This moment when you help your friend with data conversion code 😀.
By converting "super" mathlab script into real C# application so you don,t need to read the whole freking 1GB file into RAM and writing it into another 1GB matrix in order do save the result because mathlab is crap 😤.
Then that feeling when you want to create better mathlab from scrach in C# and you are actualy succeding 🤔.
Did i mention about grafical blocks for interface like in lego NXT2.0 😏
Is mathlab that crap or is programming that easy?14 -
Be me, get a consultant job, go to a supposedly great client that has fame of getting scouted by Google. (attn: I doubted all this shit before I started)
Learn the basics by a awesome mentor and trial/error stuff at the same time to get the hang of things, after that was done, I noticed there was no documentation whatsoever, code is spaghetti and your documentation, good luck!
Royal spaghetti, you can't make heads or tails of it, dev code in production, empty try/catch blocks, empty statements, if (true)... (incl. their core classes)
Keep in mind this is a multi milion dollar company...
Someone please understand my pain...6 -
Teamviewer is a piece of shit. I use it to connect to my PRIVATELY OWNED server because it's not located on my lan and I have no other way like VPN. Today teamviewer showed me a suspected commercial use and disconnects all connections after 1 minute and blocks connecting to it for 10. I also use it to connect to my synology nas when I'm not home. The teamviewer support is only for paying customers so you can't even contact them. Why the fuck do I have to pay to get something resolved they screwed up? I know I can be glad that teamviewer is offering a free service but when they offer something for free they should at least get their stuff working.12
-
Why is it most companies think being “agile” simply means “let’s say we do work in two week blocks” but without planning or showcases or reviews, without estimations, with ad-hoc tasks inserted continually, priorities changing, tasks moving to the next “sprint” over and over …
But yes, these companies proclaim they are “agile” and do “two week sprints” when it is nothing more than chaos and rhetoric.6 -
Spent 2 days refactoring code written by our "offshore team". I've done refactoring on the same code in the past, probably upto about a week in total of refactoring now. The code looked like it was written by someone who had literally just finished their first "Hello World" app - loads of code blocks copied and pasted instead of declaring reusable functions.
The whole thing should have been done by us in the first place.
And yet our money-conscious company wants to employ more of these developers. Cheaper than us? Sure. Quantity over quality though, but I guess money is all that matters to the big cheese1 -
I promised myself not to fuck too much with new JS frontends. But Sveltes premise seems interesting enough to check it out and the concept of reactive blocks of code in JS sure is interesting.
This language keeps evolving as well as its tooling. I think shit is pretty amazing.14 -
Third party vendor whose shitty API we have to use as part of our application blocks our account IN PRODUCTION without even telling us every time they have a slowdown because of course it must be us. Yeah, I didn't want to go home anyway🖕1
-
started using vim just for shits and I gotta say it's been a massive pain in the ass.
wanted to indent like 7 blocks of code at once. 20 minutes later I've tried several methods, none of which indent it 4 spaces like the rest of my file.
there's like 15 different ways to indent shit. Jesus Christ.
then I had to sift through countless people in heated vim debates on SO.
I am not worthy9 -
Ted, Akka is a damn Scala library. Yeah yeah, I know you can fit it into your Java project if you really want to, but damn, you just end up with ugly Java syntax that tries and fails to be Scala. Just bloody well use Scala. Or use something more Java-esque like reactor if you *really* want to do async stuff and stay in Java land. But please, please don't use Akka in Java. The thing is a mess. I know it's asynchronous which in fairness does help in this application, but seriously just....
Wait... hang on... WHAT?! You're using the whole thing in an asynchronous reactive chain then just calling join() on everything?! What do you mean it's "mostly asynchronous but just blocks at the end?!?!" Do you like watching people suffer for no purpose, Ted? Do you?3 -
tbh my high school curriculum revolves around the fact that my compsci class is run by code.org
i fucking hate those videos and drag and drop blocks to learn how to code
in 10years when im (hoping to be ) a software engineer, will the company have drag and drop? no. they will have keyboards and a screen. teach me how to fucking type code and not blocks please...
code.org has tainted this world just like how puberty tainted my dick recently...
teach me how to code, dont teach me how to drag and drop..4 -
example of my commenting on bugs to fix later
Before I found devrant:
//1-3-18
//when user goes to send mailing for first time
//we need to remove the message from admin
//which only displays on first time login, but
//may block the data we are looking for
// then return to parent
After DevRant:
//9-8-18
//when user goes to send mailing for first time
//there's a fucking stupid message that they
//have to read once which blocks the data we need
//so, goutte click that shit, then return to parent3 -
In my last year of high school (for those familiar with the Indian education system, that's Class 12), for my final project I made an image compressor/decompressor in Turbo C++ that used a discrete Fourier transform (DCT, actually) to work on 8x8 px blocks of images. I based it off some stuff I found about how JPEG compression works. It worked even better than I'd hoped even though it was slow as molasses (I programmed a naive Fourier transform instead of using a FFT variant). I remember jumping with joy all around my room at 3 o'clock in the morning like an excited gas molecule in a box. Fun times.
-
After working for 3 years as a dev , last month I bought my first Noise Cancelling Headphones (Sony xm3). Best decision in my life .
It blocks all the chatter/noise from open office and lets you focus. Now I can get shit done in the office itself with all the mfking monkeys (my esteemed colleagues) chirping around .
Best decision of my life 😅3 -
Down with Helvetica code blocks in devRant!
When you write something inside `these quotes` in Telegram, it gets rendered in a monospace font.1 -
Fucking exam on Electronic Building Blocks... (aka Arduino). Program this thing ON GODFORGOTTEN PAPER! And then these retards put in that assignment line: max 5 lines of code, for a function that does nothing more than divide two shit eating numbers! And half of my apparently vegetative class fails this! When you were allowed to use your book and notes!
Oh and also, here's a seemingly pissed over image of an arduino with some peripherals, draw the wires. Draw! How the fuck do I keep 21 cocksuffocating wires on a page without overlaps or unclarity? -
I'm wondering if recruiters are just as irritating everywhere or that this is just the shitty situation we have in the Netherlands.
I was once called by an unknown number and heard a typical recruiter story. Since i never heard of or spoke to this person i kindly asked where he'd get my information from. Since mr, Recruiter didn't answer and just kept selling his great position i hung up.
He called back.
I picked up the phone again and he told me there were connection issues. I once again asked where he found my number. And again he just acted like he didnt hear me and sells his great position.
Hangs up and blocks the number. Go f(...) yourself damn recruiter!7 -
Why for fucks sake can't I motivate myself to finish my thesis?
I mean I guess it is because I already got my third raise in my current (full-time) job because of hard work, which left not much time for side projects (or thesis writing).
On top of that, there is nothing which forces me to finish. My Prof. does not really care. I would probably not earn more because of a higher degree. Only thing is I have to pay the fee for enrolment once a semester.
Also, going back to my thesis project after some time, and having to upgrade all the npm modules in there does not help.
Even though I already have a working backend and proof-of-concept app, something blocks me from finishing all this work.
It is a curse. I would do so many side projects, but I tell myself that I first have to finish my thesis before doing anything else.
It is some kind of loop and I have yet to find the return condition.3 -
That would be Sony.
Mainly because the of PlayStation 4. I mean what kind of company blocks the access to third party’s account so you can use it only on their console (the Fortnite situation). That’s literally saying “we own you, bitch”. Even Apple doesn’t do that kind of crap.
Fuck Sony and their PlayStation. I’m sticking with Xbox. Yes, it doesn’t have as many of exclusives. Yes, it’s made by Microsoft - the same company which made Windows 10. But fuck Sony even more than them.2 -
Shadow DOMs – the WORST invention in web standard history.
As a user script and user style developer, the shadow DOM has been a massive headache. Shitow DOMs block custom CSS, blocks parts of the page from being saved, and blocks user scripts and browser extensions. Shitow DOMs are an utter nightmare, especially closed ones.
And now, Google Gerrit's entire user interface is shadowdoomed. The only way to save pages locally is to scrape the JSON from the developer tools, but that is not possible on mobile.18 -
I didn't know why I didn't ever told it:
I did a few multiplayer projects in Unity 4 Engine (beloved old multiplayer) and I wanted to create a custom dedicated server within the Unity engine.
I created a new project and started programming. The clients even connected to the server but I couldn't figure out how to sync the world's because the blocks the world was made of existed in both projects,but had different IDs (didn't knew there were IDs).
After a bit of googling I found out that it isn't possible to sync these projects. Tired of myself giving up I tried a different route and found out that these IDs would sync of you exported them as asset pack. So I did!
And it worked ❤️❤️❤️❤️
So I could have a less power heavy dedicated within the unity engine.
(PS: I knew I just could made a server in C# or so with sockets and what ever, but 12 year old me doesn't knew sockets) -
Couple of the senior devs were reviewing some legacy service code, vilifying everything that was done. Too many files, not enough files, too many lines of code, etc. Standard Monday-Morning-Quarterback nonsense. Then they came across Thread.Sleep() in various exception handlers. The passive-aggressive -bleep- hit the fan. 'Idiot', 'Moron', "People don't know how to code..", etc. dog-pile rants for a good 5 minutes.
I thought "Code is only a couple of years old and had very little changes..I'll bet the original developer is still here."
So I look at the change history and sure enough the original developer was one of the dog-pilers, and the other dev changed the code just last year. Comments like "Major refactoring", "Increased Performance", etc and the changes were only removing comment blocks, and other stylecop suggestions. Oh...there was one change was Thread.Sleep(6000) to Thread.Sleep(1000). I guess that did technically "increase performance"
Would I get fired if I said "Shut the -bleep- up you -bleep-ing -bleep- heads" ? Hmm...probably. Better keep my opinions on devrant. -
I fucking hate that ISPs just decide to block certain websites!
Sky for example blocks a bunch of things related to Tor. You can't go to the website, and can't even install stuff like tor browser from AUR, because it has tor in the download url. The connections simply time out.
Yes, I can use a VPN to install Tor, I'll probably have to do that. But fuck!!! Many VPN providers' websites are also blocked.
This seems to be common practive. In my previous flat we had Virgin. They blocked the website of all VPN providers they could find, and even kept me from establishing a connection to some of those providers. In that case I could donwload Tor (surprisingly) and then tried a bunch of clients until one of them worked.
It's fucking pretentious, and I don't think I'll find anything about blocking perfectly legal resources in any of their T&Cs.5 -
Science says it can't be done! You can't have an iPhone AND preserve your privacy!
Yet here I am, doing just that. Just analyze apps you use and just quit using fucking leeches like instagram and whatever facebook puts out. Also, do this:
1. Disable iMessage, iCloud and FaceTime
2. Opt out of sending analytics to apple
3. Use VPN with DNS that blocks trackers
4. Disable background app refresh and location access
Most importantly, quit using whatever uses personalization to spoon-feed you content that exploits your confirmation bias. Quit watching youtube. Switch to DuckDuckGo or whatever search engine without personalization.
If you don't like apple and don't care about cameras, just buy a Pixel smartphone and install Calyx OS. Fairfone with /e/os is also a good alternative.12 -
My brother wanted me to post:
Devrant is so secure, it even blocks passwords. Look here is mine ***************
I was curious to how many would fall for it. But I was afraid It could be seen as malicious intent3 -
my longest coding session was from 10am to 2am, so 16hrs
was in first semester of uni and we had to build the game "breakout" using a predefined guideline.
i had to program the collision detection of a ball against some blocks that had to be destroyed
took a long time for me to do the task, as i'm not the fastest coder (and often neither the smartest😅) and had to fight a bunch of bugs too.
in the end it kind of worked but the performance was horrible at best -
Its been so long since I had a weekend in which I wanted to be productive and also was as productive as I wanted to.
This weekend everything turned around. Last week I learned to use blender to make basic models while I was traveling to and from work.
Today I was really productive and started working on my VR wooden toy block building game.
I now have an infinite blocks box, with randomly colored blocks which you can color yourself as well.
Gonna do performance and textures tomorrow.
Cant wait until Ive finally made a playable game, its been 4 years now. -
CORS is shit
Stupid useless shit that protects from nothing. It is harmful mechanism that does nothing but randomly blocks browser from accessing resources - nothing more.
Main idea of CORS is that if server does not send proper header to OPTIONS request, browser will block other requests to that server.
What does stupid cocksuckers that invented CORS, think their retarded shit can protect from?
- If server is malicious, it will send any header required to let you access it.
- If client has malicious intents - he will never use your shit browser to make requests, he will use curl or any ther tool available. Also if server security bases on something as unreliable as http headers it sends to the client - its a shit server, and CORS will not save it.
Can anyone give REAL examples when CORS can really protect from anything?33 -
The Director of my employer's Firmware Engineering department, an older guy, sent out a department-wide email introducing a new hire. IN COMIC SANS.
Even though I am a new employee myself, I cannot let a disgrace like this pass unaddressed. So I politely and as respectfully as possible urged him not to use Comic Sans in a professional setting, and even offered rationale & alternatives.
He essentially responded, "No offense, but I'm gonna use whichever font I choose," but with that one simple sentence riddled with grammatical and spelling errors.
Shortly afterwards, he then sent out a mass email introducing me as a new hire. With my provided bio in a business-appropriate font, sandwiched between two hideous blocks of Comic Sans.
Honestly, how the fuck do people like this make it to a managerial position? >_>4 -
The ridiculous and shameful story of how simply "installing Windows" saved my hard drive from the garbage.
(Also update on https://devrant.com/rants/3105365/)
It started with my root partition turning read-only all of a sudden. Some quick search suggested that I should check the sanity of my hard drive, by running a SMART test, which failed of course. I backed up my data using ddrescue and ran a badblocks over the whole thing, which found around 800 unreadable blocks in a row. I was ready to bid farewell to my drive, but as a last resort, instead of the trash, I brought it to this place where they claimed they can repair the damaged hard drives by "surgery".
To my surprise, they returned my drive the next week, saying it is all well now, and charged me 1/8 the price of a new drive, with a refund guarantee if there was a problem in two days. There was a problem right there: I ran another SMART test which failed again, and also the faulty blocks were still unreadable! So I stormed the place and called for my refund, showing the failed SMART report. The only answer I would get from the staff was "Have you tried installing Windows?".
I usually try to be patient in such situations; I really don't like to declare publicly that "not everyone uses that stinky piece of rotten software you call an OS", but their suggestion seemed totally irrelevant! I got all types of IO errors all over the damn thing and they told me to install Windows. Why? Because this was the only test they would rely on. At last I managed to meet the "technician" there and showed him the IO errors: tried to read the bad sectors with dd and failed. He first mumbled somethings like "Have you checked the connector?" or "Are these the same blocks?", but after he ran out of bullshit, he said "Why don't you just install Windows first and see if that helps?" and I was ready to explode in his face!
"You test drives by installing Windows, just because it will make a nasty NTFS partition and probably does an fsck? If you shut your mouth for a sec and open your eyes you'll see this is a shit load of IO errors we got here: You can't install Windows, you can't even make an NTFS here, because it will try to zero-the-fuck-out the damn partition and it will face the same fucking IO error that I'm showing you right now in almost one single fucking system call!"
"I don't know this kind of test you are using. We have our own tests and they've passed successfully. So all I can do is to give you a Windows CD if you want."
"I don't need a Windows CD. I will just try to make an NTFS partition on the error spot and I will fail."
"Ok. Then call me when your done."
I was angry, not only because I felt they're just trying to avoid a refund, but also because I knew I've lost my drive. But just with hope that I could get my money back, I made a small partition over the error spot and ran `mkfs.ntfs` on it. I was ready to show the failure to the guy, but I looked more precisely and saw that "the filesystem was created successfully!" I was sure something is nor write. I then successfully mounted the new partition, write over it and read it again. I even dd'ed the blocks again, and this time there was no IO error. All of a sudden everything was fine.
I didn't know what happened. Maybe it just needed a write, while I'd just tried to read from those blocks. But anyway, I didn't called the technician guy again. I just thanked one of the staff there and said that my problem was solved. I then ran a successful SMART test and then restored my backup. Ridiculous like that.
I'm still not sure if my drive will continue to live with no more problems. I also have no explanation for what happened. (I appreciate any help on this https://superuser.com/questions/...) But I really like to see the look on the poor guy's face when he finds out that trying to install Windows just saved my ass!11 -
I make code that lets the blocks enter an inactive state so that they stop ticking after they are no longer able to spread to any nearby blocks.
Obviously something in this either broke, and the blocks never turn inactive. NEVER.
This actually has some dire consequences, including, but not limited to, this:2 -
As a kid when I was coding I used building blocks and I used some yesterday for Lego robotics at a science center and I felt really dumb because over 2 years since I was 10 I used actual code like typing it and it feels much better than blocks and just over all building blocks just make me feel so stupid😵2
-
Okay, seriously, who invented merge conflicts? I want names! It's like playing Jenga with code, hoping your masterpiece doesn't topple over. I've seen more ">>>>>> HEAD" blocks than actual code lately.
Can we all agree to commit more frequently and save my sanity, please?5 -
Disclaimer - Day in the life of a whitehat student.
Whitehat Whitehat Whitehat
What is this????
When I attended my first white hat jr online free trial class, I got to know that the teachers does not know the difference between java and javascript. Infact they were saying blockly as javascript. I was knowing the difference between the same. There were 3 types of courses -
***Note : - This information is taken from the whitehat official website***
1.) Introduction to Coding :-
Sequence, Fundamentals Coding Blocks, Loops
(Teach us to drag and drop blocks of code.org(blockly))
2.) App Developer Certificate:-
Events / UI,Conditionals, Complex Loop, Logic Structures, Turtle Coding
(Advanced drag and drop(blockly))
3.) Advance Coding with Space Tech -
Extended UI/UX, Rich GUI app, Space Tech simulation in Space Lab / Game Lab, Professional Game Design.
(GUI - with tkinter(python), Game Design - Blockly(code.org))
These things are rubbish ......making GUI's is simplest with tkinter and the students who make games (with code.org) submit their codes to the whitehat community (because the teacher says "they will compile it to an android app, then you can publish it to playstore" --- this is for 1% students who are able to design their own games).
The thing whitehat do with code given by 1% best students:-
Export to HTML from code.org
Download HTML to APK Convertor
Setup SDK
Successfully converted to APK!
Publish it to Whitehat Jr console account
Credits of the students
Income of the exporters
Rest all students will only think to be the CEO of google one day.
My Opinion - StackOverflow, Unity for Game Development, Android Studio, Dart, Flutter and Kivy (using google colab for compiling the python code to an apk) for app development and Flask, HTML, CSS for web development.7 -
My client installed a new proxy that severely blocks out most of their own intranet, including their IT service desk. We can't raise tickets to let them know and their email just redirects us to their service desk. Fuck me these guys are idiots.
-
Since my ISP doesn't allow port forwards on that port, does anyone want to open their port 445 (if not otherwise occupied by Microsoft-DS) and have netcat reply an empty string or so any request (such as an empty string) sent over TCP (or has anyone already done so)? It would help me out a lot with testing out some networks full port range (since portquiz.net's hoster blocks that port) and would take close to no bandwidth for you.6
-
Made a game, it was like tetris but you had to connect at least 3 blocks of the same colour.
I worked on it for like a month, about 50h overall, and it was downloaded by 10-11 people all over the world and then removed after like an year or so for no real reason.
I then stopped making games.
I was too depressed by the whole thing3 -
My idiotic teacher doesn't know the difference between Java and JavaScript , asked us to use a old version of Code::Blocks(some c/c++ IDE) just because she thinks that a update would modify compiler in such a way that basic code would never give the same output , she blames the compiler just because she isn't capable to see her mistakes and gives me bad grades just because she walked through college and I didn't.2
-
Stop commenting out code blocks!
Either fix your shit or delete it.
I am open to argue what fixing may mean, as it is perfectly fine to make your broken code not reachable, e.g. via feature flags or skipping certain tests. Yet never ever should you comment those blocks!
So you say you want to keep it for historic reasons? You know, that is why we use version control! If you ever need certain functionality back, you can restore that state.
Each decent IDE also offers a local history where you can even restore code blocks that weren't even pushed or committed. So use that!
Commenting out test cases is a really bad habit, as you have no reminder that you shall restore it.
And no, a TODO and a FIXME won't count as a reminder as you have to actively look for them. And we all know how well that goes, don't we? (One time, I found a typo of a `TDO`. So even with a regular lookup for TODO, stuff will slip.)
Each test suite offers you ways to skip tests if there are valid reasons why they should not fail the build temporary and they offer colorful feedback. Yes, that means that your tests won't be green, but guess what: That's a feature! They shouldn't be.
That yellow is a fine reminder, aka warning!, that you should really fix your shit.
Commented code screams: "I DON'T KNOW WHAT I WAS DOING!" and it confuses the hell out of other developers ("Was this commented because of debugging purposes and should be active again or can I safely delete this!?") and adds verbose crap to the code base.
If you find yourself to be in a place that you comment code a lot, I also argue that your workflow is broken.
When you are using a decent debugger, there shouldn't that much of a need to comment in and out a lot of code in order to reason about your code-base.3 -
Believe it or not, I actually had a great day of development today and don't feel the need to rant about anything!
It was one of those rare days when everything went well, and instead of running into road blocks, you actually learn about things that open new doorways, and the one thing I did struggle with received an answer on Stack Overflow within minutes that was both exactly what I was hoping for and as a bonus, not even condescending.
Dang, dev doesn't get much better than this! ☺️ -
I never wanted to be a programmer. I spent years in education being confused and bombarded by information that was poorly explained and made little to no sense.
Then in my final year after having a basic understanding of the building blocks, I just sent out to solve a problem >I< had.
It all just clicked into place and it turns out I had learned but perhaps didn't have an appreciation of how to apply it.
I'm guessing my education was too theoretical and not enough practical. -
It's now. The last few months. I'm starting to think I might have to leave developer's career [fucking broken messenger heads.. Made me post this rant prematurely]. I'm starting to feel that I have so much more to offer than just write code, solve minor problems by moving miniature blocks here and there.
As for now I've moved to Performance Engineers. Will see how that turns out. But I have a feeling I won't feel like staying there for long either.4 -
Osmo coding kit for kids. This iOS program teaches young kids the building blocks of coding by using a fun game with a super cute monster mascot.
imgur.com/YwvTdFd -
Best part of being a dev
When your sysadmin father blocks all social websites and installs keyloggers but you set up linux instead6 -
When will devRant support code blocks?
Like `code here`
Or:
```
Code here
```
I mean it's a programmer community...8 -
Sooo, turns out, management and senior PMs, technical PMs, service managers and you name it forgot an entire system.
A complete eco-system of applications, queues, services, load-balancers, deploy pipelines, databases, monitoring solutions, etc, etc, that if not handled correctly could effectively put the entire production line to a standstill.
So, waaay too late they make this discovery. In their ignorance. Just utter incompetence. Huge project. Millions of $. And they forget it. Months of meetings probably. Workshops and gettogethers at cozy hotel complex discussing ”the project”? And they do not understand some of the fundamental building blocks…
Basic engineering for these guys must mean something completely different.
I can’t even.
I am so fed up with this organization. It does not stop either.
How is this possible…
Do they even have half a brain? -
When you use an app for developers to rant about code but you cannot write nicely formatted code blocks... 🤔3
-
So in our last retros some of my colleagues suggested to (forced) limit the number of lines per method in order to "maximize our code quality".
In the one hand I can see the benefits of this, such as easier testability when having more sperate testable blocks of logic.
But on the other side their code contains lots of such one or two lines private methods which get most of the cases not more than one time called. (And which I then can't even test separately)
I don't understand how this should help...
Is this really a thing? Am I just not "clean" enough?
(it's c# btw)3 -
wow, I have to say, tail recursion, slices, iterator transformers and shadowing are great building blocks for parsers. I'm actually way faster at defining and modifying procedural parsers with Rust's tools than I am with Chumsky. I actually understand which of my checks are greedy and lazy now!
-
I'm crying internally. The project(s) i work on have configuration files with dev and prod-info, the prod is just commented out. But thanks to reasons everyone has a different dev environment so there are many dev-config-blocks. I just use mine and carry on, BUT SOMEONE ALWAYS COMMITS THOSE FILES. I JUST THOUGHT OF IT NOW, BUT I'LL PUT THOSE FILES ON A BLACKLIST. FROM NOW ON YOU CAN ONLY COMMIT THESE FILES DURING A FULL MOON.
There's also this codebase to create licenses for our products. The license data fpr every customer is there, commented out. If you wanted to create another license, comment something and comment out another thing and you're good to go. THAT'S NOT WHAT VERSIONING IS FOR.4 -
The only good thing about PHP is that the argument to catch blocks is called $ex which entertains my childish mind.5
-
This huge OS project, Magento, have TONS of guidelines, most about decoupling,, it has an extended MVC structure with even more layers than those 3.. All good in theory, guess what.. Guidelines is not followed..
Changing order of two blocks in the view breaks business logic.. So much for decoupling.. You would not believe how many hours I've spent debugging this..
And I can't believe I've dedicated 12 years of my professional live to this platform..2 -
for some reason I decided to re-invent async myself ground up for no reason even though I've last month taken up the philosophy "as long as it works, make it as janky as possible" which was actually very invigorating and fruitful in the end
but now I feel overwhelmed, there's no resources, I've never done anything similar, nobody else knows how to do this, the AIs don't know how to do even small basic building blocks of this, there are no similar repos, and I have self-doubts because I went against my new-found and successful principle
and also my brain feels restless and stressed as fuck because brain issues activated maybe due to change of drugs
so I kind of wanna explode and scream
and then maybe cry
and then maybe I'll exhaust myself and be able to focus again12 -
Yo guys any idea how does Netflix blocks screenshots? Yea not technically disable it, but yea you know what I mean. Any idea?4
-
markdown is not good enough! the tools aren't there for non-devs and there's no concordance on moving forward *compatibly* for anything other than headers and __possibly__ lists.
md has been around for years and still no consensus on comments, meta data, css, data imports, etc.
i could never in good faith recommend to a non-dev to use markdown, even though every academic and professional writer from legal to journalism should exclusively be using markdown to write and store their documents. the data portability and ease of search, retrieval, collection, distribution, etc of markdown compared to pdf or docx is enormous. markdown is the hex format of text, the perfect layer of data and visual so that the user and the computer can both operate on text as blocks of data rather than weirdly styled paragraphs that need to be reformatted BY HAND for citation-style or journal format, or paper size. FOR EACH SUBMISSION. Academics literally rewrite their 100-page papers to accommodate up to 10 different submission requirements.
They could be clicking MLA vs Chicago and/or using a journal's stylesheet to recompile for its styles.
Today there is some support from zotero et al to take away some of the pain, but it makes ZERO SENSE for writers to have to keep and store and keep up to date, multiple versions of the same document. Git pull does not exist for them. But the worst part is that git isnt the solution to their problem. They need a compiler more than they need version control. But they also desperately need vcs. They ALL literally have a million files named "dumdum.dumFINAL-3084_lastversion \2020, this one.dum".
They dont have git or anything like it, because they need a line-by-line solution like markdown for git to become effective.
All of writing is basically mired in the fact that people cant even roll up their paragraphs and see what the fuck it is theyre saying. Most writing reads like a long scroll through some nonsense that goes nowhere. Like this rant. but the point is that markdown and line-by line editing actually produces more logically sound writing. You start to think in terms of defining ideas in blocks, ... like code.9 -
Are automatically configured antivirus tools simply shit or is it IT , who obviously does not know what their software does?
* AV blocks parts of my dev tools
* Ticket to IT
* Result: AV blocks all my dev tools
Okay ... thanks?3 -
I enter a newspaper website. It shows me the article, but 3s later it blocks the page with "Oops you gotta subscribe!" I disable JavaScript and the popup doesn't show up again.6
-
You know what I fucking LOVE? Cross platform. I love working with shitty JavaScript CRAP that not only is interpreted (i.e. parsed and processed for EVERY user for EVERY execution) but is also just so fucking easy to debug. I love the fact that management is making not only architecture but technology decisions in the name of initial development time, forgetting that they are exponentially increasing maintenance time. I can't get over my affection for waiting for the bloody CI to build both platforms and because some fucker commits his shite straight to master blocks the generation of BOTH platforms artifacts.2
-
DevRant has many privacy-conscious people and honestly just people who don't like when their personally identifiable data gets shared.
Yet, DevRant uses Carbon Ads owned by BuySellAds. Here's what their privacy policy reads:
"Some Personally Identifiable Information may also be provided to intermediaries and other Third Party Service Providers (defined in part (4) below) who assist us with the Services"
You know what's the funniest thing? In "part 4 below" they never actually state which companies do they share personally identifiable information with.
Just a quick reminder that when you use DevRant, your personally identifiable information may be shared with any amount of third parties, and you could bet a lot of money that the list includes Google and Facebook because of remarketing. Remarketing is a fancy term that means not selling personal data but instead giving it away for free.
Use AdGuard or any other browser extension that blocks analytic scripts. Buy a Raspberry Pi Zero W and make yourself a PiHole. When you're using DevRant mobile app, use analytics-blocking VPN.19 -
I hate the US education system, its just designed to fuel capitalism. It keeps getting less funding so that actually passionate, intelligent people get kicked out and replaced with people who only want to be a teacher so they can have power over others.
Why do they block news websites? Why do they block github, so their own robotics team can't even access the essential building blocks for the robot? They make everything more complicated and for the reason that it might distract you. Maybe just make topics engaging and not boring asf, just cramming for the exams so the school gets more funding. Maybe prepare students for jobs, allow them to do projects, pursue classes that interest them, and have any sense of individualism.
Anyways, yeah, the school blocked github so I can't do my FBLA project, I can't access the code for programming our robot for competitions, I can't even download software required for half of these classes. I have a Linksys router, is there any way I could set it up to bypass the firewall?15 -
We’ve been discussing it, from a lot of angles. We mixed in the domain constraints for this feature and how to build it. I’ve been at the drawing board, and at the keyboard trying to get it into code. FINALLY I have something to show for the hard work, a working proof of concept. It felt good. There are a lot of things still left to polish, but we have most of the building blocks. If that ain’t the best feeling and the reason to work in this field. Left the job yesterday with the feeling that I’ve accomplished something, that’s not often since it’s otherwise mostly meetings and boring code reviews. Satisfaction.
-
(Time to actually code feature + time to debug it + time for unit tests to pass/add) * 1.5
Works great in my case unless there are some big major road blocks -
Having my first memory leak problem ever. This sucks. I've tried what seems like everything. Forcing garbage collection every time I press a key to try and debug the issue. Fuck. I have 'using' blocks everywhere, and I have no idea what I'm doing wrong.3
-
I am put to the task of creating a Chat Robot in ChatFuel.
Cool, I thought at first.
Cool is not what I would call it at this point..one week later.
The size is a factor at play, for sure, it needs to point to 27 cities and give individual information, handle e-mails, phone, automate e-mails.. a bunch of stuff.
Now, I am located in Sweden.
{{city}} as a set user attribute acknowledges Gothenburg and geolocation thusly worked fine for my boss. But not for me, and won't work for any other city.
So..Global AI calling for static blocks it is... 27 blocks...
For two languages.. 54 blocks...
Static pointing to the first answer for every individual block multiplies this by a factor of two. 108 static blocks. Fine.
I have since realized that my ChatFuel-Luddite ways were limiting the expected performance of the end result and learned that most other set attributes in ChatFuel work fine. Yay.
So we set up everything the last 54 blocks need to do with user attributes and to my surprise it works, really well at that. The answer from a user that is a correct city puts you into a block that is a series of questions using user attributes, both {{first_name}} and {{last_name}}, asks for e-mail and phone, displays an image and stuff like that.
Now.. as I attempt to copy these blocks..
THEY JUST POOP OUT CHUNKS OF THE ORIGINAL BLOCK. IT'S INCONSISTENCY IS STAGGERING. IT NEVER REALLY COMPLETES THE DUPLICATION, NO ERROR MESSAGE OR ANYTHING.
Which then reminded me of when my boss asked why everything was botched earlier in the project, at that point I copied the entire bot as a fallback and worked with my change in the copy first for safety reasons, didn't work, copy wasn't entire.
Wasted fucking hours on this.
I'm glad my boss is cool, and the job is easily worth it. I actually think that the design aspect of ChatFuel is nice, and the people behind it are kind in the facebook group and all. I don't think they're trying to be mean. But holy shit.
This has been a mental anguish that levels pissing bleach filled with fire ants.
" You could've easily solved this with APIs and third-party geofencing services ", yeah, but their services won't stack for the customer, nice attempt though.
Deep breaths.1 -
So today I logged into devrant and noticed that all of the ++ buttons were gone. Apparently the Fanboy's Annoyances filter list (which I enabled recently in AdGuard) includes the "plusone" CSS class, which is the class name Devrant uses for the ++ button. Whoops.
I think I might remove that filter list entirely. There's a lot of other very non-specific stuff it blocks that might break a lot of websites.1 -
I saw somewhere here a super tutorial to devrant tags, can you link me it? It had a picture with no/yes connected blocks.
Search is not really helping to find it so far4 -
This is my first "Fuck you Windows" post. I just got a warning from GitHub that blocks me from using it;
"You must update your password to continue using GitHub.com"
Who the fuck are you? I am risking to be hacked. Why do you care, you just warn me and move on. How dare you block me and force me to use better password.19 -
This code base can't upgrade to 5.4 because it depends on register_globals. The files affected has no indentation for else blocks. Randomly indented with space and tab. On top of it all, one of the previous devs were dyslexic. Save me.
-
I can already imagine in the future:
Remember back in the 10s when there was quantum computers with the size of a room for tens of thousands of dollars? Now everyone has one implanted in their head with 100 times the computing power! With the old hashing algorithms we could mine hundreds of blocks every second just with thinking about it1 -
Php suxx asss. I`m at my second php dev job and I recommend all newcomers to stay away. Both projects were full of shiat developed by people with no technical background before. The current project I work on is just a bunch of nested if else like 10-15 blocks and after you finish booom there s another block of ifs . The fucking code looks like a wave. There were also some files named like file1.. file15 . Fml4
-
Just noticed a thread on r/programmerhumor about bank code intentionally adding delays with all these JavaScript code blocks of how it's adding sleep cycles in.
So I spent an hour reading the documentation and wrote up an over engineered solution in COBOL just to prove a point.2 -
I’m proud to announce my collaboration with IZIPIZI France and Carl Zeiss. Enter the Antibouba Glasses!
Any successful public persona knows how important mental hygiene is. Our product is aimed at public personas who are either mentally special or not yet used to haters.
Antibouba glasses work like this:
1. You put them on,
2. You can’t see boubas and anything they broadcast.
Works like a charm with any medium including real life. Also blocks bouba-insinuations of non-bouba people.
Comfortable lightweight frame, highest grade oleophobic coating, also blocks 60% of blue light.
Dm me to make an appointment. Provide your kiki certificate to be included to the shortlist. My telegram is in my bio.15 -
What fantastic bullshittery.
When a client calls on a private number and that for some reason blocks you from calling back. -
Can we invent a firewall which blocks out all the shit about: woke, alt right, left, right, politics in general, global warming, aging of population and the rest of scary or extremely divisive stuff? I know which is impossible because of HTTPS but if it existed I would gladly install it on my home network.10
-
Every time windows blocks you with a small window, Gates cums a little. Seriously this OS is not making you any more productive2
-
So I moderate a few facebook groups and they ask questions like "why is the go button greyed out" and provide blocks of code written on paper then ask us to debug them.
When did new programmers become so bloody stupid I recall hiding in a darkened corner for like 3 years before asking anything online?1 -
incredible how many clowns are out there... saw a guy asking about "blocks" and "plugins" on reddit about gatsby... what is this, 2001 with PHP? GTFO or learn your shit, its clear you are an absolute clown. its 2023, nothing is hard unless you make it hard (deep truth that only the good ones will understand; stubborn idiots will remain stubborn and bitter)
i'm too wasted too put in tags; you already know what they would be
on the bright side, rewatched harry potter 1... damn i gotta reread the books again, fucking classic stuff
inb4 jk rowling haters; you'll never even have a thousandth of her genius you stupid illiterate fucks
i'll die on this hill infinite times like fucking edge of tomorrow3 -
I don't know if many rememeber me but at one point this year I had to turn UDP basically into tcp, handshake, packet ordering, resend on failed, ACK response, and 4k bit aes encryption. Fucking done, it works, signed the last version and pushed to client, client loved it, just what he wanted, paid out contract then turned around and asked me to setup his server for one day with no further expectations and an extra 250, said sure don't mind, as I am setting shit up I decided to test if his business isp really blocks tcp, guess what? NOPE IT WORKS JUSY FUXKIJG FINE AND I COILD HAVE KUST RIPPED A PREMADE CORE AND GOT PAID AND SET IT UP AND HE WOULD NEVER know, but maybe theirs some weird circumstances that require the core to be made only with udp, so after I was done I asked why only udp if his line allowed tcp? Requirements maybe? NOPE HE JUST DOSENT UNDERSTAND TCP FUUUUUUUQQQQHDJDIOAJEJDICJDNXIKZMZJDJCU2
-
The thing that you have a million ideas for pet projects and that this blocks your brain so much that you can't do any of them...
-
not sure if actual bad habit, or just a natural consequence of what i'm writing often being de-facto "exploratory code" so the "bad habit" is actually the right choice, or...
but very often when i finish a functionality and look at the first version of the code, and realize how bad it is, and how it blocks me to implement following features... rather than just fix/improve that code, i just want to nuke all of it and write it from scratch again, and "better this time", because it seems like much less work and effort than trying to gradually fix it "in-place".
it definitely feels like a bad habit though, because it often results in me deleting and implementing to completion the same thing 4 times in a row. -
I needed to align instruction execution to a 64bit boundary, for custom CPU architecture that I'm building. Basically the ISA had 3 types of instruction lengths; 16bit, 32bit, and 48bit. The core did 64bit fetch from the Instruction Cache, the issue was that if an instruction was in between two blocks of data I needed to fetch two blocks. That would impact performance a bit. So I had to modify GCC sources of the ISA that I'm using. So instead of doing it the right way, I just did it the lazy way and modified the GCC backend to print
.p2alignw 3, 0x00ff, 4
.p2alignw 3, 0x00ff, 2
On each 48bit and 32bit instruction to generate NOPs. And it did work lol. -
When I found out that the server I use weirdly implements SSH login.
For some very odd reason (probably a historical one,) you have to access the web-app console and press a button TO GRANT SSH ACCESS TO THE F*<KING IP ADDRESS FROM WHICH I PRESSED THE BUTTON. The server blocks the wrong IP addresses outright. And only one active allowed IP at a time. This totally obliterates my plan to perform CD on this server. Why can't I just register public keys?
Then I learned several months later that they introduced a new server plan that *does* support the public-key registration. :facepalm:
I'm divided on whether to change my plan in exchange for a rather significant increase in the monthly cost.3 -
Thanks to @nik123 I know have a new side project: creating an fs (or fuse) driver that hides bad blocks on block devices and makes them usable again.2
-
Weird idea i had while in the shower: Make a browser (or even better an addon for commonly used browsers) and find some reasons why people would download and install it. The addon blocks all the ads on the websites and replces them with your own adds. People who don't use adblocker probably don't care whether the website or the browser itself shows the ad. This would be somewhat unethical but apart from that I don't see why this wouldn't work.
If you actually go ahead and do this, feel free to do so but give me 10% or something.3 -
The client made us add an overlay that blocks the whole screen for any request. Guess what he wants now that he's seen it working? To press Esc to "close" it and stop the request.
-
You know all those times when you neglected to put anything in those catch blocks?
If this hasn't happened yet, just wait. Soon enough some lunatic's nondeterministic code will randomly break you will have to spend hours figuring out why because you never did anything with that error.
Of course, actually writing code for every mandatory catch block is even more of a waste of time, so empty catch blocks it is!1 -
Started work on a language interpreter and all is going well, until I realise I still need to implement a way of reading and executing code blocks and work out if statements... Ah fuck...11
-
Some of you guys noted that I am currently working on my own Java webserver/framework. Yesterday I encountered a small problem...
My fucking API I use because I love the HttpExchange Function is fucking without NIO! So every request blocks other requests....
You guys know any API like the Sun httpserver ( I know I shouldn't have used it in the first place ) where I can do things like in an HTTPExchange?2 -
Code::Blocks, because why make it look nice, bother having any auto-complete functions, actually ensuring all of the built in C++ functions work and not having the need to sometimes have to be closed down and restarted to build and run the code 😤1
-
If I kept track of all the hours wasted on issues due to overloads of functions called ToList() it would probably make up a sizable portion of the project budgets.
If I call ToList on a query object, it looks like I'm trying to serialize the query definition into some kind of array. That's what it *should* do with that name. Bonus if the object implements some generic enumerable interface, ToList makes it call your database, you can just toss the query into some json serializer that blocks while calling ToList for you, and people end up doing exactly this because the code turned out so much neater.
Because that's the thing. It's like people implement it because it's "neat" and the user shouldn't care about its internals. How many tears would be shed by just calling it ExecuteAsync? -
Today. Dropped in the middle of a project. Constant blocks. And no one will resolve them while demanding it be done next week.
-
When seeing all those rants about freelancers whose clients just "disappear", I wonder why a library /framework that purges / blocks the application hasn't been made already.
Just to be clear, I don't mean web apps in particular, but more like desktop applications1 -
The moment when Facebook blocks your account for being a PC Hater and bans the name entirely for No Reason!1
-
I came across an issue with Visual Studio 2017. I'm unable to collapse multiline comments, there is no - sign in front of it like with code blocks.
At home it is no issue and I can do this without problems.
Ive looked online and all I can find is people not being able to collapse comments in VS Code. And people who want to collapse everything but the comments, but the comments do get collapsed.
Is it a setting I cannot find?2 -
Why you should use sketchware and not use it at the same time regarding: encryption
sketchware the app is known to build apps by dragging elements to the screen then coding them with blocks or even write your code with the built in ide but there is one thing every developer fears. ah yes. the reverse engineers (or modders)
random guy [rates: X]: sketchware encryption is trash! are you serious?! string fog?! class rename?! i decrypted this whole app with the software i made >:D
sketchware dev wrote back to random guy: string fog isn't working because you decrypted sir! there is nothing we can do sir but email to our email and we will get back to you in a few and fix the problem
i have to say this is why i stick to android studio too many skids decrypt the C++ files or the mod menu just to edit stuff :) i also build some games im learning android studio game development but at the time lets have fun and mod other peoples games1 -
Ebay is a huge pile of freshly juiced garbage.
Their settings menu looks like its from 2005. And when it looks halfway decent the CSS doesnt load cause you have do not track enabled.
If you go to write their support, it returns an unexpected error.
when you use the shopping cart the number of items you have in it is not the same as the number it says that you have in it. And when you want to checkout that cart, not all items show up on the payment screen. Despite the item being shippable.
And the worst thing of them all: IF YOU THEN CHECK OUT ALL THESE ITEMS IT MAKES AN INDIVIDUAL TRANSACTION FOR EACH ONE. THUS THE FRAUD DETECTION OF THE CARD BLOCKS THE CARD, CAUSE TOO MANY TRANSACTIONS HAPPEND AT ONCE!2 -
While you developers are where you are, battling office politics everyday, scrumming, agiling and solving some of the world's toughest problems, I, for the past few nights, have been sitting for hours in-front of my computer, slipping into hour-long day-dreams while trying to determine my favorite ice-block flavor.
All I can say, is, it's either the yellow, orange, green, raspberry, cola, or the fairy-floss one.
And now I'm out of ice-blocks. ;-( -
that moment when your coworker doesn't know about shift+tab and uses backspace to untab blocks of code :') priceless guess i won't show let him know.
-
I finally got a working D&D Dungeon Master AI working right, a lot of actions have to be presented before the full combat round, but the results are all unique, but it still isn't creative enough to add more then 2 npc with conversation skills, I think there's some hidden blocks in the backend :/7
-
Im not a thumbnail maker but what does this look like? im using scratch btw lol has a lot of block lag that when u play projects you freeze for a bit , same with blocks , the only thing that kills lag is something better than chromebook or my pc definetly run 3d scratch games on that xD includeing an android emulator so i can go back to scripting!, (what does this look like tho?)22
-
Trying to help friend with setting up Code::Blocks so that he can start learning C++. Something is wrong with compiler as when he clicks 'build&run' nothing happens, tried many things, nothing helps. Anybody have any ideas?
I hate setting up those things for myself enough and here I am setting this crap for a friend :/5 -
!development related
The problem with working for a school is depending on the district and there policy the sites you need are blocked. The district I'm at today blocks devRant and I'm posting this using mobile data.
LIKE WTF I FUCKING WORK HERE YOU ASSHATS LET ME FUCKING ACCESS THE SITES I NEED/WANT TO VISIT. I WORK FOR THE FUCKING DEPARTMENT THAT KEEPS ALL YOUR SHIT WORKING!2 -
So I needed to go through a documentation of a program that was obviously developed by Chinese people, and went through some kind of Google translate to be in English.
This is an utter disaster: sentences that barely make sense, code blocks without a matching ending that cause the rest of the paragraph to be in the code block as well, code outside code blocks and without formatting, sentences unrelated to the section they're in, etc.
The program itself is great, but the shitty documentation makes me wanna kill whoever wrote it2 -
The most stressful day of month.
I need to put hours into hour counting programs so computer can analyze those hours using deep learning algorithms and pay me a wage I don't deserve.
Each program work differently.
One of it works inside the local company network.
Other one I need to connect outside from company network.
In all of them I can't make mistake or I need to write to someone to fix my mistakes.
One of this programs use java applet, other is simple php website.
One of them blocks row in calendar when I click so when I login again and click I can't edit this row because it's locked by me who is editing this row.
One of them is requesting me to provide my work in minutes.
I need to follow strict procedures to report any holidays or national holidays that I need first figure out when they happen.
Wish me luck.1 -
i had this crazy dream that there's a code ghost that erases the blocks of code i wrote and produces bugs to my programs... damn this is the first time i got really scared.
-
TryShift.com - I got this app hoping to consolidate my gmail accounts into a single place. I've been using it for months (maybe a year now) and I just can't see why anymore lol.
1) It logs me out every week or so and dashlane can't autofill my password from within the app so I have to go copy-paste it.
2) The app is basically just a browser
3) There are bugs and one of them just started with the only feature worth using the app for (unread email count in the mac osx dock)
4) The app blocks my macbook from restarting
5) The app won't update when I click "Update & Restart". I have to quit it manually and often it still won't update when I open it again.
UGH! Just uninstalled, opened both my gmail accounts in chrome, and sighed from relief.9 -
Key Generation.
Can anybody point to a informative page on how exactly the typical game keys in 4/5 char blocks are created and what data is held in the backend?6 -
Suffering from the cash flow blues.
Remote contracting roles are far and few between, and so far I’ve only found the one client, the problem is that because they’ve been burned in the past by contractors, they only operate on an order by order basis.
So we’re stuck in this perpetual cycle of issues > estimates > order > development > test > tweak > pay and repeat.
The problem is that there is always significant delay between the stages from both sides, either because they’re busy on stuff, or I’ve burnt myself out rushing to meet an estimate and having to take a bit of breathing room.
Don’t get me wrong, it’s great working in blocks of a few days to a week and then having some time to myself (and the money is nice too), but the cash flow inconsistency is super scary when you’re having to manage corporation tax, accountancy fees and a salary.
Anyone else have these issues / know good places to find remote contract work?2 -
Javascript library developers - FFS please stop using try...catch blocks to detect features. Makes the "break on all exceptions" debugging feature FUCKING USELESS.
-
Doing some stupid shit-ass presentation on powerpoint. I hate this kind of work, so brainless.
PM doesn't know anything on how to create presentations, each slide has 150k words at size 10, bazillion images with a width of 1x1, and badly taken/prepared. Fonts sizes are all different (still surprised she managed to keep the same font family) between blocks.
And when I tell her that: "well I expect from you to make to make that kind of suggestions and fixing it".
How to waste a brain. Going to spend my whole day on fixing this mess.
Plus at some point she had some keywords and she had the idea of "oh, let's make a word cloud thingy". All of these tools are useless, the only decent one is "PLEASE PAY TO DOWNLOAD YOUR SHITTY CLOUD". Won't pay a shitty dime for your shitty app that I'll use once in my entire life, plus your shitty shit is overpriced.
Today's going to be a bad day.1 -
My Android phone's built-in app manager blocks auto-startup of an app from Taobao 1200 times per day.
Hmm what a beast.1 -
!(rant)
I'm a student and I'm currently working on a project.
How do I get it to execute blocks of code depending on the type of value it receives in a variable?
or maybe
Should I just use some other method or workaround to do it?
I'm not sure if I should post my question on SO.
(I think it's a dumb question)
--
If it gets (request.getParameter) a string { execute code }
else if {
//gets an int
execute code
}4 -
Wifi used to be an issue in my incubator. Like I had mentioned in my earlier rant. There are many wifi's available now, but once when there was only one wifi available. That wifi network, was so terrible that it asks for human verification number of times even on google searches.
And the person responsible for wifi, is one of the most useless, undeserved person, I had ever seen
When a team from incubator talked to him about the issue, that this particular wifi's is pathetic, too many blocks and always asking for human verification, his reply was
"Just write 'S' after 'http', then it will work"
No doubt, everybody hates that guy.
But that guy cant be fired from job, because government. But he can be FIRED -
And right here is why I hate python
In all c like languages hell even in pascal code blocks are very well separated
I was wondering my code wasn’t doing anything and here the return block was being called at the end of the loop because of tabbing bullshit
At least I can choose to strongly type
Step up from js2 -
need to deviler a custom made website on a custom cms tomorrow, can't bring myself up to code... Any of you get these coding blocks? how do you guys overcome it?1
-
Damn those homework are pretty over my head and I’m not sure if I’m overthinking it all… Basically the assignment was, that we program a tool that fills as less LEGO base plates with a given number of LEGOs as possible.
For example you’ve got 10x20 base plates, and 30 2x4, 10 6x4, … LEGO blocks and now need to fill those base plates.
I’m now looking into rotatable rectangle bin packing but as said it could easily be that there is an simpler solution to that.
Any suggestions?3 -
Decided to try the beta build of WP 5.0 today to get a feel for Gutenberg block development, but it's not building confidence. Following the examples in the Handbook (Link: https://wordpress.org/gutenberg/...) and it's failing when trying to set up the rich text editor because apparently the object it relies upon is undefined. Been trying to track down the code for the basic paragraph box for an hour or so now so I can see how it's doing things, and haven't turned up anything useful.
-
Computer science in high school...
Creating algorythm block diagrams using a beta version of app that is 15 years old
and is FULL of bugs.
You do not even have conjunction or disjunction
operators, so you have to create more blocks in order to check more complex conditions, for example.
So I asked the teacher if I can solve those tasks
in C++ and the answer was NO ...
:(3 -
Woke up today with the idea that I'm gonna make a website for myself now I'm a high school student and have 0 income so i thought ight well i will just use the github student developer pack .... oh wait my school blocks it ...... ight ill get a free .me domain from name cheap..... oh its blocked too ill try porkbun and get a free .design domain shit that offers over Ight ill try . Freenom ..........................................(15min of loading later) ......ERROR: cannot verify you are human
well damn
¯\_(ツ)_/¯ Not today I guess
Can't get a fucken job cause i got school11 -
Week2 day 1 of beeing in the database team to learn more sql. Turns out the task they want me to complete is rather easy. So this is day 2 of doing exactly nothing.
Also im not allowed to do the task all on my own since the other apprentice has to learn it too.
These short blocks never have any challenging tasks to do *sigh* -
Blockchain based on SHA256 is now stuck at a certain block due to high mining difficulty, it appears that a miner, mined few blocks at 15 TH/s then stopped, my question how to resolve this issue and is there any setting to adjust (chainparams.cpp) in case this happened if no block is mined in a certain amount of time.2
-
I'm trying to generate a PDF from a website (https://devhints.io/react) on Ubuntu, but the two packages I tried (htmldoc and htmltopdf) both split the code at onto separate pages. I'm trying to have the code blocks on one page or start a new page and then have the title of the code block and the code block.
Any ideas?2 -
I only prefer { on same lines if not used for class constructors & try catch blocks..
Other than that, I adapt to the existing codebase styles, to not fuck up things further, even if it makes no effing sense (old project, styles & best practises changed 'a bit')..
So I guess I'm being influenced most by the old code and pass devs on the projects..1 -
Discovered yesterday that my company blocks IRC ports... Sad day. Why, why would you do this?! Oh the humanity! 😭1
-
So I was given a project to work on a week ago. The expectation given to me was completion in one week. I am a newbie hoping to keep my job so I jumped in head first (didn’t know any better). I ran into several road blocks which I communicated to my boss. Today, he (boss) is freaking out (blaming me for being behind the deadline). We have a meeting with the lead dev (who should have been doing this all along). He says wow. This is way too hard. Let’s scale it all back and focus on an MVP: 10% of what was originally requested. Of course. I get no thanks. No recognition for hard work. I’m just happy my coworker sees the work I’m doing.
- The Scapegoat. -
Random idea for the day.
An IDE plugin that allows intentionally mixing syntax from different programming languages in invalid ways within the same file.
BUT corrects code blocks to the right way by checking each code block detected as invalid say every thirty seconds. Generating code that is equivalent in output to the incorrectly specified code.
Any takers?2 -
So I have played around with this thing called LudoTune which is a website that allows you to make music by drag-n-drop music blocks together. It's pretty cool.
https://ludotune.com/1 -
That's it!! Code::Blocks sucks! It can't stay 5 minutes without crashing. Do you guys know a good IDE for C++? (Preferably for linux)9
-
GDB&Code::Blocks got drunk together and this is apparently normal now. For like an hour already.
I DIDN'T RUN ANY FUCKING CODE IN BETWEEN THESE COMMANDS WTF IS THE DEBUGGER DOING ????3 -
few days back i created real life example of live lock in multi threading
... and the whole night i was dreaming like i would have created dead locks in my real life... and i couldn't find how to remove those dirty synchronized blocks -
since my favourite phone automation app llama is no more i discovered automate. you build your 'scripts' with functional blocks. it's quite fun but debugging is messy.
mildly interesting: implementing a guided setup instead of defining the values directly leaves me with 77% setup and ui vs 23% actual task.1 -
Im very proud of myself for getting on scratch and putting in 200+ Code Blocks for 2 hours straight. Working on it to help an elementary school better teach math since I have a mild case of ADHD which made it challenging to learn. Hopefully this game will better help kiddos like i was, learn math easier. Will send out an update when its finished with the link to it.2
-
Fellow developer likes to request changes on pull requests to do major refactors on untouched code or change functionality which is outside the scope of the ticket.
Manager doesn't work on the codebase and doesn't care. This blocks our work and we often have to submit to their demands.
Feels very micromanagy even tho we are all experienced.
Asking for advice and a friend. (mostly a friend)4 -
Linked in job search had to be one of three most poorly with ui I've used, everything i apply for a job i get a pop-up that blocks the submit button saying make sure your resume is updated, no fucking shit quit bothering me like a nagging feminist
Fuck their shit platform1 -
I've been messing around some more in Brainfuck and I found a really useful algorithm to copy Blocks. The code I used it with is pretty inefficient but it helps to show what it does
Link: http://pastebin.com/U32WqEMZ -
I use vim and get bothered when people try and get me to use Code::Blocks, XCode or Visual Studio, ask me anything.
-
I got two files one called lte and the other called fcc2. The attached image is the fcc2 file. The first file is just a list of census blocks. 15 digit number per line on the lte file.I need help changing just the lines in the fcc2 file that have the same 15 digit number at the start of the line. Just need to change 2 variables in the line. FCC2 is a TSV file. any help would be appreciated.7
-
The coolest thing i wrote solo is a web app that parse my whatsapp text export files and show messages in bblocks with space between blocks proprotional to the delay between messages. I did this after a breakeup with my ex and i wanted to read all message history.
And yes, i had some stats features also. -
I'd like to follow along with some react tutorials, but pretty much all I'm finding are ones that either just have blocks of code (with little to no explanation) to copy/paste or just a link to github.
Do any of you know of any good, well explained tutorials I can follow along to that actually explain what they're doing (and actually end with a sample project, so not just theory).2 -
my government stores peoples car registration (name mobile number car plate number etc..) in a Microsoft access file locally. there is only one branch in the country to register ur car.
the file is on that computer, u can bribe the guy 20$ to copy it to ur USB.
so what should i do with the copy?
people used to make websites and apps that give u personal info of a person given his plate number (so u can call him and tell him to move his car if he blocks u and stuff 🤣)
but such sites and apps keep getting reported and closed.
i was thinking a telegram bot ? idk whats the best way to do it without being closed down7 -
I fucking hate Ops!!!
I spent the fucking day trying to understand why the fuck the AZURE the firewall blocks me on port 8000 while i let me pass on port 8001.... men i hate "not" having an ops....