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 - "public"
-
Angry programmer:
YOU WANT A PUBLIC KEY?
YOU WANT A PUBLIC KEY?
*smashes keyboard*
THERE'S YOUR PUBLIC KEY9 -
Dear public transport,
please don't advertise your fucking free wifi if you don't give enough bandwidth to even load freaking Google.
Dear sincerely,
Me6 -
Public class UnnamedChild extends Person implements Mirziteh {
public UnamedChild(String fName){
super();
this.fName = fName;
}
//methods removed for brevity
}26 -
Huge developer convention with 4 speakers today.
Google Cloud,
AWS Amazon,
A government innovation team,
and Me!
I'm freaking out.
Wish me luck, I need it...9 -
A few weeks ago on a trip to Boston:
"Well lets use nine large screens to display this awesome Exception properly" ;-)7 -
People that use their phone on speaker (and have it set loudly) in public are a special breed of jackass6
-
"Isn't that Java?" - bypassing stranger who happens to look over your shoulder when you're coding in public.5
-
found this gem today.
P.S.
captcha - Completely Automated Public Turing test to tell Computers and Humans Apart.
ahh, seems promising!!3 -
This link shortener service. It's nearly good enough for public testing.
Finding a good domain name, though.... 😅45 -
An SEO expert walks into a bar, bars, pub, inn, tavern, public house, Irish pub, drink, drinks, beer, alcohol...
-
!security
(Less a rant; more just annoyance)
The codebase at work has a public-facing admin login page. It isn't linked anywhere, so you must know the url to log in. It doesn't rate-limit you, or prevent attempts after `n` failures.
The passwords aren't stored in cleartext, thankfully. But reality isn't too much better: they're salted with an arbitrary string and MD5'd. The salt is pretty easy to guess. It's literally the company name + "Admin" 🙄
Admin passwords are also stored (hashed) in the seeds.rb file; fortunately on a private repo. (Depressingly, the database creds are stored in plain text in their own config file, but that's another project for another day.)
I'm going to rip out all of the authentication cruft and replace it with a proper bcrypt approach, temporary lockouts, rate limiting, and maybe with some clientside hashing, too, for added transport security.
But it's friday, so I must unfortunately wait. :<13 -
public void method()
{
// :(
}
instead of
public void method() {
// :)
}
bothers me more than it should19 -
I'm still angry Google Glass was torn apart by the public for looking goofy but AirPods are a success.11
-
An SEO expert walks into a bar, bars, pub, tavern, public house, Irish pub, drinks, beer, alcohol.1
-
I've read so many stuff in english that it feels really weird to read something in my native language(german). Especially when they're using german words in their code:
public Nahrung mittagessen;
public Gast()
{
mittagessen = new Gericht("Wiener Schnitzel");
}
are you fucking kidding me?!10 -
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 -
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 -
Looking into a helper class written by someone who was clearly not a master of their craft. The class deals with some string IDs...
public getIDPosition1(String id){
return id.substring(0,1);
}
So far so useless. But it gets better. What is declared immediately below the above method?
public getIDPosition2(String id){
return id.substring(1,2);
}
And below that? You guessed it:
public getIDPosition3(String id){
return id.substring(2,3);
}
This continues to position 10.... -.-7 -
GDPR conversation in public transport
“GDPR is so boring, basically it means delete all your clients and go home”
- unknown
Can I write this?2 -
Had an interview with ibm last week, got rejected because I don't have public speaking and people skills.
GG AWESOME!!7 -
Fuck public transportation. Seriously. It's usually disgusting, too hot, too cold, to expensive and not customer Friendly.7
-
colleague in a planning meeting: so now it's Easter, which in Germany is public holidays on friday and monday
PM: i as a manager would find it great if there weren't any public holidays
yeah not surprised, but thank fuck you're not the one to decide that... some people are trying to have a life^^9 -
I have an interview on Thursday for a job I've been doing for the past 9 months - I bloody hope I get it!
I'm currently classed as an 'Apprentice' but have been doing the sole job of the Developer after he left a week before I started.
The only differences between the two roles is the pay difference and title (just about double my current rate).
I've started to produce documentation and processes for rolling upgrades to our application without downtime which is something they're big on.
Public sector for you, it took 9 months for a replacement...8 -
$work is migrating to a new HR performance review service (15five). Instead of a private (ish) review once a quarter, it'll be public (and uneditable) reviews due every friday. Better make sure that review is perfect.
also, praising a coworker is required.
<sarcastic thumbs-up>13 -
//socially acceptable objectification
//of women
public class Woman : Person
{
}
//I'll see myself out.15 -
So some student complained that the busses are to full in the morning (they are filled with students).
Student: "why don't they drive more busses?"
Me: "because that would raise prices of busses since more drivers and fuel is needed. It's simple economics"
Student: "Public transit already is way to expensive, they can easily drive more busses and trains for that"
Me: "public transit is already way to expensive.... Oh look! An iPhone, MacBook, AirPods, Apple Watch, Dr Martins and other overpriced shit you have with you now!"2 -
Found this gem in some old piece of code:
public static void printStackTrace(Exception e){
e.printStackTrace();
}3 -
Notice :
Just as all the citizens are advised to use Public Transports so that there's less traffic and its convenient for everyone,
Similarly, everyone it is advisable to use Public WiFis, so that there's less Internet Traffic and everyone gets faster and better Internet services.
An active cooperation is expected from the citizens.
Thank you and have a nice day :) -
Went out with friends last night to celebrate a birthday, on our way back with the train we are asked for our tickets. We had bought a group ticket (for 30€/5 Persons) and showed it to the ticket checker. It was 6:20 am at that point and we were all tired and just wanted to go home, but apparently the ticket was only valid to 6 am (it does not say that anywhere on the ticket and it is called a "9-o'clock day ticket"). That asshole seriously made a record about all of us and took 60€ from everyone of the 5 of us.
The Deutsche Bahn company is the only rail company in my region, there is nothing that could compete with them, so they just shit on their customers. And now they want to privatize the highways too? Stop making public traffic something to pay for! There is no competition if there is only one traffic company with the only highways or train-web in a specific region.6 -
I always feel insecure when i push my code to github as public repo.
Like what if my code is so far from standard.
What if i showed a very stupid logic.
I am very insecure when pushing my code to public repos.12 -
The minister of human resources is a fucking idiot. Nobody including ministry employees knows exactly what will the rules be 6 hours ahead, but they take effect immediately and failure to abide is punishable. Yesterday the HR minister said that if public schools close down, everyone will have to repeat this year. In response to this and a few other questionable decisions on behalf of schools across the country, today the government banned anyone from closing down public schools including headmasters, public health services, the police and the ministry of human resources.2
-
* creates new class in visual studio
* needs to make it public
* writes "pubic" instead of "public" again...3 -
class Fraction {
public double dValue;
int numerator;
int denom;
...
public UpdateDouble()
{
dValue = numerator/denom;
}
...
}2 -
public function recruiters($salary)
{
if($salary == "competitive")
{
return NaN;
} else
{
return "What is the real salary?";
}
}3 -
In my current project my team lead created a revolutionary framework, which is capable to automate any manual work..
Here is its source code..
public class AutomateFW {
public Object automate(Object manualWork) {
// Call jr developers and assign them work :)
callFreshers(manualWork);
}1 -
A few years ago I found a public AWS S3 bucket owned by a fortune 500 company containing a database dump backup with all of their users unsalted md5 hashed passwords.
I didn't report it because I don't want to get sued or charged. I don't know whether it's still public or not.6 -
you know you should go home when you write "public private foo()".
it's public ... but private ... but still public
I'M DONE FOR THE DAY5 -
!dev
If you live in a major city and to stand still or walk slow on the left side of escalators/stairs then fuck you.
You wander around in complete ignorance of the countless last second train misses you cause.
Fuck you, go back to you slow town in the sticks!7 -
WHEN will people understand, that FUCKING SHOUTING IN THEIR PHONES in public transportation will NOT
NOT
NOT transmit their FUCKING voice faster, or louder or more clearly or FUCKING ANYTHING.8 -
[Image:Android Emulator Api 27(google play)]
It is in the public emulator now.Good job google employee😃13 -
Found this gem today
public findHM(int height, int height2) {
if (height < height2) return height;
return findHM(height - 1, height2);
}4 -
I am building a live streaming app.
General public: why don't you use periscope
I am building a photo sharing app
General public: why don't you use Instagram
I am building a social network
General public: why don't you use Facebook
I am build a audio app
Genera public: why don't you use sound cloud
Developer: WHY DONT YOU ALL FUCK OFF I am building it anyway dickhead7 -
Unnecessary Redundant Comment:
// this get data
public void getData(Data data)
{
.......
}
Why Just Why?18 -
some recruiter posted a recruitment on a public page:
looking for java developer.
Must know: anglar 6, scala and react..2 -
Reviewed some Unity game code yesterday
[HideInInspector] public NavMeshAgent agent;
Me:”why is this hidden if it’s public”
Dev: “so designers don’t fuck it up”
Me: “then why have it public”
Dev: “I need it to be set by another class”
Me: “then make it a private bar and create a get:set function”
Dev: “Why?”
Me: “Because hiding a public variables from designers is a bad model and by standards things now to be shown to the inspector should be private”
This shit is why I have no confidence in devs my age10 -
public void 2016(){
if (badLuck = NOT_ENOUGH)
badLuck++;
else
badLuck++;
}
public String 2017(){
return HOPE_FOR_THE_BEST;
}
Happy new year fellow programmers!6 -
!rant
FUCKING FINALLY
I GOT THE APPLE DEVELOPER CERTIFICATE
PUBLIC TESTFLIGHT PARTICIPATION SOON
THIS IS SLAMMIN5 -
Class DonaldTrump extends Shit implements Asshole {
public final boolean PRESIDENT = false;
public final String THINKING = "bullshit";
public void talk () {
System.out.println(THINKING);
}
}1 -
Saw this in a previous developer's code which is currently in production.
public bool reset;
public bool Reset
{
get{ return reset; }
}
This was done for most if not all the properties.3 -
The Instagram API sucks a Lot.
Why the fuck I've to login with my account using OAuth2 to get posts of a PUBLIC account, it's so hard to make an authentication endpoint that doesn't require the user to enter his credentials in order to access PUBLIC content?
Fucking piece of shit5 -
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
sorry for my messy code19 -
Hey, looks like some employee of this hosting company failed to 750 his home directory and 640 the files...
I was SSHing around on our hosting account when I slipped into his home direcory where at least two(!) SSH public keys of his admin account for the server were readable!
Being an honest guy, I had to call them...
It's fixed now.2 -
private String field;
public void setField(String field) {
field = field;
}
// I was wondering why didn't the value change3 -
A few months ago I bought an e scooter to get from home to work.
The backstory to this:
My car broke down on the highway, my sister's car broke down on the highway and we didn't have another car apart of my dad's anymore.
Which means I had to look for another car. The cars between 1k-5k € are dogshit and when you want to register the car you have to have an appointment at a government building which happens to be closed when I'm getting out of my 8-5 job.
I had enough and bought an e scooter.
Now back to now:
In the beginning it was cool.
Could get anywhere I wanted to in combination with the Germany ticket. Except for the Netherlands where my beautiful girlfriend is.
There I can legally not use it but that's ok lol.
The German government is hyping e mobility and public transportation up, but for what?
E mobility currently sucks ass with all the shit laws for e.g. e scooters and when you want to transport it in public transport, people give you weird looks, the bus driver wants you to buy a bicycle ticket even if I can fold the e scooter and more. The scanners in the bus of the German buses cannot read my German ticket for some reason and every bus driver in my city knows that and they just look at it and are like "Ok, you're cool. Continue moving", but this old grandma looking ass bitch is like "No, according to the law you need to show it to the scanner and not to me". I fucking know. I've been doing this shit for a year and you know that but it doesn't work. It says to me that I need to show it to you instead of to the scanner bc this machine is fucking dumb and apparently I'm holding the people because I started a discussion with her. This driver ... ugh. The buses in my city come whenever they want as well.
Like sometimes 5 minutes earlier, sometimes up to 30 minutes later.
Inconsistent motherfuckers and I am the one making everyone wait? Suck my donkey kong balls.
German trains... well you know how that goes. It doesn't. It sucks ass.
Every single fucking train line has a problem. Either a previous train has something, or staff is missing, or a technical error or the train driver's ass is itchy and needs scratches from his assistant. There's always something.
When I want to travelled home from my gf I spent not lying 8 fucking hours on the trains on Sunday.
Normally it takes max. 5 hours with a train and 3-4 hours with a car.
I can also go on a rant because of the Dutch train system because it also sucks, BUT they are reliable. They are there when they say they are gonna be there. 99% of the times.
In Germany it is somewhere at 10%.
Now I realized that e scooters are uncomfortable and expensive toys who need maintenance just like a car but nonetheless they are reliable unlike the public transport.
In the winter it will be even worse.
Electrical cars are way expensive and affordable electrical cars you need to keep charging every few baby steps.
I also looked at 125ccm motorcycles which you can drive if you upgrade your existing car driver's license, but ngl that's a scam. Not worth it at all.
And that's why I am looking for a traditional car now. E mobility is not there yet in Germany and public transport is not doable at this moment.15 -
The advancing of technology makes you prefer to take public transports instead of walking to go to work.
The people using it makes you prefer to walk instead of taking public transports to go to work.3 -
Public class douche implements douchebaggery {...}
Public interface douchebaggery {
Public void beInconsiderate();
Public void wearSunGlassesIndoors();
}2 -
my first ever public repo on github for @devRant community
devRant bot for Telegram
after being waiting to make some changes in the bot. I finally made it public.
https://github.com/puneetsngh/...
The bot will be fun for devRant community on Telegram plus it will also server as an example for bot creators on telegram app3 -
Sartre once said "Hell is other people" .
Obviously he did not use public transportation very often.1 -
/**
* // sad truth to everyone focusing only on age++ part :) IN YOUR FACES!
*/
public void birthday() {
age++;
ttl--;
}2 -
Really glad the privacy community can make some impact. I still don't understand why venmo has to has any public transaction feed and I don't think they have public off by default still, but at least they are explaining things to users instead of being sneaky with their dumb social-network-ish-thingy that made ALL OF YOUR FINANCIAL TRANSACTIONS PUBLIC!!????
I don't understand why they hid this whole public feed thing. I'm pretty privacy focused and I didn't even know that my transactions where public untill I saw https://publicbydefault.fyi/.9 -
other dev changed constructor from
public A(String val){
this.val = val;
}
to
public A(String val){
this.setVal(val);
}
this feels bad in many ways, but need some arguments to convince him that its wrong11 -
My company provides its services as web pages and web services to our customers.
Once a year we update the certificate used for the https connections.
I notified the update to the clients that use the web services.
One of them asked me a copy of the public key.
No problem. Open the web site with the browser, save the key and send by email.
One day later the client asked me the public key in a zip file because the anti virus blocked my attachment.
Why the client hates the Chain of Trust ?
He could obtain the public key by them self from the browser or openssl.1 -
https://youtu.be/SW_7Q_tAk9I
Shout out to the director of this commercial for capturing the incompetence of the general public. Obsessed with a person's shitty app instead of some revolutionary technology. Fuck them. -
My morning so far:
Walk out the door.
Miss bus I was supposed to have, no big deal I'll just wait for the next one (should be just 15 mins).
Next bus is 10 minutes late, seriously?
Get to the train station just to see my train doesn't go because of an outage. Screw this I'll work from home.
So how's your day going?6 -
And then, looking for the source of a bug in the code .... I randomly found this:
public bool IsOperationStarted { get; set; }
public bool IsOperationStartedTrue
{
get { return IsOperationStarted == true; }
}
public bool IsOperationStartedFalse
{
get { return IsOperationStarted == false; }
}4 -
class XXX
{
public:
std::vector<std::wstring> m_Files; // Recently used files
why not just use:
class XXX
{
public:
std::vector<std::wstring> m_RecentlyUsedFiles;
FFS4 -
When you open a previous employees production JUnit tests and see the below:
@Test
public void test1(){
...
}3 -
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 -
questions in our mind as soon as we see someone coding in public place:
» What is he/she working on?
» Is that person better than me?
and then we finally judge him/her as a showoff! 😂 -
Just found out about this: https://publiccode.eu/
If you live in the EU and care about privacy, security and/or open source you might want to check it out.
To sum it up: The idea is to have all software written for and bought by public authorities, governments and such published under open source licenses to enable every citizen to verify the integrity of that software (and give all the other advantages of FOSS).3 -
public const bool DEBUG_THAT_SHIT = ConfigurationManager.ParseBool("debugThatShit");
public const bool DEBUG_THAT_OTHER_SHIT = ConfigurationManager.ParseBool("debugThatOtherShit");
public bool iMadeANewFeature = ConfigurationManager.ParseBool("newFeature")?true:false;
Fucking new guy, can you not fucking read the other constants and make them look the same? Apparently not and I am the asshole. -
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 -
One of my favorite patterns in Java ✨
@highlight
public interface SocketOptions {
}
public enum UnixSocketOptions implements Options {
FOOBAR,
DAVE,
}14 -
1. Do you commute using public transport?
2. How long is one of your ways?
3. Do you use hearing protection during your commute?
4. Are you also extremely nervous if your public transport is just a nanosecond too late?9 -
I can't get any shit done when trying to work in a public place, like in class or at Starbucks or frankly anywhere where people can (and will) look at my screen, as they'll inevitably think, "what the fuck is this guy doing?"1
-
!rant
I did a lightning talk as part of a livestream on Friday!
Public speaking, good at it I am not jajaja
https://youtu.be/RtASfQrr6YQ1 -
We had a contractor come in claiming to be a certified SAP hybris Dev but he was useless. The weird part was: he refused to use the toilets in the office. We always saw him using the grotty public ones outside. These public toilets were 'well known' in the area shall we say.3
-
When you notice that the guy next to you is using Urban Dictionary to name public methods in modules.2
-
I'm trying to convert a legacy .NET Framework web api to .NET Core, the project and its supporting libraries are in awful conditions and to make things worse at a certain point someone has the genius idea of introducing Uncle Bob's "Clean" Architecture into a part of it so stuff which could simply look like this
public string doStuff(string input){
// Do the stuff
return output;
}
becomes a convoluted mess like this
public class StuffDoerRequest {
public string Input{get;set;}
}
public class StuffDoerResponse {
public string Output{get;set;}
}
public interface IStuffDoer {
public StuffDoerResponse Execute(StuffDoerRequest request);
}
public class StuffDoer {
public StuffDoerResponse Execute(StuffDoerRequest request) {
// Do the stuff
return new StuffDoerResponse() {
Output = actualFuckingOutput;
}
}
}
Edit: sorry for the lack of indentation, apparently DevRant trims leading whitespace7 -
fellow dev thought he was being clever, hiding his private ssh keys inside image files on a public web server...2
-
Question PHP folks. Is it a standard to write:
public function hair()?
Writing only:
function hair() is just the same thing to the above. It will default to "public" hair right? 🤔 maybe just a PSR-2 standard or for readability? Thanks!3 -
God damn it, if you (libGDX) have default values for public methods then make those constants public. Now I am writing wrapper and I either create my constant with same value as your private one, or do some reflection black magic which will probably break after obfuscation. *sigh* Going with my copy of the constant, not happy about that...
-
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 -
Website: what's your address?
Me: It's 192.168.1.7... Oh! Silly me! You meant my public address!! 89...1 -
Java rant...
If public field declaration is so so bad, why can't all class fields in java just be private by default? And make it a pain in the ass to expose it as public?
I can't actually remember a time declared a class field as public, it is muscle memory now... Private bla Bla Bla, return, private bla Bla, return...4 -
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 -
My first time standing up and talking about something for an hour tomorrow. "Knowledge sharing" as if I don't do enough one on one...
Why must you have to do this shit to get promoted? Why can't managers trust that your good at what you do without the public cock sucking?
Back to my introverted rock for a while.5 -
Why is my the fingerprint for my public ssh-key seen not as a sha256-fingerprint?
Left: Windows
Right: Raspberry3 -
public static void turnItUpTo(int val) {
this.setLevel(val);
}
public static void main(String[] args) {
turnItUpTo(11);
System.out.println("Rock out");
} -
I'm currently sitting in a hockey arena owned by my city, they offer free wifi, and cause I'm privacy conscious, I try to download a VPN for my computer. The motherfuckers block the download under the vague "violation of use policy" bullshit. Even better, I read the ToS they give you when you connect, and it says sweet fuck all about prohibiting downloads. What the fucking fuck do you have to gain from me not using a god damn VPN. It just makes no god damn sense.3
-
I was wondering.... why are rants public?
Shouldn't be better for DevRant's feed to be visible only to logged members?4 -
public class TodaysRant extends YesterdaysRant implements Rant {
public string getRantContent() {
StringBuilder sb = new StringBuilder();
sb.Append(super.getRantContent());
sb.Append("Going on my rant from yesterday, should you be required to provide your own laptop/desktop/equipment, or should it be the responsibility of the company?");
return sb.ToString();
}
}1 -
When my professor horribly failed to derive an equation in class, a classmate said:
"Public differentiation is slander" -
Is there any documentation on what is public API or not?
@dfox or is reverse engineering the calls allowed?17 -
As a developer with adhd, some days are just wasted and ends with the brain getting stack overflow from to much unorganized code and infinite callbacks 😂
$brain = new adhdBrain;
while($brain.energy > 0) {
$brain->checkSocialMedia();
$brain->work();
$brain->readNews();
$brain->getAngryWithSoundsInTheOffice();
$brain.energy--;
}
public function work() {
$brain->getAngryWithSoundsInTheOffice();
$brain->readNews();
$brain->code();
$brain->readEmail();
$brain.energy--;
}
public function getAngryWithSoundsInTheOffice() {
$brain->readEmail();
$brain->angry++;
$brain.energy--;
}
public function readEmail() {
$brain->work();
$brain->readNews();
$brain.energy--;
}
public function readNews() {
$brain->work();
$brain->getAngryWithSoundsInTheOffice();
$brain.energy--;
} -
So, I thought that I would simply be able help improve MacOS Mojave... I thought wrong. They just yesterday rolled out version 2 of the public meta, but it is absolutely horrible. Most Unstable operating system ever to be made. The windows public betas were a lot better. I can’t even install virtual box...3
-
Fuck the traffic jam I'm dealing with every damn day since two fucking months. It takes 1,5 fucking hours to geht the fuck home from work. I'm done with public transportation. I'm gonna take my shitty bike out even if the fucking temperatures are lower than the standards of the fucking people who misplanned this goddamn street reconstruction.4
-
Public link to data of students, teachers, everyone. Address, mobile numbers, emails, parents numbers and more.
-
public Person Birthday ( Person Me ) {
Me.Age++;
return Me;
}
Almost got away this year, quitting time before collegues caught it.4 -
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 -
Has anyone ever bought a domain and left your info public?
It amazes me that these spammers can't even make their emails read well or professional ah oll
Like "Google top page)"
Did you really not see that parentheses there?3 -
https://prodajatest.byethost7.com/
My first public website... Please don't say how it is bad because I know believe me :) There is probably XSS and SQL innection attacks so feel free to play with it. Also it is on serbian but you will figure your way in and out (if you even open the website)6 -
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 -
Today is a public holiday ! What could be best than testing a new framework and see this shining November's sun only through the window ?
.. Ah yeah, I forgot my beer, she never leaves me alone. -
I ran across this video and thought of @b2plane. He complained about a greasy face. Well these little guys love the greasier part of the face!
https://youtube.com/watch/...6 -
Public static void Main()
{
wakeUp();
massiveProject.refactorLargeSwathsOfCodeForReusability();
smallerProject.findOutItCanBeDoneInOneLine();
Environment.RageQuit();
} -
Dear Instagram api, why do you need to review my app/client for displaying public posts by people? I mean people public-ed them.3
-
Just spent 10 minutes wondering why my change log hadn't updated after I knew I made a change to a file.
I updated the public version instead of the src. -
public String findHappiness()
{
if(EverythingOk)
return “Drink Beer”;
else if(EverythingNotOk)
return “Drink Beer”;
else
return “Drink Beer”;
}1 -
Those public place that ban connection to VPN, rushing to creep on your life for profit. Pure evil.2
-
Politely suggested the wife should take the car today to run errands and I'd take public transport to work today.
Hopefully the only regret I'll make today.2 -
Where can I upload some of my projects on internet (just want to show my codes in public and get some valuable advise)?
I am not that old in programming to make really complex programs but I had build some projects so, i want to upload them ;-)5 -
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 -
Why on Earth is React.Component.state public? This doesn't make any sense. It has no significance, but it just feels so, so stupid.2
-
Heaviest element yet detected in an exoplanet atmosphere:
https://eso.org/public/news/...
Your mom...1 -
Saved almost 50min traveling time due to public holiday so less traffic while working on public holiday. It's a loss-loss situation anyway.
Well fuck. -
C# styling question: in a constructor do you prefer:
public MyClass(int MyVariable) {
this.MyVariable = MyVariable;
}
or
public MyClass(int _MyVariable) {
MyVariable = _MyVariable;
}
?22 -
Opinions please. When end user is not paying for service, who is my customer? For example public facing government project2
-
public static bool IsYouCrazy()
{
// I can't stand random
// carriage returns
bool hasRandomBlankLines = true;
Return hasRandomBlankLines;
} -
So I've spent some time learning a little about the halting problem, and it's quite fascinating. I tried to simplify it down to these few functions. What do you guys think? Obviously, psuedo-code, so don't get too caught up on the syntax 😆
The Halting Problem:
public String doesItHalt(Callable function){
...
if (...){
return "Yes"
} else {
return "No"
}
}
public int someFunctionFooThatHalts(){
...
}
public int someFunctionFooThatDoesNotHalt(){
...
}
public String inverseAnswer(value){
if (value == "Yes"){
return "No"
}
if (value == "No"){
return "Yes"
}
}
public String inverseHalts(Callable function){
return inverseAnswer(doesItHalt(function))
}
————————————————————————————
$ doesItHalt(someFunctionFooThatHalts)
Yes
$ doesItHalt(someFunctionFooThatDoesNotHalt)
No
$ inverseHalts(someFunctionFooThatHalts)
No
$ inverseHalts(someFunctionFooThatDoesNotHalt)
Yes
$ doesItHalt(inverseHalts(doesItHalt))
???2 -
`load pubkey "/Users/karunamon/.ssh/id_rsa": invalid format`
The fuck? I've been using this keyfile for ages. And that's the private key, not the public key.
Maybe I'll try converting it to a different format.
(20 minutes of ssh-keygen command attempts)
Same error. I don't freaking get it. It works. I mean, I know my public key is..
(public key is actually completely mangled with newlines everywhere)
..yknow what, my fault, but you could have at least given me the public key filename, ya jerk.1 -
public void DailyLife(bool sleep)
{
While( WaitingForCompile && !sleep)
{
BrowseDevrant();
FindNew("Girlfriend", "tinder");
RefreshIfCold(coffee);
}
DebugCodeIfErrorFound();
DailyLife(Datetime.Now >= Sleep.Time);
} -
I discovered today why IOS is superior to joe public. Sorry but infinitely superior. Android just sucks. end of.9
-
public class MyLife {
public static void main (String [] args) {
System.out.println ("My life sucks!");
}
} -
Json host files of a whole server networks root server passwords under the webservers configs directory open to the public.
-
{
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;
}
}
} -
Went out at 3pm, if public transport wouldn't have shit itself I would have arrived home at around 5.40pm.
....
Buut public transport did shit itself and now I'll be arriving at 7pm..
Trains are fucking impossible y'all -
Including critical build dependencies inside Android Studio.app instead of in a public repo... why?2
-
Does anyone know a public API to test basic authentication other than github that return a token when the submission is successful1
-
[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 -
When you are dealing with Public Key Infrastructure (PKI) services, which of the following you would use to verify an email with a digital signature ?
A. The sender's public key
B. The sender's private key
C. Your public key
D. Your private key
E. What are you talking about ?
F. None of the above4 -
Functions with all Get/Post data as parameters like this
public function qwerty($params)
{
return $params['item']['price'][0]* 2;
} -
My journey along Java continues and so I have discovered something I didn't know before:
If a subclass tries to call a method on its parent which it has not overridden, then it will call the method as if you hadn't used the keyword 'super' (and I think it will try to find it in the classpath and SDK).
Example 1:
public class SuperParent {
public String test(){
return "SuperParent";
}
}
public class Parent extends SuperParent {
}
public class Child extends Parent {
public String testChild(){
return super.test(); // same effect as test();
}
}
public class TestInheritance {
public static void main(String[] args) {
System.out.println(new Child().test()); // returns "SuperParent"
}
}
Example 2: with getClass():
public class Parent {
@Override
public String toString(){
return super.getClass().getSimpleName();
}
}
public class Child extends Parent {
}
public class TestInheritance {
public static void main(String[] args) {
System.out.println(new Child()); // prints "Child"
}
}
This here is of course a special case: .getClass() will always return the class name of its caller, so naturally in this case it returns Child and not Parent.
You would expect it to return "Parent" since you use 'super' in the overridden toString() but it returns the Class name of the Child (then there's something in programming languages such lexical scope and execution scope, which I'm not sure if it applies here).
The solution for this example is of course .getSuperClass().
Inheritance isn't always straight-forward.
References:
https://stackoverflow.com/questions...
https://stackoverflow.com/questions...2 -
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 -
class post
{
public string type = "question";
public string info =
"I made a Notification Drawer for pc. It checks a file every 0.01 second. If that file contains a specific line of code, the notification drawer shows a notification. This way I can make other programs to be able to send notifications.";
public string question = "Is there an easier / better way to make 2 or more programs communicate?"
}8 -
So I miss my job to go to the local traffic department to check my driver license and their system is out. (boss will fuck me)
Then I see they have 5 brand new Windows powered HP machines you can use to check your processes and stuff. The Internet is blocked, but strangely no one bothered that user has administrative rights.
Cmd and Explorer in the screen are in admin mode2 -
Here's your Friday fun fact!
Too lazy to look up your current public IP?
ufw allow from `echo $SSH_CLIENT | awk '{ print $1}'` to any port 8080
A lifesaver for opening up the firewall when I'm too lazy to look the public IP of the coffee shop I'm at.1 -
Do you put Caps to public variable ?
My IDE was doing caps to public variable but someone told me that he was wrong it's not caps for public variable only functions.9 -
Don't judge here fuckers you know it's call DevRant, not DevITalkAboutHowIShouldImproveMyself -
Fuckg "public_actions" and "publish_actions" fucks me once again!1 -
/**
* Class TransactionModel
*
* @codeCoverageIgnore
*/
public class EtlNotifyRepository extends DatabaseRepository implements EtlNotifyInterface
{ ... }
Copy/pasting doc ain't good D:2 -
First funky public app with now, a plain chat in the console (does not work on mobile then) https://gloubiboulga.now.sh
-
Migrate batch from hibernate3 to hibernate5 and have to add @Transactionnal annotation.
Ok
public InsertBaseDao getInsertBaseDao(){...}
public InsertBaseDao setInsertDao() {...}
Seriously ?! An object called InsertBaseDao ? ... -
!dev
I hate when people walk on your charger's cable like it is public property, something acceptable. What the actual fuck; public decency is slowly fading away from the public?3 -
!dev
Missed the fucking bus to work because they changed up the times here without prior notice...
So no more having the "nice" train (with comfy clean seats, wifi and airco) but the "crap" train (old dirty seats, no wifi and no airco) AND a quarter of an hour wait...
I rly need a drivers license... -
First I thought I finally found some public WiFi which isn't unencrypted (Password was on a sign outside).
*Opens WiFi settings*
*WiFi is unencrypted*
Huh? *Connects*
*Sign in page opens up which asks for the password*
Well... VPN is the way to go...9 -
#Question
Is there any online platform where I can get my public GitHub repository code-reviewed by devs?4 -
If github had an option to make private- public branches or a public "launch" page for private repo, it would have replaced playstore and other software markets long time ago8
-
company i work at was able to go public, and get listed on Nasdaq. i struggle to understand what that means for me. is anything gonna change? any advice?
i also find it baffling how u can be a public company and not give ur employees bonuses or raises for 3 years straight...1 -
Worked on a project where the variable was public and static, was accessed at multiple locations and across multiple threads and no it wasn't using thread safe implementation. Since then whenever I read public static I start praying the next word be "final".
-
Even if he's emotional, someone on devRant have similar stories/experiences?
http://churyumov.com/2019/02/...2 -
WHAT IS WRONG?
public class Person {
String name;
public Person (String personName) {
name = personName;
}
public String greet (String yourName ) {
return String.format ("Hi %s, my name is %s" + name+yourName);
}
}3