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"
-
Not that much dev-related, but still...
I wish I had a way of decompiling the code of my life, correcting it and then compiling it. I was diagnosed with Depression yesterday and it has turned me absolutely empty. The kind of empty where you feel like you're a void.
I'll survive. I know that much. I also know that it's going to be even harder than it was before.
Just for lighting the mood. This is also my struggle.50 -
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 -
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 -
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
-
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 -
My boss has never programmed before. Recently, he decided that I should print out all the code for an admittedly rather small project (10k lines of Java code, 200 pages printed out), and then have me explain every line to him.
Luckily, he didn't get past 'public static void main', especially since I hadn't even bothered to print out more than that!13 -
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 -
Maaaaaaaa man has been programming in Swift since 1997; assuming the description was written this year.
To put that into perspective, that's two years after the founding of both Java and JS.
I'm sure he's programming with his mind right now while we mere mortals are waiting for it to be standard by 2120 😭
Finally recruiters can hire someone with 20 years of Swift experience. This position has been void for awhile now... Catch up guys!
Hats off to you man!!!!14 -
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 -
What piece of advice u can give to a couple who are developer and getting married.
*Don't forget to COMMIT*2 -
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 -
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 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 -
One of our devs seems to love "attribution" comments in anything he writes.
private void foo() { //Author: John Cribbins
...public static final int FOO_BAR = 21; //Author: John Cribbins
I mean, I get it for an author tag at the top of a file, but certainly not on every field or method. Is this some kind of weird thing newer devs are encouraged to do these days?!9 -
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
-
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 -
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 -
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 -
So my 3 and a half year relationship ended today and I’m not okay. The relationship ended on good terms but I’m alone for the first time in a long time and I don’t know what to do. I’m so fucking sad and I have a few friends that I can talk to but It doesnt fill this void that I feel.21
-
Class DonaldTrump extends Shit implements Asshole {
public final boolean PRESIDENT = false;
public final String THINKING = "bullshit";
public void talk () {
System.out.println(THINKING);
}
}1 -
At work today I met an api that redefines http status codes to mean something else. Naturally this makes integrating between systems a whole thing when system a keeps spitting out 207 and system b will not accept anything other than 200. Thanks for nothing. WHY WOULD ANYONE EVER WANT TO DO THAT THO? there's just no good reason to.
Anyway hens how r yous?, hope you're all doing well and that your coffee is as strong and black as the void <36 -
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 -
public void 2016(){
if (badLuck = NOT_ENOUGH)
badLuck++;
else
badLuck++;
}
public String 2017(){
return HOPE_FOR_THE_BEST;
}
Happy new year fellow programmers!6 -
int counter=0;
void loop()
{
if (counter>=10)
{
// nothing
}
else
{
Serial.println(counter);
counter++;
}
}
This is what I call bureaucracy3 -
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
-
LOL that's why I love C!
The function pointer cast for strcmp because qsort expects a compare function with two const void * pointers instead of two const char * pointers, that's just beautiful.
Not to mention the hack to abuse strcmp on a struct - which just works because the first struct member is a string and the rest just gets swapped with memcpy as opaque data.
I guess that wouldn't pass a code review at work. :-)6 -
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 -
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 -
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 -
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 -
private String field;
public void setField(String field) {
field = field;
}
// I was wondering why didn't the value change3 -
Welp. My mental health is down the drain.
I don't want to talk to anyone about it, but I am well aware of the situation. I can't even bring myself to sleep on a proper time frame, and depression is crawling back like an abusive ex.
There. Complete failure. Where do I sign out for this life?
Footnote:This is not fishing for attention, more like ranting in the void. (or trying to) Apologies to the one who I should've probably talked to about this, but never did.27 -
BEST DISCLAIMER NOTICE
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software. -
First time I was screaming out of anger while looking at code.
I'm doing a group project in my university.
We are developing a indoor navigation Android app.
And a team mate of mine just merged this…
/*Method for help-feature.
Sets all the TouchEvents that are at least 400 ms long. This is made for all the relevant buttons or editTexts, which are seen on the mapView.
The case for mapView is needed because otherwise the other buttons, etc. wont work properly.*/
public void setButtonsForHelpDialog(){
View v = mapView;
switch (v.getId()) {
case R.id.mapview:
mapView.setOnTouchListener(…);
case R.id.buttonUp:
buttonOn.setOnTouchListener(…);
case R.id.buttonDown:
buttonDown.setOnTouchListener(…);
…
case R.id.description:
description.setOnTouchListener(…);
}}
The code is really aligned like this - no breaks. And it's even worse. There are if statements like if("constantly false var" == true). Which is highlighted by Android Studio.
This is done in a own class. The views are set via public member variables of this new class. The constant vars were added in the actual class holding the buttons and also stuff like this useless method
public void getDoStuff() {
doStuff()
}
And I could continue like this.
I never saw code this bad…
I can't even find words for it :/4 -
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 -
So apparently our windows domain admin now disabled screensavers.
I was always happy to return to my desk while looking at the pixel city screensaver I had and now it's just black.
I am mildly angered 😑8 -
Has anyone ever wanted to be ignored? Like talking to an empty void, not wanting a response? Just want to be alone?11
-
//run every weekday afternoon
public void workIsOver(int hoursOvertime){
int beerCount = 1;
if (hoursOvertime > 1){
beerCount++;
}
startCar();
int timeHomeMinutes = 20 + Traffic.getTimeLostStuckInTrafficToday();
if (timeHomeMinutes > 40) {
beerCount++;
}
Boolean finallyAtHome = true;
if (goToFridge.checkStock("beer") < beerCount){
Log.e("Dude","WTF?");
}
drink("beer");
while (!girlfriendAtHome){
if (stash != 0){
Joint joint = new Joint(stash);
joint.blaze();
} else {
Log.e("Dude","Seriously?");
}
startAndroidStudio();
workOnSideProject(getCurrentSideProject());
}
girlfriend.communicate();
new AsyncTask<>(thinkAboutCodingInBackground()).execute();
if (bedTime){
try {
doSomeBedroomPartying();
} catch (NullPointerException e) {
Log.w("Sorry","not today");
}
activity.finish();
}
}1 -
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 -
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 -
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 -
Today's assignment made @safiullah lose his mind.He literally wrote:
void someFunc(int x)
{
x = x ;
}7 -
I created an account on here to shout my problems into the void.
At least I think that is the correct return type...8 -
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 -
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 -
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 -
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
-
Windows: You paid for the whole CPU. I’m gonna use the full CPU.
Ubuntu: The CPU tax is 50%. You know the rules.
Void: Welcome to our tax haven! CPU tax is now 20%.
SliTaz: You paid for the whole CPU. I’m gonna give you the whole CPU.
Tiny Core Linux, running on a literal potato while rendering the UI in 8K 400 FPS: You guys are getting CPUs?15 -
/**
* // sad truth to everyone focusing only on age++ part :) IN YOUR FACES!
*/
public void birthday() {
age++;
ttl--;
}2 -
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
-
Best: completely switching to (void)-Linux and leaving winblows behind me in the dirt.
Worst: everything else1 -
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 -
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 -
Big Brand Company
Wasted 2 days on induction about what to do and how to do.
After 2 days, Reach at workplace and called my line manager (LM). after 2 3 calls, he pick the phone and said please reach to 3.2L5
Now what the heck is this term how the hell I know what means by this magical number. It was never told in the induction that what building name is denoted with.
Called LM again and now LM annoyed at me and said to enter into building and ask for XYZ person ..I asked whom I need to ask..He said ask anybody..
When I enter I ask a security guard there and he was like numb...There are fucking 5000 people in the company.How someone will know by name..Is that guy is superstar or something?
Again called the LM, Now he yelled at me. ..Why you are asking the security guard ..I said he do not allow me to enter so what I need to do..I requst him to please guide me as I am new and nervous here..
Again no luck ..Asked already 4 to 5 people..
Finally one guy who also joined with me, helped me to reach the guy.
LM was actually running late and when he reach, I came near to him 2 greet ans he again shouted with loud voice " What are you doing man"
#firstDay5 -
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
-
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 -
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.
-
Things that I "shouldn't" put in the code:
cout << "Starting bitcoin harvester..."
cout << "Contacting IP 95.24.69.42..."
cout << "Passing control to remote IP"
Also, my boss wanted me to merge to master. I want to tell him my difficulties:
"Had issues with fluix inhibitor for the linker. Had to stretch the void pointer vector to fit the elongated float system. This helped with the binary pretranscompiler moderator in the remote modem configurator. Now everything is working fine."6 -
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 -
!advice
So I've been self teaching myself Python, which I've loved learning. However I hit a wall. I'm terrible with large project ideas, which has brought everything to a halt.
Being that I loved learning python, I'm thinking of picking up a second language to fill the void & expand my knowledge. I've dabbled a little bit in Java & Haskell. Go looks pretty interesting.
In your opinion what would be a good complementary language to Python?8 -
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 -
When you open a previous employees production JUnit tests and see the below:
@Test
public void test1(){
...
}3 -
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!");
} -
In case the kiddos ask if you can hack Facebook or whatever, here's a nice little JS code. Copy paste it into the URL, hit enter and select + edit whatever you like!
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
ps: in chrome the 'javascript:' at the beginning gets removed so you'll have to manually add it. not sure about other browsers3 -
How to spend more time writing docs then code?
15m = doc
1m = code
<code>
/* Motor DC + Mosfet IRF520 + Servo
Materials:
IRF520 (Mosfet) + Dc motor + Batery (3V min)
diode (1N4007?)
Changed Tip122 for IRF520: Tip122 has less resistance and produces more heat
Hardware:
ARDUINO = A(port , 5V , GND)
MOSFET = M(A[port] , + , GND)
MOTOR = MOTOR(+ , -)
BATERIA = BAT(+ , -)
DIODO = D(sinal_1 , sinal_2)
MOSFET
M(port) = A(port)
M(+) = D(sinal_1) AND MOTOR(+)
M(GND) = A(GND)
D(sinal_2) = B(+) AND MOTOR(-)
ARDUINO
A(port) = M(port)
5V = null
A(GND) = M(GND) AND BAT(-)
*/
#define motorPIN 8 // A(port)
int loopy = 0; // Loop variable to limit de program
void setup()
{
// Initialize the motor pin as an output:
pinMode(motorPIN, OUTPUT);
}
void loop() // 1 loop == 100ms
{
if (loopy < 10) // Turns motor ON for 1 second
{
digitalWrite(motorPIN, HIGH);
}
else // Turns motor OFF
{
digitalWrite(motorPIN, LOW);
}
}
</code>22 -
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 -
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 -
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 -
I finally got the refurbished laptop I ordered and..
wrong CPU, wrong number of cores
wrong GPU
only 1 USB port, I bought 3
battery is DOA
fuck aaa_pcs at ebay. they better replace this with what I bought or imma call Karen to talk to their manager
maybe I should check for spyware/backdoors/etc while I'm at it just because I'm pissed.
any suggestions? nothing is too petty if it doesn't void warranty6 -
Today I learned:
In Java, you're supposed to compile a source file in its package one directory up, outside of its package. You can't compile the source file in its own package directory, for it will state "cannot find symbol" on files in the same package, even though they're in the correct package directory. That can be quite confusing at first.
Given the following directory structure:
|_
|_ \pkg
|_ _ Src1.java
|_ _ Src2.java (interface with static method)
and the following source:
package pkg;
public interface Src2 { static void doStuff() { ... }; } // assuming JDK8+, where static default methods are allowed
package pkg;
public class Src1 { public static void main(String[] args) { Src2.doStuff(); } }
..being inside the pkg/ directory in the console,
this won't work:
javac -cp . Src1.java
"cannot find symbol: Src2"
However, go one directory up and..
javac -cp pkg/*.java pkg/Src1.java
..it works!
Yeah, you truly start learning how the compiler works when you don't use the luxury of a IDE but rather a raw text editor and a console.1 -
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 -
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
-
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 -
```
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 -
> 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 -
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
-
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 -
#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
-
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 -
Wk88 i basically see "I'm a beta that belittles myself, because everybody else seems to be so much better than me.."
While I certainly know how it feels, that mantra & mindset will lead to void or null.
It's a self-fulfilling prophecy and life's a bitch that'll keep ya down if you let it.
It's gonna be rough, but ye gotta stop calling yourself inadequate and start working on honing your skills.
No great feat happens over night, it takes practice and dedication.1 -
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 -
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 -
public static void turnItUpTo(int val) {
this.setLevel(val);
}
public static void main(String[] args) {
turnItUpTo(11);
System.out.println("Rock out");
} -
For fucks sake!
Why does every god damn distro have their own tool to generate initramfs?!
I just spend over an hour to find out that Void-Linux uses dracut and to find documentation, on how to use luks with a dracut-generated initramfs.
Seriously,Arch has mkinitcpio,
Fedora has dracut,
Gentoo has genkernel and I suppose the other big distros also have their own tools.
Why can't we standardize that shit on one of them?1 -
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 -
TL;DR - an entire emulation of a closed source CMS to develop a theme
The longer version:
We are using a cms that is closed source, and we only have access to frontend files alongside twig files. The CMS is custom built but many aspects are in a very rudimentary state, for example it is nearly impossible to develop locally, we have to use an integrated text editor to code stuff.
So out of frustration, and for my development needs, I decided I would make an emulation based on Symfony 4. Also because my PM was pressing me to optimise our site. I wrote some custom JS to handle everything smoothly, a semi-sass framework and well-structured twig files.
I was also supposed to work with our graphic designer, but she didn't get any alloted time from our pm to work on it...
Now PM asks me to write a specifications document in order to make another company build the new version
I mean wtf, I'm so bored, I can actually enjoy my day by coding, and no, I'm just there to write the specs.
When I told PM I am currently building the new version, she's like "but we didn't validate anything", when she explicitly said I had a green Go to code it a few months back
Instead I have to make prezies and convert them back to PowerPoint because we have computer-illiterate people in the company who aren't flexible to understand simple tools.
Let's hope it won't get useless by Friday (I have a presentation to give, alongside my estimates and project management presentation)1 -
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 -
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 -
*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 -
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 -
*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" 😂😂😂 -
Always always always restart command prompt after changing path variables!
Learned this the hard way after struggling for like 2hrs1 -
Some compilers give an error message on forgotten type casting. From that it shows good typing style casting. So you also avoid clerical errors that can lead to the program crash in the worst case. With some types it is also necessary to perform type casting comma on others Types, however, do this automatically for the compiler.
In short:Type casting is used to prevent mistakes.
An example of such an error would be:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int * ptr = malloc (10*sizeof (int))+1;
free(ptr-1);
return 0;
}
By default, one tries to access the second element of the requested memory. However, this is not possible, since pointer calculation (+,-) does not work for a void pointer.
The improved example would be:
int * ptr = ((int *) malloc (10*sizeof (int)))+1;
Here, typecasting is done beforehand and this turns the void pointer into its int pointer and pointer calculation can be applied. Note: If instead of error "no output" is displayed on the sololearn C compiler try another compiler.1 -
Devrant lost it content, cuz there is nothing more to complain about. Everyone has already told their story. So normies come to fill the void. People who know nothing about technology except getting likes. Mostly with lame to mediocore posts that are rather far fetched in order to be called dev related.
Also a lot of good ppl seem to vanish over time. AlexDeLarge, Alice, Jase, Linuxxxx (thou he's back for now) and dfox/trogus.
Looks like we are soon going to hit a devrant depression.4 -
two developers must talk like a developer and not like one being a developer and other being client!4
-
Hate new company within a month.
They are downgrading my technology..Seniors are behaving like a boss..It's been a month and I don't know who are in my team.
Project setup is not done and asked to finish the task within 1.30 hrs which has been pending since long days and need to fix on other's machine.
What the heck is this?2 -
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 -
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 -
#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 -
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 -
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
-
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 -
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. 👌👈👆 -
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 -
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 -
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 -
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
-
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 -
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();
...
} -
Me every time I get an email from recruiters:
void GetQuestionsToAsk(string taboo)
{
return "* Do I have to work with " + taboo + "?\n" +
"* Does anyone in the team write any " + taboo + "?\n" +
"* Is the word " + taboo + " even in the job specs?\n";
}
Call this function with "VBA", "SQL" and "Excel" and I'm good to go (matter of perspective if you want to proceed if the answer is positive ;) ).4 -
I just figured out any emails sent from my Gmail account are sent into the void. Gonna try contacting support.5
-
Its time to do some distro-hopping again.
Current candidates are Funtoo and Void Linux.
Any recommendations or other comments are appreciated.5 -
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 -
/*
* uk.c
*/
#include <assert.h>
#include <signal.h>
#include <stdlib.h>
void brexit()
{
kill(getpid(), SIGABRT);
}
main()
{
/* THE END */
atexit(brexit);
} -
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 -
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 -
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 -
Public static void Main()
{
wakeUp();
massiveProject.refactorLargeSwathsOfCodeForReusability();
smallerProject.findOutItCanBeDoneInOneLine();
Environment.RageQuit();
} -
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*"
-
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 -
"Please provide steps to reproduce" seems to be the catch-22 when people try and kick up a fuss about a bug I'm certain doesn't exist.
It's funny because then they report the bug, they word it like I've ruined their life, that can simply cannot continue to function until this error is fixed, yet those simple magic words "Provide steps to reproduce" seems to put their prioritise back into perspective or at the least scares them back into the void from which they came. -
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 -
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😤😤😤😤😭😭😭
-
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 -
Ah, the joys of using a bleeding edge web framework! After updating a bunch of NuGet packages, I get the TypeInitializationException from hell. Googling the error message turns up void, because seems to be me and about a dozen other devs using this framework.
2-3 new threads per week in the support forum and mentioned in a total of 288 StackOverflow questions. It feels lonely using this framework, but the design is so darn promising...5 -
Read the whole thing here:
https://pastebin.com/ucyc75Qh
This isn't a devrant post really, more like "adjacent to the societal void that all brings us here".
Anyway. This is for you.
"Fraud" or "Addiction"
Lies are like addiction.
We lie to ourselves.
We lie to each other.
Why can't we just be honest.
Why can't we not be honest?;
I don't need it.
I don't need it.
I WANT it.
But I don't want how it makes me feel.6 -
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 -
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 -
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 -
Unable to run internet on company provide Mac book ..fucking. stupid....Tried to remove proxy but not working..Even wifi getting connected and for a second it runs the internet.
How to get rid off this proxy shit6 -
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
-
public void DailyLife(bool sleep)
{
While( WaitingForCompile && !sleep)
{
BrowseDevrant();
FindNew("Girlfriend", "tinder");
RefreshIfCold(coffee);
}
DebugCodeIfErrorFound();
DailyLife(Datetime.Now >= Sleep.Time);
} -
I always see complaints of missing semicolons. But personally I always forget the parentheses for my void functions doh;
-
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
-
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 -
{
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;
}
}
} -
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) { ... }
} -
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 -
Void Linux: weeee youw thinkpad hdd is bwoken, can’t instaww, gwub ewwow 17😭
Windows XP: hold my “Format NTFS (quick)”, wimp3 -
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!
-
In finals, I was prepared to write code for any given problem. Instead, the professor gave code snippet itself for all questions and asked to write output. No comments, nothing. Just pure spaghetti code. Wasted so much time in analyzing the code that I had to leave a couple of questions unattended. Moreover each question weighted for around 8 marks. So, just one miscalculation means 8 marks is into the void. I'm feeling like I'd get just enough marks to clear the subject.1
-
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. -
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 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 -
@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
-
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. :) -
void intDatetostr(char *strDate, int intDate) {
if (intDate == 0) {
sprintf(strDate, "%09ld", intDate);
} else {
sprintf(strDate, "%-09ld", intDate);
}
}2 -
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
-
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 -
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 -
usefull=accomplishmentsInLifeToday
thingsDoneToday=list()
minutesInDay=1440
minutesRemaining=countdown(minutes)
void endOfTheDay:
if len(thingsDoneToday) > 0:
print("What a productive day huh?!")
else:
print("You lazy caffeine maniac... Get up and code!")
while minutesRemaining != 0:
if usefull.done():
thingsDoneToday.append(usefull)
else: continue
endOfTheDay()
Prints: You lazy caffeine maniac... Get up and code!
Plot Twist: Doesn't even print because it's full of bugs. Fuuuuuuu! -
Every single interview
You say you achieved something
But your career is a Boötes Void
The great nothing3 -
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 -
private boolean didWakeUpForNothing() {
if (mathTutoring.isClosed()) {
return true;
} else {
studyForExams();
}
}
private void studyForExams() {
feelEmptyInside = cryInShower = true;
}1 -
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
-
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
-
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...:/ -
//TODO:Describe your day with block of code
using Friend.Drive;
using Coffie.Machine;
using MyCheck;
namespace Raspik.Week.Thursday
{
public class Init
{
#region Morning
public void Init()
{
this.status = _status.WakeUp;
this._getReadyToWork(Coffee, Closes, Laptop Bag);
bool success = this.getToBus();
if(!success)
Friend.Drive.ToWork(Beer,ListenToMetal());
Coffee.Machine.DoubleEspresso();
MyCheck.WorkOn(Jira.Moderate, Jira.Blocker);
#endregion
#region Noon
this._eatFood(Beef,Ale)
this._devRant.CheckInteresting();
this._facebook.CheckInteresting();
this._workEvents += new EventHander(InternetStatus);
this._coolEvents +=new EventHandler(Purge_Nerf_War);
MyCheck.WorkOn(Jira.All);
MyCheck.HappyHour(Beer,Whiskey);
MyCheck.OnlineMeeting(Client);
this.GoHome(Friend.Drive.Home);
#endregion
#region Evening
while(true)
this._baby.Diaper.Change;
this._goToSleep(this.KissWifeAndChild));
}
}3 -
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 -
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
-
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"
-
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 :(
-
So something you find fun! I remember hearing a mom telling how there was a bunch of stuff that she couldn’t do in her life, but sure as heck could solve the problems of Hyrule in TOTK!
For me atm the next fun thing looks like trying either void Linux or gentoo… I might die… but it’s still sounds fun! -
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/... -
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() ;
//......... -
class CircularBuffer
{
public:
CircularBuffer();
void insert(int circularArgument);
};
Déjà vu? Have we discussed this before? I think the old horse we beat is still laying on the floor.
I really really wanted this to be funnier that it is. It is not. This feels like the moment in Office Space when they tell the old guy that his invention is the worst idea anyone has ever had.1 -
!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 -
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