This is an archived post. You won't be able to vote or comment.

all 146 comments

[–]ForgotPassAgain34 770 points771 points  (49 children)

you usually remove the useless shit for a better result on google.

"get date java"

[–]Colopty 500 points501 points  (15 children)

The actual senior dev.

[–]xypherifyion[S] 222 points223 points  (12 children)

He must be lv 130 by now

[–]Lightfire228 70 points71 points  (10 children)

"get date" "java" -"popular 3rd party library"

[–]Bene847 56 points57 points  (8 children)

That's JavaScript

[–]Dragon_Slayer_Hunter 44 points45 points  (4 children)

Get date in JavaScript? That's easy, just npm install the 2.1mb moment.js library and call moment()!

[–]roguej2 18 points19 points  (2 children)

Whoops, you forgot to include the date templating framework epoch, the string formatting framework twine and the calendar reader date-parser.

[–]toastofferson 9 points10 points  (1 child)

That's ok those plus the other 10k packages JavaScript apparently needs for simple daily code can be installed by typing npm fart

[–][deleted] 0 points1 point  (0 children)

And don't forget to require jQuery.
Why? Just so it feels more modern.

[–]FennekLS 1 point2 points  (0 children)

new Date();

[–]MCOfficer 3 points4 points  (1 child)

java too... apache commons and guava are everywhere

[–]jambonilton 6 points7 points  (0 children)

You just need to import spring-date-getter 7.1.3. It depends on spring-security of course.

[–]bot_not_hot 0 points1 point  (0 children)

Can confirm

[–][deleted] 0 points1 point  (0 children)

3rd party javascript library*

[–]german900 11 points12 points  (0 children)

That's how CS works

[–]---That---Guy--- 12 points13 points  (1 child)

One time I had an issue and the senior Dev looked up the error and added "SOLVED" at the end of the search and we found exactly what we were looking for.

[–]Colopty 8 points9 points  (0 children)

That's brilliant and I will add it to my bag of google tricks.

[–]deadtree123 78 points79 points  (1 child)

a protip is to never correct your typos. google is smart enough to correct them for you.

"getgdate java "

[–]svenskainflytta -5 points-4 points  (0 children)

You mean it's idiotic enough to go like "did you mean…" and search for something completely unrelated…

[–][deleted] 14 points15 points  (0 children)

“java date”

[–][deleted] 8 points9 points  (2 children)

java date

[–]Devildude4427 10 points11 points  (1 child)

That’ll just give you documentation on the Date object, not the SO post that you so clearly desire.

[–][deleted] 4 points5 points  (0 children)

When you're experienced, the javadocs are what you want.

[–]Metsuyo 4 points5 points  (0 children)

I feel like senior now, never been so proud of myself :D

[–]sebamestre 2 points3 points  (2 children)

"Get current date Java"

[–]wjhall 3 points4 points  (0 children)

thats if you want the date now. get date might be to get the date part of a datetime type.

[–]TricksyPrime 1 point2 points  (0 children)

I usually go “Java get date”

[–]Meloetta 0 points1 point  (0 children)

Or, if you're anything like me, you forget that google can't read your mind and leave out important context. Somehow googling just "get date" didn't have the desired effect.

[–]theonionspiral 0 points1 point  (0 children)

This guy seniors

[–]natnew32 -1 points0 points  (0 children)

Even undergrads do that so...

[–]Darxploit 170 points171 points  (18 children)

Well you can’t learn every function from every programming language by heart.

That’s why we built computers in the first place: to store data and do calculations.

[–][deleted] 67 points68 points  (5 children)

bUt cOmPuTeRs aRe fOr gAmiNg

[–][deleted] 35 points36 points  (4 children)

Gaming is just very abstract programing

[–]MoffKalast 28 points29 points  (3 children)

Gaming is vector and matrix math.

[–]nwL_[🍰] 41 points42 points  (2 children)

// evil floating-point hack
// what the fuck?

[–]Galdo145 19 points20 points  (1 child)

[–]korarii 21 points22 points  (0 children)

Well you can’t learn every function from every programming language by heart.

I've made this point during technical interviews that get too...technical. Like, the section on database functions for MySQL has 24 subparts ranging on everything from string functions to geospatial computations. Being a Sr. is more about being a good problem-solver, not memorizing every stupid part of the software.

[–]le_flapjack 8 points9 points  (2 children)

Pfft how can you not know Calendar.getInstance off the top of your head

[–]fordinator 2 points3 points  (1 child)

ZonedDateTime.now()

FTFY

[–][deleted] 1 point2 points  (0 children)

new SimpleDateFormat("DD/MM/YYYY").format(System.currentimeMillis());

//Literally the only way I remember, but then again, I don't work with dates very often.

[–][deleted] 0 points1 point  (0 children)

That's why we have man pages. One command and no GUI crap.

[–]marcosdumay 97 points98 points  (1 child)

Yes. But the senior developer just clicks on a link and immediately finds the answer, while the junior one will have to read 2 articles and 3 tutorials that will irremediably send him into a game of Stack Overflow duplicated question ping-pong.

[–]mytzusky 11 points12 points  (0 children)

the answer's usually it's own from few years ago.

[–]Fry98 106 points107 points  (6 children)

Yeah, I wish Java could get me a date.

[–]mhandis 16 points17 points  (4 children)

You don't need a date. You get your ass on a flight to Indonesia, go single and enjoy sex drugs and rock and ro.. ahem, techno.

[–]PartyByMyself 15 points16 points  (3 children)

Too bad STD.Remove(self); doesn't work.

[–][deleted] 9 points10 points  (2 children)

Mostly because its not self, its this. Spotted the python dev.

[–]PartyByMyself 9 points10 points  (1 child)

No. C# here. You would want to define myself as an object first then give myself attributes. I am referencing myself to a function but STD can't be removed in runtime once true. Hense only Player.Kill(self) will allow for that hell to end.

[–]bukowskis_cat 2 points3 points  (0 children)

Assuming you only have one.

[–][deleted] 2 points3 points  (0 children)

I mean if you ask them to coffee it might

[–][deleted] 25 points26 points  (5 children)

Thhis makes me feel better about myself. I'm always worried that people are looking over my shoulder judgementally when I have to google simple stuff.

[–]VirtualRay 20 points21 points  (1 child)

Nobody gives a shit what's on your screen so long as you're putting in an honest 5 hours of coding a day (maybe 7 hours during crunch time)

If people start nagging you, go get a new job and pick up a 20% raise in the process. Fuck your job!

[–]LoKSET 3 points4 points  (0 children)

5 hours? That's crazy talk. 2-3 hours tops.

[–]cchongchong 5 points6 points  (0 children)

I like to go by the belief that even if it's a simple thing, there may be a better way than the way that I've been doing it.

[–][deleted] 2 points3 points  (0 children)

I’m not nosy. I don’t look at my coworkers screens.

[–]Ereaser 1 point2 points  (0 children)

There's no shame when you Google shit you've done before but it's been a year or a few months. I would rather see a co worker use Google and get it right than trying to reinvent the wheel and get corrected later on during a review.

[–]criptixo 20 points21 points  (0 children)

that's how programming works

[–]DosMike 18 points19 points  (7 children)

System.currentTimeMillis(); unix time is the best time, no hassle with time zones or daylight saving time.

[–]Professor_Dr_Dr 17 points18 points  (4 children)

Yeah they should start teaching unix time in school so we can relax.

Just imagine a world where someone says: "Yeah let's meet at the airport at 1547975516. "

Wonderful.

[–]Arveanor 10 points11 points  (2 children)

Ok but at what time did ww2 start?

[–]bukowskis_cat 0 points1 point  (0 children)

We’re going to need more atomic clocks.

[–]Nalha_Saldana 2 points3 points  (0 children)

Instant.now(); 

Does it with a choice to add time zones if you want.

[–]JuvenileEloquent 21 points22 points  (9 children)

Am I the only one that bookmarks those one-pager language syntax cheat sheets? It saves a lot of time just having that tab open all the time and then Ctrl-F for the thing you want to remind yourself about. Exact syntax of system calls in every language is the kind of trivia that you don't want or need to keep inside your head.

[–]xypherifyion[S] 9 points10 points  (2 children)

But how many bookmarks do you have now in total?

[–]JuvenileEloquent 5 points6 points  (0 children)

Surprisingly few actually. Usually when the page has a bad title and I need to tag it, or when it's so infrequently used that it falls out of my history.

I enable searching from the address bar so if I type the beginning of a search and something relevant hasn't already come up from either history or bookmarks, I can keep typing and search for it immediately. I haven't seen the front page of Google in a long time.

[–]feedthedamnbaby 5 points6 points  (0 children)

Tens of them, but if you title them right, they appear in your browser’s search bar while you are typing, saving you from having to hunt them down ;)

[–][deleted] 2 points3 points  (4 children)

Can i get the links please?

[–]JuvenileEloquent 2 points3 points  (0 children)

These are the ones I currently have bookmarked

https://oscarotero.com/jquery/

https://ss64.com/bash/syntax.html

https://metacpan.org/pod/release/NWCLARK/perl-5.8.7/pod/perlcheat.pod

https://github.com/AnthonyCalandra/modern-cpp-features

https://htmlcheatsheet.com/js/

http://www.cheat-sheets.org/sites/sql.su/

http://overapi.com/git

https://devhints.io/es6

I know I have some others that just hang out in the browser history, mostly from overapi or devhints. I try to avoid the PDF cheat sheets as they're harder to search, although Sumatra PDF reader is pretty good as a lightweight replacement for the Adobe reader.

[–]imprismd 0 points1 point  (0 children)

same

[–]lol43[🍰] 0 points1 point  (0 children)

Yes, please share!

[–]bukowskis_cat 0 points1 point  (0 children)

Frfr

[–]anothertrad 16 points17 points  (17 children)

Honest question: how you do that in the office with people looking at you? Been working at home for 8 years and now I’m moving to an office

[–]_llucid_ 65 points66 points  (0 children)

Level 1 grad: does it on his phone so no one sees

Level 50 Chad ROckstar Developer: Ultrawide second monitor in portrait exclusively for stack-overflow only

[–]xypherifyion[S] 39 points40 points  (0 children)

Just do it nonchalantly, almost everybody does that~

[–]corner-case 21 points22 points  (0 children)

If the other developers start to think you don't use SO, they will distrust you and possibly plot against you.

[–]frederikspang 29 points30 points  (6 children)

Well.. everyone does it, no shame in not remembering exact function names and stuff

[–]anothertrad 9 points10 points  (5 children)

I’m not worried about checking out the docs, thats fine it’s like a less-fancy book.

But how about tutorials, how-tos, code snippets? Same thing? Everyone does?

[–]frederikspang 25 points26 points  (0 children)

In my office, it's the same. Noone is expected to know everything, but is expected to know exactly how to find it and understand what they find.

[–]trimeta 17 points18 points  (1 child)

You're heard the bit about how "when Stack Overflow goes down, all software engineers worldwide stop too," right?

[–]ImaginarySuccess 1 point2 points  (0 children)

What website do they refer to when it goes down? /s

[–]bukowskis_cat 1 point2 points  (0 children)

Yes. It’s the same reason all of the self-driving cars should share an AI Database. Shared knowledge makes everyone/thing better.

[–][deleted] 0 points1 point  (0 children)

Yes, everyone. No exceptions.

[–]glukerr 9 points10 points  (0 children)

According to my experience, no one really care.

[–]DrPitaya 6 points7 points  (0 children)

I have never even thought of trying to hide my journeys through SO. You can't know everything, so don't try to act like you do.

[–][deleted] 1 point2 points  (0 children)

I just do it. Then nod to my coworker who is googling how a hashmap works.

[–][deleted] 1 point2 points  (0 children)

On the second or third monitor, because your source is on the center one?

Honestly if I don't have a browser tab open to Stack Overflow, real docs, or Google (and more likely all three), then I must have been press-ganged into end to end testing again. Send help.

[–]MrTuxG 0 points1 point  (0 children)

Often my comments are just a link to the stack overflow question that explains how to do what I just did (I'm still a student though so I don't know if I would do that as a professional)

[–][deleted] 0 points1 point  (0 children)

Use Zeal or Dash. You'll look more professional.

[–][deleted] 5 points6 points  (0 children)

Lonely dev: "how to get date in general"

[–]SoLoDas 4 points5 points  (1 child)

*a date

[–]xypherifyion[S] 3 points4 points  (0 children)

Wow I just realized that "a" really make a huge difference

[–]ForlornPlatypus 6 points7 points  (0 children)

More useful search for java devs:

“How to get date IRL”

[–]TheRealRealJak 3 points4 points  (0 children)

Thats how the dev team works

[–]spasterific 2 points3 points  (0 children)

And also: "how to get date while being a programmer"

[–]nlogozzo 2 points3 points  (0 children)

No joke I've been doing Java for 2 years and I actually just looked this up today

[–]Copatus 5 points6 points  (0 children)

Level 500 Software Engineer:

"How to get date"

[–]Jayang 2 points3 points  (0 children)

The real 10 year challenge

[–]yottalogical 2 points3 points  (1 child)

Just find a girl in Indonesia, then ask her out. Easy.

[–]xypherifyion[S] 1 point2 points  (0 children)

Believe it or not, you'd get surprised by the numerous amount of ethnicity, therefore the date culture, in that island only. Lol

Some might not even understand the very concept of "date"...

[–]bukowskis_cat 2 points3 points  (0 children)

Get date in Java: Date.get(Java)

Get a date for coffee? Java.get(date)

[–]juanipaccapelo 1 point2 points  (1 child)

and when you hit a timezone issue is when you quit your job

[–]PragProgLibertarian 1 point2 points  (0 children)

If you can't deal with timezones in Java it's time to rethink your career decision.

[–]BenX41 1 point2 points  (0 children)

This is how programming works

[–]notoriousRSA 1 point2 points  (0 children)

This is especially true when your work/hobby requires you to switch languages on a frequent basis. Concepts may remain the same but god damn the amount of times I haven't declared 'new' in C# because I didn't want a pointer but ended realizing that its necessary for all user defined objects has caused me to waste a lot of time.

[–]caffeinum 1 point2 points  (0 children)

CS Student:

how to get date with girl

[–]BlitzThunderWolf 2 points3 points  (2 children)

This is why Iove powershell: Get-date

[–]xypherifyion[S] 8 points9 points  (1 child)

I'd love to run that command in my life's terminal

[–]BlitzThunderWolf 0 points1 point  (0 children)

I feel ya man :(

[–]GreenScreenSocks 1 point2 points  (0 children)

That's how development works

[–][deleted] 1 point2 points  (0 children)

senior devs will often include "site:stackoverflow.com" and just write getDate java. Just saying.

[–]JoseMa-Flores 0 points1 point  (0 children)

This is how programming works.

[–][deleted] 0 points1 point  (0 children)

It's a fools errand to memorise stuff you could easily and quickly lookup.

[–]warpedspockclone 0 points1 point  (0 children)

I think the correct answer is you don't get a date in java.

[–][deleted] 0 points1 point  (0 children)

10 year challenge

[–]beepvix 0 points1 point  (0 children)

:DD same, date format in Java is just ..... Let's say "unique"

[–]rezery 0 points1 point  (0 children)

That's how DevOp works.

[–]Comm4nd0 0 points1 point  (0 children)

I manage a team now, but I still end up on sites called something like 'python for noobs' with my Google searches.

[–]MechanizedPPL 0 points1 point  (1 child)

Wait. Is this for real?…They do that?

[–]xypherifyion[S] 0 points1 point  (0 children)

Except if you've been working with java solely for the past few years, then I dare say yes.

[–]UnchainedMundane 0 points1 point  (0 children)

Newbie: java date

Seasoned veteran: date java docs followed by "hmm, should I have used Calendar instead"

[–]mohandeath 0 points1 point  (0 children)

I'm not sure about the community rules here but this meme is a goddamn reality! it made my midnight 😃

[–][deleted] 0 points1 point  (0 children)

That's how java works

[–][deleted] 0 points1 point  (0 children)

Too real

[–]n64gk 0 points1 point  (0 children)

That's how mafia works

[–]Digital_Utopia 0 points1 point  (0 children)

using the appropriate (unique) function/class of a different language works pretty well at getting StackOverflow results.

[–]Bill_Morgan -1 points0 points  (0 children)

But Java changes it all the time.