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 - "void"
-
"Give someone a program, you frustrate them for a day; teach them how to program, you frustrate them for a lifetime." - David Leinweber6
-
"Telling a programmer there's already a library to do X is like telling a songwriter there's already a song about love." - Pete Cordell5
-
GF: I swear, you're spending more time staring at the screen than actually typing anything.
ME: Because literally 80% of coding is staring at the screen thinking about how to code something. My mind is an endless void of possible approaches to a problem.4 -
"Every great developer you know got there by solving problems they were unqualified to solve until they actually did it." - Patrick McKenzie1
-
Hehe, stumbled upon an oldie :-)
struct ComputerContractor
{
double salary;
long lunches;
float jobs;
char unstable;
void work;
int hiring_him_again;
const pain_in_the_arse;
unsigned agreement;
short fuse;
volatile personality;
static progress;
};
/* and there are no unions in sight */3 -
"One of the best programming skills you can have is knowing when to walk away for awhile." - Oscar Godson2
-
why are we having a flame war on best programming language! it is personal choice and everything has its own purpose and importance. as a dev we should respect that14
-
Your website looks great. I have told my secretary to send you your payment.
Wait, I forgot to check it on Internet Explorer. Give me a second let me check now.
Me: Sir, I suggest that you complete the payment before you proceed with any further tests!
,,,,*3 -
Am 23, I plan to have 4 kids in the future.
This will be their first names
1. Ruby - Female name
2. Pearl - Female name
3. Haskell - Male name
4. Python - Last born. Most loved. But am sure he will hate me for his name😂😂
All I need is a wife now or a girlfriend could do🤔...38 -
Sometimes I stare at the screen with my void eyes, questioning my abilities and say with a shivery voice "WTF" and refresh the website.
Then it works again.3 -
Void foo() {
try {
//Try something
} catch(exception e) {
foo();
}
}
When I saw this in production I cried a little...9 -
Volunteered to fix a brittle component in our app. Turned out to be 26 classes of mostly copy pasted code that is riddled with todos and void of feedback for the user. Here's a pretty representative sample of this code's quality:5
-
public void method()
{
// :(
}
instead of
public void method() {
// :)
}
bothers me more than it should19 -
static void TryOut<T>(T newStuff)
{
try
{
self.Learn(newStuff);
}
catch (NotUnderstandingException)
{
// At some point, it will work, just call it again
TryOut(newStuff);
}
}4 -
Other students:
#define redLed 2
#define yellowLed 3
#define greenLed 4
void setup ()
{
pinMode(redLed, OUTPUT);
pinMode(yellowLed, OUTPUT) ;
pinMode(greenLed, OUTPUT) ;
}
Me:
void setup ()
{
for (int i=2;i<5;i++)
pinMode (i, OUTPUT);
}
Proff - This code is wrong it won't work. Where have you specified red led, green led, yellow led?
Me - wtf! Code doesn't know which led is used in what pin it's just pin numbers!
Gave me less marks 😑
P. S. I wrote comments in my code specifying which pin will have what led connected 😑14 -
It bothers me that IntelliJ IDEs and Documents on Google Drive don't require Ctrl + S to be pressed to save a file.
That's like my birthright taken away from me!8 -
I never knew how much I needed something like devRant until I got it. This has filled a massive void in my life.5
-
import java.util.Exception;
try {
public class A {
public static void main(String args[]) {
new Exception();
}
}
}
catch(Exception e) {
System.out.println("Got you BITCH");
}9 -
if(isStressedOut()) {
procrastinate();
}
meanwhile (somewhere else in the code)...
void procrastinate() {
procrastinate();
}9 -
C is not that hard:
void (* (* f[ ]) () ) () declares f to be array of unspecified size, of pointers to functions, which return pointers to functions which return void.
By the way, I am uncomfortable with the fact that I am comfortable with this statement.6 -
My first code :-
#include<stdio.h>
void main()
{ printf("Hello Divya"); }
Output :- I have a boyfriend...1 -
public class HelloDevRant
{
public static void main(String[] args)
{
//Commenting for reasons! ;)
System.out.print("Hello dear devRant community!\nI am new here!\nNice to meet you.");
}
}5 -
// I can't be the only one...
public static void p(String inpt) {
System.out.println(inpt);
}
...
p("That much typing is unjustified.");13 -
Without you, the world falls silent. It feels cold and desloate, and there's nothing to fill the void. You've been my faithful companion for many thousands of hours. Your passing pains my heart.
Rest in peace, my friend.5 -
First step of creating antivirus,
void main() {
printf("✅Scan Complete.
0 threat found.
Upgrade to premium");
}2 -
My first code:-
#include<stdio.h>
void main() {
printf("Hello Priya");
}
Output:- I have a boyfriend!9 -
I used to work in a tech support
when I got to know there is a vacancy for a developer I hopped on to this interview. the requirements were for a .net developer and who had some knowledge with JavaScript. I went there gave the interview. I'm honestly saying I didnt knew a thing of both the worlds I knew my coding skills are good enough and it is a matter of syntax which I need to learn.
after the interview the director of the organization told me that he has been informed about my poor knowledge of the languages. I just told them that I got to know about the interview at the last minute and I never even installed visual studio until last night. I asked them to give me some time so that they can evaluate me. I asked them to give 2 weeks of time.
they agreed and after that each day I was given tasks which I had to complete.
on the 14th day the director told me that he was very impressed and wanted to offer me job. and this is how it all started in my current organization it has been more than 1 yr now -
“Looking at code you wrote more than two weeks ago is like looking at code you are seeing for the first time.” – Dan Hurvitz1
-
What piece of advice u can give to a couple who are developer and getting married.
*Don't forget to COMMIT*2 -
It has come to my attention that people like to read!
Specifically, I mean that a lot of ranters like fiction.. :D
I've been trying to decide on something to write for a while now, and I think I have it..
"The Traveler" (name open to suggestions)
The Traveler is a magic-based fantasy where our main character travels between world's using ancient stone portals (think: Stargate) and uses her unique powers to play god.
Each world she visits will equal to a different story, and she might play a good or bad guy (or both) depending on what the world has in store for her.
Her powers will include my WIP magic system from RISE, as well as some extra querks that aid the flow of the story.
I may still work on RISE, and I will keep in mind that The Traveler and RISE come from the same universe (I think RISE will be a prequel to The Traveler, and tell the tale of how she got her powers, and the origin of the portals..)
Let me know your thoughts below! ^~^34 -
I'm planning on making a start-up. The brand name will be 'Void'. And motto:l is 'Because Nothing is Better Than Something'. I'm not kidding.
Just want to know if that's a good idea 😂😂10 -
Found this gem in some old piece of code:
public static void printStackTrace(Exception e){
e.printStackTrace();
}3 -
I am very happy that I found devRant. I work from home so ranting to other developers in person is impossible... thank you for filling that void.3
-
/* MacOS source code
Copyright Snapple, Inc
Private and confidential */
void resumeFromSleep() {
if (rand() > RAND_MAX / 2) {
freezeSystem();
} else {
reallyResumeFromSleep();
}
}4 -
Facebook is driving me absolutely fucking crazy so I’m trying to take a break from it. But I need something to fill the void so I’m gonna be spending more time on here 😎😎😎13
-
public void NoRant()
{
I have a small hobby.. T-Shirts.. I make them for myself sometimes, when I'm bored.. so.. I thought to myself.. If I don't get a T-shirt from devRant.. I'll make one myself))) I found myself making several designs.. Here's one example:
}29 -
In C++ we don't say "Missing asterisk" we say "error C2664: 'void std::vector<block,std::alocator<_Ty> >::push_back(const block &)': cannot convert argument 1 from 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<block> > >' to 'block &&'" and i think that's beautiful
(not mine, source: https://goo.gl/Akxjih)4 -
God i love this site. Because its not a place to fix problems its not a place to share knowledge its not even just programmers hanging out and talking about their projects, no this site is as close as you can get to screaming into the void and still get sympathy
-
Feeling very sleepy.
Me: Just one more feature and am off to bed.
Completes feature using 2x normal time.
Me: I just did a feature whiles feeling sleepy, I can do it again.
Can't think, can't type. But won't stop.
Wake up next day. What the f*** did I do here ?
I don't exist anymore.
💤💤💤4 -
abstract class :
protected virtual void doSomething()
{
//some stuff
}
child class
protected override void doSomething()
{
base.doSomething();
}
IMHO this is what go fuck yourself means.......4 -
My job feels (and acts) like a soulless void.
Wow, that sounds like lyrics to an emo song for adults. screw that.
But it's still pretty accurate: While I have quite a few coworkers, and they're at least somewhat chatty, they never seem to respond to me, or even notice me. I see them talking, but anything I do or say gets ignored. It goes into the void and disappears.
I talk in the off-topic channels. People talk around me.
I make comments on releases. No responses.
I talk about music I've been addicted to. No responses.
I talk about food and cooking -- a popular topic at work. No responses.
I respond to an invitation to join the security team. No responses. (well, an empty deferral)
I release various features, some both my boss and a coworker described as "soul-crushing." No thanks, priase, appreciation; honestly, no one even seemed to notice.
I build useful utilities and functions for other devs to use. Nothing.
I optimize the scripts everyone uses on a daily basis, and mention it to others. Still nothing.
The void eats my efforts, and occasionally spits out parcels of work for me to do. The only responses I recieve from the void are when I ask about its parcels of work. When I send them back completed, nothing happens -- unless they need more work. If they do not... nothing.
My previous job was friendly and nice and rewarding.
The job before that was Hell.
This one feels like Purgatory, but ... somehow emptier.rant this doesn't help my burnout this doesn't help anything. the void this doesn't help my depression10 -
#define void 🦈
#define main() 🐬
#define { 🐋
#define } 🐳
#define printf("hello sea world"); 🌍
🦈 🐬
🐋
🌍
🐳5 -
Oh yes, today was a fugly nice day.
Fuck you my dear boss.
Your mindless way of taking a dump onto my code, moving my classes (CSS) away and adding new classes to refuck my unfucked fuckery clearly shows how much brain is left in your hollow skull of nothingness.
It took me only 2.5 hours of my precious time to unfuck your refucked fuckery and implement the fix you wanted me to do because you fucked up my code.
Go eat a bag of segfaults and get cast to void* (void pointer).
I am also very thankful having spent the whole day today to fix cross browser fuckups, hacks and #!&$+@.
Normally I really like my boss. He is a cool guy and an innovative and mostly intelligent person.
BUT FUCK HIS CODE.16 -
An old favorite that came to mind when someone mentioned C in the recent void post.
On a semi-related note, are there any modern languages that *aren’t* C-based?7 -
A C++ question. Correct answer will get you a virtual thug glasses & a cigar if you're into that , and upvotes (:
#include <stdio.h>
int main(void) {
int i = 4;
int* p = &i;
i = 8;
printf("i divided by *p is: %d\n", i/*p);
return 0;
}
What is the result of running this code?18 -
You know what?
No you don't!
PHP decided 'in time memorial' to deprecate their 'split' function for another function called 'explode' that splits, oh sorry, that explodes a string.
Now you know something!8 -
Unnecessary Redundant Comment:
// this get data
public void getData(Data data)
{
.......
}
Why Just Why?18 -
So the lecturer refused to answer(yes he's a jerk) but after void can it be anyword for a function or is there specific words that can only be used?
I was confused when he put void flashing...
We were using processing.8 -
God, Allman indentation style is such pain... God bless K&R...
For those who don't know, Allman is this:
void foo(void)
{
statement;
statement;
}
and K&R is this:
void bar(void) {
statement;
statement;
}12 -
public void 2016(){
if (badLuck = NOT_ENOUGH)
badLuck++;
else
badLuck++;
}
public String 2017(){
return HOPE_FOR_THE_BEST;
}
Happy new year fellow programmers!6 -
Class DonaldTrump extends Shit implements Asshole {
public final boolean PRESIDENT = false;
public final String THINKING = "bullshit";
public void talk () {
System.out.println(THINKING);
}
}1 -
Just got into web development.
Y U NOT WORKING RIGHT?
How do you guys make really complex websites when I can even center an unordered list without the first child...
I write something like align-vertically: center;
And what does it do? NOTHING!
And if it does something, it mirrors the whole page, makes it all bright pink and then everything explodes and I'm alone in a dark void, only me and my PC are there and somehow I have access to the internet.
And then I look it up at stackoverflow and I'm like: Oh, ok, I'll do it this way then.
And it still doesn't work and does absolutly nothing!
So I'm trapped in this void of nothingness till the end of my days.
At least that's what it feels like.9 -
class Life extends Death{
public static void main(String...args){
Guy me = new Guy();
me.born();
GirlFriend gf = new GirlFriend();
me.setGirlFriend(gf);
me.getMarried();
me.haveSon();
me.die();
}
}
------- Exception on line 5: NullPointerException, girlfriend cannot be null ---
Daaamnn6 -
Windows 10 Image viewer:
void ShowImage(string imagePath) {
Thread.Sleep(3600)
imagePath:GetImage().show = true
}
Sorry if my code is bad. But you understand what i mean xD2 -
I once knew a guy who claimed that:
* Declarative languages were these where you declare variables before you use them.
* C is a functional language because every subroutine was returning something (even void).2 -
When I see a space after opening bracket but none prior to the closing one... *fugly*
void func( int x);
/me hates! Do it one way or the other pleez!1 -
Got home to acknowledge I forgot to pay the fucking internet bill and now I'm in a void without knowing what I'll do and everything might end with me wasting my mobile data and some whiskey2
-
int counter=0;
void loop()
{
if (counter>=10)
{
// nothing
}
else
{
Serial.println(counter);
counter++;
}
}
This is what I call bureaucracy3 -
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
sorry for my messy code19 -
Random thought: directing stdout to /dev/null is the programming equivalent of screaming into the void.4
-
function Life(crap):void
{
crap = Lemons;
Return crap;
}
function Solution(liquid)
{
liquid = Tequila;
Return liquid;
}
function whatYaGonnaDo():void
{
Life = null;
Liquid = null;
life (Life);
if (life="Lemons")
{
solution(liquid);
}
}
//sorry i was bored. (not sorry)4 -
L'appel du vide A.K.A. Call Of The Void.
Urge to do anything that will lead you to certain death for no reason.
Like when you are near a cliff and think "if i jump off i'll die"
or
"if i drop the database, it will die"3 -
On a scale of 1-10, how lazy are you when it comes to prototype code?
Me, well I'm a 'fuck it lets just wildcard anything that is a child of a GLib objects'
Don't be like me kids...
EDIT: Yes i know it should have been an override void4 -
private String field;
public void setField(String field) {
field = field;
}
// I was wondering why didn't the value change3 -
Windows Universal Platform... what the fuck??
I want to set the button cursor to a hand. Here's how you do it:
private void button_PointerEntered(object sender, PointerRoutedEventArgs e)
{
Windows.UI.Xaml.Window.Current.CoreWindow.PointerCursor = new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Hand, 1);
}
Don't forget to do the opposite when the mouse leaves!
FUCK YOU8 -
“There's one technique that you must use if you want people to listen to you: listen to them.” - The Pragmatic Programmer 📖2
-
"A primary cause of complexity is that software vendors uncritically adopt almost any feature that users want."- Niklaus Wirth2
-
Has anyone ever wanted to be ignored? Like talking to an empty void, not wanting a response? Just want to be alone?11
-
Suicide Linux:
You know how sometimes if you mistype a filename in Bash, it corrects your spelling and runs the command anyway? Such as when changing directory, or opening a file.
I have invented Suicide Linux. Any time - any time - you type any remotely incorrect command, the interpreter creatively resolves it into rm -rf / and wipes your hard drive.
It's a game. Like walking a tightrope. You have to see how long you can continue to use the operating system before losing all your data.
Please install: https://qntm.org/suicide9 -
Public class douche implements douchebaggery {...}
Public interface douchebaggery {
Public void beInconsiderate();
Public void wearSunGlassesIndoors();
}2 -
Just started learning C, had to tilt my head a little to understand this :
(void (*)(void *)) func ()3 -
How to write a proper Hello World program in Java:
public class ProperJavaProgram {
public static void main(String[] args) {
try {
// Write the hello world file
List<String> lines = Arrays.asList(
"#include <stdio.h>",
"int main() {",
"printf(\"Hello World!\\n\");",
"return 0;",
"}"
);
Path file = Paths.get("awesome-program.c");
Files.write(file, lines, Charset.forName("UTF-8"));
// Execute the file
executeCommand("cc awesome-c-program.c -o awesome-executable");
executeCommand("./awesome-executable");
} catch (IOException e) {
System.out.println("You're screwed, just use Java and get over it. " + e);
}
}
public static void executeCommand(String command) {
try {
Process p = Runtime.getRuntime().exec(command); // Run the process
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); // Get the output
String s; // Print out the output
while ((s = stdInput.readLine()) != null) {
System.out.println(s);
}
} catch (IOException e) {
System.out.println("You're screwed, just use Java and get over it. " + e); // UR SCREWED
}
}
}2 -
Use different indentations in same program.
for(.....) {
}
if
{
}
else
{
}
void doSomething
{
}
static{
}
I have to stick to one convention anyhow soon.. :/3 -
If you're going to look for junior devs on facebook... make sure you don't try to be funny and write any kind of bullshit-code.. there is a f**king space in the function name! Dude....
Text says:
"Rieke Computersysteme is looking for you!
void send Application () { ... }"9 -
I have been working on my javascript project since morning, so i decided to switch to the C project, but i can't stop typing console.log and having the compiler yelling at me.
Am only working with array of characters, but the void.6 -
Every time I feel Im getting my act together (at work) there is some AWS service which I know nothing about and that totally kicks my asss
Geeez the dev ops side of things is a total void for me..4 -
Additional information: Cannot implicitly convert type 'void' to 'object' <- when you've been playing Ascension so much, you are asking yourself what kind of hero you need to convert it to 'object'... FML, my brain has farts..4
-
Finally after wondering for hours why the constructor of a class does not get called...i notice that constructor don't fucking accept a return value data type (void)...😡😒8
-
I created an account on here to shout my problems into the void.
At least I think that is the correct return type...8 -
How modern smartphone OSs (Android) deal with battery charge.
// handler for when the battery level changes
public void onLevelChange (BatteryInfo info) {
if(info.batteryLevel() < 99) Device.getBattery().drainAllCharge()
}1 -
/**
* // sad truth to everyone focusing only on age++ part :) IN YOUR FACES!
*/
public void birthday() {
age++;
ttl--;
}2 -
Best: completely switching to (void)-Linux and leaving winblows behind me in the dirt.
Worst: everything else1 -
Today's assignment made @safiullah lose his mind.He literally wrote:
void someFunc(int x)
{
x = x ;
}7 -
One of my coworker change the code from
```
void foo() {
if (condition)
{
}
else
{
}
}
```
to
```
condition ? ifTrue : ifFalse;
```
and add it to changelog
```
- fix bugs // yes with an "s"
- feature added
- some list of the bug fixed.
```
I refer back to the commit, only one Fucking commit and on changes. Bro, what the fuck?8 -
I just installed voidlinux and daaaamn this shit is good. Its so lightweight and fast :3
And I don't even need the AUR to install i3-gaps. Its in the fucking main repo.
Now I'll just shut the fuck up and continue experimenting3 -
I created a class Log with a method d(String tag, String text) to replicate Android's log method in Flutter.
class Log {
static void d(String tag, String text) { print(tag + ": " + text); }
}
I replaced all 'print' into 'Log.d' in my project and I wondered why emulator kept crashing for the past two days.
Now I know..4 -
interface Flyable {
public static final int wings = 2;
void fly();
}
This is a good use of interface a/c to my CS Prof
(╯°□°)╯︵ ┻━┻21 -
it kills when people say dual boot Linux with Windows. I know how painful it is. as people who like to install Linux just pray why doesn't Linux supports it all. because all they want to do is use Linux full time. 😑😖😭8
-
after playing Pokémon go consecutively for the last 2 days I have forgot myself as a developer. it was hard to join office today.
-
When you open a previous employees production JUnit tests and see the below:
@Test
public void test1(){
...
}3 -
Fucking four hours wasted.
Bad idea
.subscribe(({ messages }) => {
this.messages = messages;
// Scroll to bottom of the chat content
this.chatcontent.nativeElement.scrollTop = this.chatcontent.nativeElement.scrollHeight;
});
because the dom is not manipulated that fast.
Good Idea:
ngAfterViewChecked(): void {
// Scroll to bottom of the chat content
this.chatcontent.nativeElement.scrollTop = this.chatcontent.nativeElement.scrollHeight;
}5 -
after working in my company now I feel like a detective all I'm trying to do is find a issue in clients files.
-
Without using editor...
public class Test {
public static void main(String[ ] args) {
int value = 3, sum = 6 + --value;
int data = --value + ++value / sum++ * value++ + ++sum % value--;
System.out.println(data);
}
}
a) 1 b) 2
c) 0 c) 318 -
When your friends wants you to help them code in Java and they type
public void Main String
without any instruction ... -
/** Called when the rant is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.dev_rant_first);
Log.d("Introduction", "Hello, devRant community!");
} -
using System;
namespace HelloWorld {
class Hello {
static void Main() {
Console.WriteLine("Hello World!");
}
}
}
So, yeah, hello DevRant...
But that you don't thing I am insane, I also know how to survive in C++ and Python.
Besides the fact that I utilize Mono on my Linux server I am crazy enough to admin Windows servers.6 -
Working with Microsoft.CodeAnalysis.CSharp
where I work with CSharpSyntaxTree
I can compile the code in code.
So basically,
SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(@"
using System;
namespace InAppCompiler
{
public class Writer
{
public void PrintText(string message)
{
Console.WriteLine(message);
}
public void ALLCAPS(string msg)
{
Console.WriteLine(msg);
}
}
}");
Freaking cool!3 -
“Computer programming is like the ability or skill to see what Picasso saw from all the different angles at once” - Erik Naggum
-
Now I am ranting, Everyday I rant, Yesterday I runt, Tomorrow I shall rant, Already I have ranted.
[Shaking my head, wagging my tail, moving in circles, no beer, for no reason]1 -
School made me a stickler for the Linux kernel coding conventions in regards to the C language. And even though I shouldn't feel bothered by reading other coding styles.....i still get annoyed.
I try not to get irked cuz I find it a small thing to get annoyed at.... but i still do.....bad.
And even then i dislike how there is not padding inside of funcion parametes
void
fu(int here, int there) {}
Should be
void
fu( int here, int there ) {}
That space man...its needed.
Man this is such a small thing to be annoyed at..3 -
Well week 1 with fedora and... yeah think I'll be going back to elementary after giving void linux a go.
Can't quite place why I don't like fedora, it's smooth and lightweight but just... Eh...3 -
> make
HEY
YOU NEED AN }
YOU NEED A ;
YOU NEED AN @END
YOU PUT A VOID IN A UNARY THINGY
make errors: 4
>
fix typo
> make
Compiled successfully.
>
sanctuaryGuardian(); -
public class Celebrations {
public static void WishHappyBirthday(String toWho) {
if(toWho == null || toWho.isEmpty()){
System.out.println("Can't wish" +
"happy birthday to" +
"someone that doesn't exist");
return;
}
System.out.println("Happy Birthday " +
toWho + "!!!");
}
}1 -
I'm sitting here at my desk, with headphones on, waiting for a colleague to "finish just one thing" while Hearing his keystrokes and looking in the void.
Why did you call me in the first place wtf1 -
Since becoming an "Architect", I've come to learn "Architect" simply means siphoning your will by eliminating all opportunities to actually write code ...
public class Architect {
static final boolean inMeeting = true;
private int will;
public static void main(String args[]){
Architect me = new Architect();
if(me.inMeeting){
while(meeting.active){
me.reactToEvents();
}
}else{
me.writeCode();
}
}
public void reactToEvents(){
if(new Random().nextInt() % 3 == 0)
will -= this.hit(this.face, this.palm, Force.CONSIDERABLE);
else
will -= this.hit(Office.desk, this.head, Force.MODERATE);
}
public int hit(Object object, Object with, Force force){
object.useForce(force);
object.moveTo(with);
return new Random().nextInt();
}
}1 -
There are so many movies that explore the idea of the "void". A world between worlds where dark forces are at play. Only necromancers and evil geniuses dare touch the void.
Programmers be like:
void doSomeDarkShit(void* magic);4 -
Visual Studio : *No definition for the method Method with the argument of type int*
Me : Oh ? *F12 on method name*
VS : public void Method(int) {...}
M : There, so it should wo--
VS : *No definition for the method Method with the argument of type int*7 -
I've just noticed, the rest of the world says things like "your check is null and void," as if those two things are one and the same.
Meanwhile, to us devs, they couldn't be any more different! Something can't be both null AND void! 😅undefined void null function return values memory locations c declaring variables c++ coding pointers8 -
When not coding I love writing scifi so I can explore technologies I'm too impatient to wait on. Would love any and all thoughts on my recent piece (can just read intro if you want): https://inkshares.com/books/...3
-
```
public someMethod(index: string): Promise<void> {
return Promise.resolve(someAsyncFunction().then(() => {
return;
})
.catch((error) => {
this.logger.error(error);
throw error;
});
```
Somebdoy doesn't know their async / await syntax but they wanted aboard the promise-hype train. There is an entire class in that style.1 -
First c class. Techer starts by telling us to use void main() and that it is necessary for program to run correctly. Someone kill me.4
-
#include<semester.h>
#include<tension.h>
void pain()
{
mind=confused;
while(study!=done)
{
paper = back;
parents=scold;
}
if(i==pass)
{
tension free;
}
else
{
go to hell;
}9 -
We're trying to use Oracle databases in Visual Studio. They won't install the Oracle developer tools on my system. Life has lost all meaning. I'm floating in an endless void where the only sensations are confusion and the vague sense that someone is stepping on my stomach4
-
Whatever Google has done wrong, I am nonetheless thankful for them releasing the patentless open-source VP9 and AV1 video codecs.
The world needs modern open-source video formats and Google has filled that void.
I know, OGG Theora exists, but that is two decades old and inefficient. VP9 is the counterpart that can compete with H.265.2 -
*manager behind my back
me working on vim
manager thinking hell he knows this s***
manager leaving, me switching to npp "this is so easy" 😂😂😂 -
void encrypt(...) {
[...]
output.Write(iv);
output.Write(salt);
[...]
}
void decrypt(...) {
[...]
input.Read(salt);
input.Read(iv);
[...]
}
Took me 2 hours to figure out why it kept giving me decryption errors :/3 -
class smoking{
public static void main ( String []args){
int a = 2;
String c = "cigarettes";
if (a==2)
System.out.print ("go smoke "+ c);
else if (a <2)
System.out.println ("go buy some");
else
System.out.println ("error");
}
}10 -
"Be Curious, Read Widely, Try New Things. I think a lot of what people call Intelligence boils down to curiosity." - Aaron Swartz
-
I´m learning C # basic concepts and a question has come up after doing this exercise:
using System;
namespace exercise
{
class MainClass
{
public static void Main (string[] args)
{
console.WriteLine("Type your name");
String name = Console.ReadLine ();
console.WriteLine("Type one city");
String city = Console.ReadLine ();
console.WriteLine("Hello"+ name + "wellcome to " + city )
Console.ReadLine ();
}
}
}
Question: its necessary to put the last
Console.ReadLine ();?Why?8 -
Chrome likes to count teleporting goats, Android tests if the user is a monkey. I like to put "void fish(object look)" in my code and throw the fish where ever I wanna test something.
What are some interesting functions you've added to your code? Has another dev caught your function yet? (mine hasn't been caught yet, yay!)3 -
public static void turnItUpTo(int val) {
this.setLevel(val);
}
public static void main(String[] args) {
turnItUpTo(11);
System.out.println("Rock out");
} -
AAARGH
I fucking give up. I can't debug my code, and all my programmer friends have better things to do than to help me. The fact that portaudio requires me to store things as void* makes it even more convoluted if possible.3 -
Always always always restart command prompt after changing path variables!
Learned this the hard way after struggling for like 2hrs1 -
*after getting to know about Pokemon go from here I downloaded it from the net.(not yet released in India) and I'm so addicted to it. I have already caught 3 Pokémon.
got it installed on my colleagues phone and we both are now roaming near by our office to find some more. absolutely loving it.2 -
Questions that are bothering me:
When a function that returns void returns, is any value from the stack frame copied into the register?
Is the return address in the stack frame even allocated, or is it nullptr?
Could a void function theoretically return a value if you hacked one into the frame?
Does the register even know to expect a value from a void function? If so, where is the logic for this and what is difference between a void and non-void function return at the stack frame & register level?
Any good books on this stuff?2 -
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." - Mosher's Law of Software Engineering
-
class day {
public void standup(Coffee cof) {
Human.drink(conf);
}
public void school() {
boring = true;
}
public void code(Coffee cof) {
turnCoffeeIntoCode(cof)
}
public void repeat() {
standup(new Coffee());
school();
code(new Coffee());
}
}2 -
Whatcha thinking about the
Lenovo ThinkPad X1 Carbon Gen 8
(i7-10510U, 16GB, 512GB, 1080p)?
Found one for a dirt cheap price (campus discount) and think about buying it.
I'm largely using linux, including somewhat exotic distros like Void,Gentoo, Alpine.2 -
I started writing a rant and then, when I was almost ready, accidentally clicked somewhere outside the text window, not even close to the exit button, and my rant disappeared into the void without a warning. Well thank you very much! :(9
-
What coding at work is supposed to look like:
class myclass {
public:
void myfunc;
void.... And so on so forth.
What coding at work actually looks like:
class myclass {
pub--"Hey can get line one? <name> is asking for you."
(20 minutes later)
public:
void myfunc;
vo--"Hey <same name> wants to talk to you again."
Programming doesn't give me gray hair, distractions do.3 -
How i think i write code
void safeFree(void *ptr){
if(ptr != nullptr){
delete(ptr);
}
}
How i actually write code
void safeFree(void *ptr){
*nullptr = 7; //TODO
}1 -
#include <midsemester.h>
#include<tension.h>
Void pain()
{
Mind=confused;
While(study!=done)
}
Paper=blank;
Parents=scold++;
{
if(i==pass)
tension free;
else
Dad's belt;
}
.
.
OUTPUT:
compilation error....Engineering detected. -
I want to distro-hopp again,
Current candidates for the next round are Funtoo and Void Linux.
Any recommendations and comments are welcome.9 -
My web dev teacher was drunk almost every lesson, and my C++ teachers don't care about visiting our high school)) All we know is learnt by ourselves
Other teacher hates when we type
void smth(){
}
Instead of
void smth()
{
}
And wants to overwrite the code to fix these style errors))3 -
Long story short:
My system need to talk with a 3rd party PoS API. The provided doc is pretty useless and with few errors.. nonetheless I came to finish the 99% of the job.
I was stuckd on the 1%, one frickin function.
Everytime I would call the endpoint I would receive...NOTHING. Just a 200.
I've spent like 5 hours trying everything, even sending wrong params...nothing...
Always 200 and nothing else.
Apparently, for an entire nation and the IT Company behind them, is ok to have A PAYMENT API TO RETURN VOID AND A 200 NO MATTER WHAT.
I got the luck/unluck that the main developer of such piece of art came in the office and I've almost throw him out the window (we are at 26th floor).
FUCK OFF DUDE. YOU AND ALL THE OTHERS THAT DO LIKE YOU DO.
P.S. in this days I'll try to write the full story, but it's hard without giving many details...small anticipation: 1.5 months of work and nothing but red bull and coffee...4 -
WHO THE FUCK THINKS
THIS SHIT
TS:
```
const a = function(callback: (err:any,data:string) => void):void{
callback(null,'balls');
}
a(function(err:any,data:string){
console.log(err,data)
})
```
IS BETTER THAN THIS
ES6:
```
const a = function(callback){
callback(null,'balls');
}
a(function(err,data){
console.log(err,data)
})
```
kys10 -
two developers must talk like a developer and not like one being a developer and other being client!4
-
I guess I’ll choose ok...
But seriously, come on! That’s why I love open source: if there’s that f🤬cking thing harrassing you, you can send it right in the void. 👌👈👆 -
Oh my god devrant doesn't save rants posted by an unverified account. If you submit a rant and then verify your email, the story will just disappear into the void.9
-
public void today() throws Exception {
Car c = getPosessions().getCar();
c.wash();
c.wax();
Game g = getPosessions().getUnchartedFour();
while(!g.finished()) {
g.play();
Thread.sleep(1000);
}
this.eatDinnerWith(getFamily());
System.out.println("Today Rocked!");
}4 -
I just figured out any emails sent from my Gmail account are sent into the void. Gonna try contacting support.5
-
I just switched to void from arch, dunno why. It is really cool and has runit. And XBPS is actually 3x faster than Pacman. And I have 1Gb of ram, Arch used 950Mb BSPWM, Void 300 with XFCE.
Really a good distro2 -
Good cloud based IDE's for Java, Python and C# - any suggestions?
Should I place my braces after the method header or under it?
1.
public void test(){
}
2.
public void test()
{
}
Or is it just personal preference?16 -
Why is there so few rants about wordpress?
Have people moved on? Am I forever stuck in this void of terrible people that believes wordpress is a good system because its free? Opensource? I have heard all the arguments. Not a single one of them are valid.7 -
The code I'm working in always has problems with stuff like "Object obj=new Object();" or "List stuff=new List;" without type specification, but now I found the summit: "private void methodName(Type parameter) *throws Exception*"
-
Reverse number(logic)
------
First Approach :=
void reverseMethod(int n)
{
String str="";
int temp=0;
while(n>0)
{
temp=n%10;
n=n/10;
str=str+""+temp;
}
System.out.println(str);
}
-----
Second Approach :=
void reverseMethod(int n)
{
int temp=0;
int rev=0;
while(n>0)
{
temp=n%10;
n=n/10;
rev=rev*10+temp;
}
System.out.println(rev);
}
-----
why the fuck second one is recommended??
In first, at least we do not required to remember that formula.9 -
/*
* uk.c
*/
#include <assert.h>
#include <signal.h>
#include <stdlib.h>
void brexit()
{
kill(getpid(), SIGABRT);
}
main()
{
/* THE END */
atexit(brexit);
} -
Public static void Main()
{
wakeUp();
massiveProject.refactorLargeSwathsOfCodeForReusability();
smallerProject.findOutItCanBeDoneInOneLine();
Environment.RageQuit();
} -
Its time to do some distro-hopping again.
Current candidates are Funtoo and Void Linux.
Any recommendations or other comments are appreciated.5 -
async void day()
{
wakeup();
CheckDevRant();
DoShit();
If(IsInMood)
GoOffice();
while(IsInMood)
{
Eat();
Game();
Code();
}
Eat();
Sleep()
await day();
}
Man I am having a bad day. Stack overflow -
MiniRant on windows
This morning i noticed that the led on the mute key of the keyboard didn't turn on.
I started swearing because I thought the led died (relatively new laptop).
Long story short: reboot windows, the led magically works again.
The only think i can think of is this:
void Windows_Main(void)
{
...
if (rand() % 667 == 666) DisableRandomFeature();
...
} -
Huh, I finally secured 15 years warranty on my life from god. He agreed on replacement for production defects only. It doesn't cover physical damages caused by me though.
-
Im handling One of my senior's project who left the company last year. And now when I'm implementing new things it turns out that he has hardcoded the array lengths which should have been dynamic😤😤😤😤😭😭😭
-
package bar;
public class Foo {
public static void main(){
System.out.println("Hello, World!");
}
}
I still wonder why I didn't start with Python, print('Hello, World') is a god damn one-liner7 -
boost::signals2::signal<void ()> redSmoke;
boost::signals2::signal<void ()> whiteSmoke;
boost::signals2::signal<void ()> blackSmoke;
boost::signals2::signal<void ()> yellowSmoke;
boost::signals2::signal<void ()> blueSmoke;
boost::signals2::signal<void ()> pinkSmoke;3 -
The best love is the kind that awakens the soul; that makes us reach for more, that plants the fire in our hearts and bring peace to our minds.
My Dear ~Ruby~. -
abstract class Ich {
abstract void support(CoWorker coWorker);
abstract void programm(List<Task> tasks);
abstract void analyseCode(String code); // mostly horrible code
abstract void drinkCoffee(Mug mug);
abstract void extinguishFireAndKillBugs(String moreLegacy);
}
...
void work() {
ich.drinkCoffee();
while(isWorkingTime()) {
int rand = Random(0,100)
if(rand < 5) {
ich.myMood += ich.programm(tasksForMe);
} else if (rand >= 5 && rand < 20) {
ich.myMood -= ich.analyse(legacyCode);
} else if (rand >= 20 && rand < 40) {
ich.myMood -= ich.support(GetNextGuyToMe())
} else {
ich.extinguishFireAndKillBugs(moreLegacyCode);
}
if(myMood <= 0) {
ich.gotoHome();
}
}
}1 -
Everything makes sense when considered in some way. So in some ways, everything makes sense, even the idea that everything makes sense in some ways.1
-
{
while(time_to_exams > 0){
me.shouldBeLearning(true);
time_to_exams--;
}
public void shouldBeLearning(boolean bool){
if(bool){
should_be_learning = false;
waste_time_on_DevRant = true;
} else {
waste_time_on_DevRant = true;
}
}
} -
So I was writing some C code, pretty simple code. I had to pass a matrix to a function. The matrix had been globally defined as arr[100][100]. But the actual size of the matrix was stored in 2 vars m, n. Now when defining the function if I do like this:
void fun(int a[][n])
The code doesn't work as expected but when defined as:
void fun(int a[][100])
Works perfectly.
I have no idea why this is happening, any insight will be very helpful.5 -
Hey devRant, is it a feature or a bug that you can't see your oldest rants on your profile? I feel like that's where most of the original/rawest rants are. Please don't let them disappear into the big internet void.4
-
I always see complaints of missing semicolons. But personally I always forget the parentheses for my void functions doh;
-
Void Linux: weeee youw thinkpad hdd is bwoken, can’t instaww, gwub ewwow 17😭
Windows XP: hold my “Format NTFS (quick)”, wimp3 -
public void DailyLife(bool sleep)
{
While( WaitingForCompile && !sleep)
{
BrowseDevrant();
FindNew("Girlfriend", "tinder");
RefreshIfCold(coffee);
}
DebugCodeIfErrorFound();
DailyLife(Datetime.Now >= Sleep.Time);
} -
Using void 0 instead of undefined is just ridiculous. Sure, you save 3 bytes but I've seen the code you write, you definitely should not care about that.7
-
Making classes and functions without commenting what I expect each class and function to do. Which means that my classes and functions have really long names.
Example Code:
Class ReallySpecificClassToWorkWithThisFramework { ...
public void DoThisActionInTheFramework (obj TheKeyToTheWholeFunction) { ... }
} -
public class MyLife {
public static void main (String [] args) {
System.out.println ("My life sucks!");
}
} -
/*too lazy to convert times to Millis...*/
Private void day() {
try {
Do {
meeting();
while (currentTime < 5pm);
readAndRespond(email);
readAndRespond(slack);
readAndRespond(skype);
}
finally {
realWork();
}
}
private void meeting() {
Thread.sleep(30s); //I wish.
}2 -
Help with C code
int main()
{
int x =10;
void *p = &x;
printf("%d", ((int*)p)* );
return 0;
}
I'm trying to cast p to and int, for dereferencing it and printing the value of x, but Im getting an "expected expression before ) token" in the line for printf.8 -
testng: if the name doesn't match (fubar locales whatever idk) doesn't match the corresponding test that uses it it'll just silently ignore instead of failing or running the test at all
@DataProvider(name="fubar")
public Object[][]{
//test data setup
}
@Test(dataProvider = "locales")
public void testWhatever(){}
whoever designed it to be this way: why?1 -
I want to emulate a dial input because skeuomorphism is cool. I thought it would be nice to freeze the mouse pointer while a dial is clicked so it doesn't wander off to the void while the user watches the dial value. Do you think this is a good idea? Also, is there any gui toolkit that allows this?4
-
void intDatetostr(char *strDate, int intDate) {
if (intDate == 0) {
sprintf(strDate, "%09ld", intDate);
} else {
sprintf(strDate, "%-09ld", intDate);
}
}2 -
i saw this and this is wrong in so many ways
public void saveFolder(FolderID folderid, FolderInfo folderInfo) throws DataAccessException {
FolderOrm folderOrm = load(FolderOrm.class, folderid);
} -
I don't know why do we need to entertain our clients for each and every thing. I mean I'm handling every fucking exception out there I have like 10 flags handling individual stuff. and if I raise this to my boss he will just say. if they are paying then we are doing it. I mean come on!
-
was thinking of learning vim.
searched for vim adventure on Google.
worked on a few levels (must say great game to learn vim seriously) then it asked to purchase a license for 25$.
which I don't have to spend now.
well have to stick to the conventional way. -
void main()
{
if( isWeekday() ) {
if( alarmRinging() || kidsKnocking() ) {
startMorningRoutine();
escapeToOffice();
while ( !meetingsInProgress() ) {
code();
} //meetings interrupt the whole day, every time...
escapeMeetings(); //Go home.
startEveningRoutine();
} else {
sleep(1);
}
} else {
playWithKids();
doYardWork();
if( kidsSleeping() ) {
sleep(1);
}
}
} //end main. Like a microcontroller, this forever loops. :) -
“The proper use of comments is to compensate for our failure to express yourself in code.” – Uncle Bob Martin2
-
@dfox I'm absolutely loving these avatars! btw I know I'm going to ask too much but can you add the facial hair with a goatee and no moustache.2
-
in vb.net i can declare a void function:
Declare Function some_func& Lib "some_lib.dll" ()
then try to assign its return value to a variable:
some_return = some_func()
and get no errors during compilation, not even a warning
but in runtime it produces integer arithmetic overflow exception
in what way it is not even a warning?4 -
I guess today I'm ranting about x64. I don't have any screaming into the void stuff but I am unhappy that some instructions can't have 64bit immediate
Really annoying.
That's all
~ cheers -
[TestClass]
public class DayTest
{
[TestMethod]
public void Init_WowEnthusiasmPlusMeeting_fml()
{
// Arrange
Day monday = new Day(
Math.Ceiling(Chrizzle.Mojo),
(List<Task>)Board.GetStories()
);
int startingTaskCount = monday.Tasks.Count();
monday.AddMeeting(new Meeting(duration: 7.5));
// Act
monday.Init();
// Assert fml
Assert.IsTrue(
monday.Tasks.Count() ==
startingTaskCount &&
Chrizzle.Mojo == 0
);
}
}
// Unreachable code detected -
Writing--
public static void main(String args[ ] ) all the time (in every program)....during competitive programming questions.... :/
I get the meaning but still....just look at c or py...:/ -
I was going out of the office... I saw "all the code for the admin work fine, it's perfect like the Monnalisa"... 23 minutes later 4 mail about bugs, problems with the back end and some columnin the db which become void without reasons... So now on I will say "the code is not working"
-
Every single interview
You say you achieved something
But your career is a Boötes Void
The great nothing3 -
So, my teacher said that in c standard you have to put a return at the end of void functions, after a lot (and I mean A LOT) of research I've found nothing, am I missing something or is the person who doesn't respect any standard inventing that thing?6
-
When I die, if I’m not going to go to the infinite thick gooey ocean of black void with the infinitely long version of “Whole New World” by SOPHIE playing, then I’m done. I’m killing myself.2
-
I'm running Void-Linux-musl on my ideaPad-320s and found 2 strange bugs, that I've never seen anywhere else.
1. Firefox-DRM-plugin crashes when I open Netflix or Prime.
2. YouTube videos play at slightly accelerated speed, despite being set to normal speed.
Has any one here ever seen those 2?2 -
I usually like sticking to a distro but when the DE I wanted to try and like at the moment in time couldn't be loaded onto manjaro without serious intervention I am deciding to try out void linux with anyone has any tips you can tell me5
-
private boolean didWakeUpForNothing() {
if (mathTutoring.isClosed()) {
return true;
} else {
studyForExams();
}
}
private void studyForExams() {
feelEmptyInside = cryInShower = true;
}1 -
programming:
cc hello_world.c -o hello world
object-oriented programming:
cc -c hello_world.c -o hello_world.o
cc hello_world.o -o hello world
some weird shit:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}4 -
Can someone please explain c++
"void onData(event)" (from an example code my mentor gave me before he went to a meeting) to a high schooler real quick I can find anything online that makes sense1 -
!Rant
My first 3D model, https://grabcad.com/library/...
can someone give me some advice on it and how to improve (disregard the parts about grad project that's just school related) I just want to know how to get better at the modeling -
a while ago i was seeing about help for a 3D modeling project. Here is the first draft.
Let me know what you think or some ideas for improvements
https://grabcad.com/library/... -
So I've been waiting for almost a year to find a root method for galaxy s8 g950u (snapdragon) that doesnt have terrible limitations like only 80% battery life and others. I love Samsung but I miss root :(
-
Class Workday extends NormalDay{
PriorityList taskList = getDefaultTasks() ;
Funitems finitems=getEnjoymentTasks();
Workday addTasks(Task... tasks){
taskList. AddAll(tasks);
return this ;
}
PriorityList getTasks() {
return taskList ;
}
Void act() {
funItem.lookupAppropriateItem().execute();
taskList.popTop(). Execute();
}
}
//class ends
//inside main...
....
...
Office today = new Workday();
today.addTasks(yesterday. GetTasks()) ;
Today. act() ;
//.........