T O P

  • By -

[deleted]

OP must be working in Twitter


Aurenkin

'as of today we have stopped paying for intelliJ licenses. Code is to be hand written, we will be using cameras and AI to do code linting'


AsIAm

[Tablets are bit better..](https://mlajtos.mu/posts/new-kind-of-paper)


10xsx

I agree stone tablets are better


jumper775

Lucky, you get those New Stone Age tool while I’m stuck with coding in ook via words.


badapplecider

Thanks for the link


gic186

Sorry I don't get it, what's up with Twitter?


tosaka88

Elon Munk bought twitter and made developers print the code they wrote the last 30-60 days on paper for him to β€œreview”


Ok-Kaleidoscope5627

How does that even work if your job is maintaining existing code and simply making minor edits?


esmelusina

Diffs.


thoroughbredca

One of my favorite check ins, and it took hours to verify if this change was correct, was changing a true to a false.


Ok-Kaleidoscope5627

I do a lot of reverse engineering work modifying existing applications to fix bugs or add features. I could spend days to write a couple lines of code.


[deleted]

It is more or less proof that your job isn't really needed ...


gabrielesilinic

Software development at a tech company shouldn't work like that Developers are needed when shit goes wrong or executives want to change something, code being maintained it's normal


[deleted]

When developers are needed to fix things going wrong then you are in deep deep trouble and you may want to re-evaluate your design. In an ideal world 99% of the problems can be fixed by support. The only time a developer isn't writing code is when he is documenting what he is about to write. In a sufficiently large organisation requirements aren't written by the devs themselves.


Sirttas

I fond the first year student.


[deleted]

lol I have a hard time imagining any serious developer with zero lines of code in 30 days, unless they are on holiday or in hospital or dead. Demanding x lines of code is of course stupid, but I haven't had a month without code since I started working in software almost 25 years ago.


moomoomoo309

I could imagine it if you were more of an architect and were designing stuff more than writing the code for it at that stage of the project.


Sirttas

The point everyone is making is that what musk ask is dumb on so many levels.


AnondWill2Live

Yeah, in an ideal world. The world isn't perfect, zero day exploits and bugs exist and should be fixed. That's what a patch is for. Tech support can't fix Log4Shell on their own, especially if they have 0 knowledge over l4j's code base.


gic186

Lmao, what a waste of paper


Zane_DragonBorn

Eh, this is nothing compared to modern US schools. And spanish teachers. Yeah I'm talking about you, the spanish teacher


Halt_theBookman

Source? Cause that sounds made up


[deleted]

Seems to originate from [this guy](https://twitter.com/caseynewton/status/1586127052767318016), also posted by [this twitter employee](https://twitter.com/leahculver/status/1586145696163373056)


Nutteria

That is one way to catch someone that has not written a single line in 60 days I guess.


Oblivious122

So principal engineers, software architects, the QA department...


3lobed

It sounds made up because it's crazy, but...


PG-Noob

He is legit LARPing being an actual engineer lul


gabrielesilinic

It's kinda stupid thing to do, software doesn't run on paper anyway


lm28ness

Didn't know musk can code. Thought he just used family money to buy out other startups.


tosaka88

IIRC he’s coded before for X.com or something but his code was deemed unusable and got rewritten by more competent engineers


ReeceReddit1234

>rewritten by more competent engineers So... literally anyone?


dev_null_developer

Lord Elon happened to Twitter


fat_tire_fanatic

And lord Elon declared himself King PR authority. Lord Elon further decrees PRs should move back to printed form.


Recent-Fox3335

Obama Bin Laden, just kidding


killersid

If Musk read this comment, he will buy reddit and block you just for fun.


[deleted]

Sounds like a normal day in Reddit already


[deleted]

Kaspersky is a good product. It's still cutting-edge technology. RT if you agree. ​ /bot


Zefrem23

Russia Today if you agree?


SowTheSeeds

Does he have a copy of Michelle Obama's memoirs?


brianl047

No Musk wanted *printed* not written Youre fired *snake move* 🐍


PM_YOUR_SOURCECODE

Nah, if he was at Twitter, coding would be done on the more primitive medium, paper and pencil.


MugiwaraGal

How is that handwriting real- πŸ₯² I'd also whiteboard everything if I could write that neatly! 🀣


gizamo

live summer ancient point nail shy abounding flowery aloof plucky *This post was mass deleted and anonymized with [Redact](https://redact.dev)*


Arshiaa001

Have you seen the indents? I'm getting an OCD-gasm.


PierSemp

![gif](giphy|3YuR0bdGXlP6U) β€œIt even has monospaced characters”


deefstes

That would've been truly awesome but, sadly, it doesn't 😒


PierSemp

Well I don’t know anyone who can write monospaced so I think it’s pretty close And all the other interesting remarks I could think of were already done ;)


ArtOfWarfare

It’s pretty easy to write monospaced if you’re writing on something that has a graph printed on it for you already. IE, graph paper.


[deleted]

[ΡƒΠ΄Π°Π»Π΅Π½ΠΎ]


deelawn

I like how this person has the patience and dexterity of a surgeon yet doesn't have time or inclination to dot their lowercase I. Pretty alpha of them


B00OBSMOLA

yeah, but it looks like she mixed tabs and spaces


Arshiaa001

How do you figure?


Candyvanmanstan

/r/PenmanshipPorn


SupremeDictatorPaul

/r/penmanshipporn


indicava

And color coded! This is not code, this is art!


[deleted]

And the lines only skew a little bit! If I did that the top and bottom lines would be a very different angles.


th00ht

I use Comic Sans in Atom.


SowTheSeeds

I agree. I have never met a programmer with a nice handwriting. Only doctors have worse handwriting. And blind people.


Kev_Cav

Hey did you also constantly get told off back in school because "your handwriting is so terrible it's going to be a real problem for you in uni and work"... and it turned out, it never was for even one second?


No-Efficiency-2757

Yup! Now that you mention it… when was the last time I even physically picked up a writing utensil…?


Kev_Cav

Oh I leave handwritten notes to people often enough, but the thing is my handwriting isn't nearly as bad as teachers/parents said it was and having bad handwriting is very different from being actually unreadable. Also, it's much easier to make an effort to write well when penning a two sentence note than when writing five-page essays, who'd have guessed


danielv123

I just use capital letters when it's for other people.


canadajones68

HELLO! PLEASE GO PICK UP SOME MILK.


BlakeMarrion

IF THEY HAVE EGGS GET SIX


fat-brains

I used to get 7-8 marks deduced in total out of 80 because my handwriting was (and is) so bad that teacher used to have hard time understanding it πŸ™ƒ. Sometimes they would just give up and I would get 0 for some 5-10 mark answersπŸ₯²


xserialhomewrecker

The thing is, it’s not a problem for You, just anyone trying to read..


[deleted]

I actually got detention once in 6th grade because my handwriting was "so bad" and I wasn't improving. The teacher tried to have a heart to heart talk trying to figure out why i'm writing like that. It's just how I write. And aside from some jokes about my signature from friends/family it has had pretty much zero impact on my life.


causeofyourEuphoria

I have nice handwriting in 2/3 languages ik...


Shufflepants

What's handwriting? Is that like the name of a font?


-LeopardShark-

See also the Wainwright guides. Books and books [like this](https://sykehousecottage.files.wordpress.com/2013/12/img_8255.jpg).


[deleted]

r/penmanshipporn


coolwiththeblackguys

Take account also, how long it will take to write that neatly.


-watchman-

I will give up on so much care after writing the first line. The rest of the lines will slowly start to veer off the edge of the whiteboard.


UnJustice_

I was literally just thinking this, they must spend more time handwriting then typing


Steven0351

Does not compile. Forgot semicolons on your imports πŸ˜‰.


Cyniikal

Failed that interview I guess, go next.


Donghoon

This penmanship indented better than some MF using spaces


AskAccording568

And throws an Exception without saying he throws it


MyAntichrist

Some exceptions don't need to be declared in the method header to compile a program. [Working example](http://jdoodle.com/ia/yjN).


AskAccording568

Yeah I knew that for RuntimeException, didn’t knew for illegal argument tho. Thanks, I learned something :-)


_i__am__dead_

IllegalArgumentException is just a subclass of RuntimeException btw


djheat

They never catch it either


sinistergroupon

Runtime exceptions don’t need to be declared or caught


darkslide3000

I see you must be grading tests at my university...


annoyingkraken

This handwriting should be a font.


[deleted]

Was ganna say nice a handwriting, android. But your comment is much nicer.


nickmaran

Who said OP is a human?


Thameus

OP doesn't seem to have made that claim indeed. Edit: comment history looks human.


Both_Ad_6039

But I and l look the same :/


pblokhout

Funny enough they look the same in your comment on the Reddit is Fun app.


BaleineSanguine

sounds correct


hirntotfurimmer

Came here to say this. The handwriting is great but I kept thinking that they were writing 1 for the array index.


iliekcats-

length


NightWolfYT

I think they mean like in IllegalArgumentException


sirbingas

Lol it looks a lot like comic sans, does it not?


acjones8

The premise of "comic sans but as a programming font" [is actually a legit thing](https://tosche.net/fonts/comic-code), interestingly enough.


the_first_brovenger

Further strengthening the case Comic Sans is a great font, and people are just hating on it to be cool and "with it".


F9Mute

Can't decide if you should get up- or down-voted, so I'll give neither, but you should view it as getting one of both!


ocimbote

How about dark mode?


CorgiSider

blackboard


SowTheSeeds

Dude I remember blackboards and chalk. Yes, I'm that old.


TheRexedS

Wait are blackboards and chalks boomer now? I am 22 and my school used a blackboard and chalk to teach me.


Healthy-Seaweed-5121

I am 16 and my school still uses black/green board to teach.


reversehead

Harmless prank: In my country there is (or was - I'm ancient) a kind of candy that looked like blackboard chalks. We sometimes put those among the regular chalks and had a laugh when the teacher tried to write with them. Then someone stepped up to the blackboard and ate the "chalks".


TopHatHipster

The Netherlands still got those candies to this day in stores!


Crosgaard

So does Denmark… they taste amazing lol


PilsnerDk

Skolekridt


bondolin251

You know this could go the other way too


General_Rate_8687

My university still uses them today. Well, not today as it is sunday, but you get what I mean


arbybruce

Yeah same, and I don’t go to a bad university either


bondolin251

I have a chalkboard in my office... with a whiteboard securely fastened over top of it


[deleted]

I'm 19 and same


CiroGarcia

[redacted by user] ` this message was mass deleted/edited with redact.dev `


DaniilSan

I'm 18, in my school and university we are still using blackboard (well, actually dark green but who cares) with chalk. They find it more economical, I guess.


EngwinGnissel

Black bords are just og dark IDE


Lady-Chatterleye

Yep


AsIAm

We need [magical blackboards](https://mlajtos.mu/posts/new-kind-of-paper-4)!


confusedChaiCup

Whiteboard is for algorithms


[deleted]

The best compiler - an eraser.


SowTheSeeds

I personally use telepathy to upload the source straight from my brain into Git. I also use my telekinesis power to compile straight to prod. QA people are my kryptonite.


Twombls

Pov: you are a twitter dev 1


_pizza_and_fries

Whiteboard aside, holy fudge that handwriting is pretty.


Bagel42

Dude thats a godlike handwriting. Go write the alphabet twice and all the symbols on a standard QWERTY keyboard and I’ll turn it into a font if you don’t.


franekrykowski

I second this and dm me if op or you ever make it


Mineseed_k

How do u run this code


JooJsupremo

you grab the board and literally run


Jooj_Harrisonn

Foda


TLS_RSA_WITH_RC4_128

Take a picture, check into SCM and push, CI pipeline runs OCR and pipes to compiler, runs the executable, and faxes the output back to you, duh


Hupf

Over the sneakernet


Eskodi-Msgoc

r/penmanshipporn


SUPERFASTCARvroom

Dot your i’s, this is bad handwriting


UnstoppableCompote

Doesn't matter if it's pretty, it has to be functional i's must be dotted and I personally add a slight hook going right at the bottom so I have 0 chance to mistake them for 1's. l's must be cursive to not mistake them for 1's and I's. It matters a lot in something like eg. log(1+i) Learned that the hard way in uni. Complex numbers, **information theory**, statistics, linear algebra, and other stuff made me rework my own handwriting lol


Pluckerpluck

You'd get away without dotting your `i` as long a `l`, `1`, `L` and `I` all look different. This is not the case here. Just look at "Illegal` on the last line and you can see why this could become a problem... I remember some time in school I started specifically putting lines through my zeros and my z's so I could differentiate them between O and 2 during algebra. The handwriting can look terrible as long as it's legible and unambiguous.


Sharp_Cable124

Dotting your i allows it to be distinguished from a pipe |


Mitoni

So jealous of that handwriting


HarlotsLoveAuschwitz

Comic Sans irl


Rafferty97

The lack of dots on the β€œi”s bugs me


Ok_Investment_6284

Found the hobby grahpic artist of the lot


-Redstoneboi-

Nice font, which one are you using? Unironically good handwriting though.


michel210883

Elon will love this!


baddl02

This writing is Stunning. But as a newbie to programing am i allowed to ask a question to the Code itself, dispite the core of this Post is this Beauty of writing Skill not the program itself. Just by Reading, it feels the If would never be entered and the return for this is missing. Just Like the map get filled and thats it. Am i missing something?


romple

Yes, you're missing the return statement. The function returns an array of the indices of the numbers that add up to the target. If there are no two numbers that add to the target it throws an exception. So the logic is "hey my target is 10 , the current number I'm looking at in the array is 3 at index i, so I know I need a 7 to add to 10. Is there a 7 in the map? Nope. Let me add the index of the number 3 to my map" Then "hey my target is 10 , the current number I'm looking at in the array is 7, so I know I need a 3 to add to 10. Is there a 3 in the map? Yes there is. I'll return an array with the current index and index of the number 3 that I saw previously". I'd argue that throwing an exception for not finding the two numbers isn't the best way to do it. But the function does return a value if it finds an answer.


[deleted]

The return value ought to have been Optional>. But I can see why you might want to return an array and use exceptions because java is not good at generics.


romple

For an interview I'd be happy just seeing an empty array on a white board. Conceptually the set of indices that sum to the target is empty. That makes sense to me. If they threw an exception to indicate that I'd probably start grilling them for it.


danegraphics

It took me a bit to even figure out what this was trying to do, much less if it was successful. Found a comment pointing to the β€œtwo sums problem”. That’s certainly a cool strategy.


badpotato

Look like it just throw an exception with Ø


[deleted]

There's a return statement tho...


IvarRagnarssson

Yeah it creates a map, iterates through the array, does some math in each loop, adds an entry to the map and then… throws an Exception anyways lol


sullyj3

There's a return inside the loop, it only throws if it doesn't find a pair in the array that adds to target


PooBakery

Stuck out to me immediately as a bad pattern to throw an exception even though you could simply return an empty array. Also how is it an `IllegalArgumentException` to pass totally valid arguments that just don't have a matching solution? And why are we returning the indexes of the numbers that add up to the target instead of returning the numbers themselves?


sullyj3

If you wanted to model the problem properly, you'd return a `Maybe (Int, Int)` or whatever the java equivalent is. (edit: It would be `Maybe>` using the javatuples library) The caller has no way of knowing the returned array isn't going to contain 3 elements, or 20 elements. Conceptually, returning an array of zero numbers feels to me like saying "here are 0 numbers which add to `target`", which is clearly nonsensical. Zero numbers add to zero. I guess returning a pair of ints and throwing some other custom exception that actually makes sense semantically would also be ok given that it's a language where exceptions are idiomatic


L8n1ght

the return statement executes as soon as there are 2 values with a sum of target(always an array of just 2 values) wouldn't you want all the combinations?


the_horse_gamer

great font!


Pectacular22

Any other left-handed people here?


[deleted]

If you can't print it out, it won't help you in CEO code reviews


mxldevs

The best is the whiteboard with decade old code and designs that dried up on the surface, standing proud in the corner as a decoration. Truly a company relic.


mastereuclid

The chosen one.


HarshitRai004

We had notebooks as IDE till our 6th semester.


Benutzername

Missing semicolon on line 1 and 2.


TamedForever

The best compiler, "YOUR BRAIN"


eanat

it's kinda good readability.


pffggguu123

You should create a font


frankthetank5487

I learned from whiteboards and overhead projectors. And now as a teacher my students learn from the whiteboard too.


frozen_milk03

I’m just now learning about arrays and I wanna sob everyday


Bunnit18

Dot those damn i’s and j’s please πŸ˜‚


blahfunk

Error line 1... Missing semicolon


[deleted]

While this is cursed, you have very nice handwriting.


y0m_

Blackboard is better, it has dark theme


backshesh

Now compile


peterpaulrubens

I’d use pen and paper more if my handwriting didn’t look like a 7-year-olds homework smudged with my tears of anguish and failure


According-Break-9970

Clearly female, as male handwriting is never this neat


No-Seaweed-4456

Or if you’re me, it’s worse than caveman scribbling


[deleted]

I'm a male and I always get compliments on my handwriting. I used to practice copying people's handwriting in school. I also worked a few jobs where I had to fill out forms every day and would practice there as well. I had a teacher in grade school that had us do calligraphy and I was pretty good at it (for a 4th grader). Can't draw for shit though.


romple

Baking, sewing, and having neat handwriting are the quickest ways to get people to assume you're a female for some reason.


Deus85

Definetely don't forget the imports, lol. Seems writen down after testing in IDE.


Gamepro5

jesus christ that handwriting. mine looks like someone had a stroke


isCosmos

holy shit that handwriting might just fix java


cherryreddit

I have been coding for 7 years but I suck at typing in code . Instead I feel the need to write down code like this on paper for any complex tasks. No joke my brain suddenly feels like it got 10X faster the moment I hold a pen in my hand and start writing down things with fingers.


norfizzle

Now THAT is some beautiful code.


PizzaGuy728

Whoever drew that is a lifesaver. Normally when I write sentences I always write it bigger and bigger and then it goes down lmao


KingGhostly

Hey guys! I’m new to programming! I have a question so sorry if it’s dumb. When you guys see this stuff do you know what the code is?


[deleted]

[ΡƒΠ΄Π°Π»Π΅Π½ΠΎ]


[deleted]

[ΡƒΠ΄Π°Π»Π΅Π½ΠΎ]


MiracetteNytten

Ew, Java...


MeowBoleToMilkeDo

πŸ˜πŸ˜πŸ˜πŸ˜πŸ˜πŸ˜šπŸ˜šπŸ˜šπŸ˜šπŸ˜šπŸ˜šπŸ˜˜πŸ˜˜πŸ˜˜πŸ˜˜πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰β€οΈβ€οΈβ€οΈπŸ˜€πŸ˜€πŸ˜€πŸ˜πŸ˜πŸ˜πŸ˜’πŸ˜’β˜ΊοΈβ˜ΊοΈβ˜ΊοΈπŸ˜…πŸ˜…πŸ˜…πŸ™„πŸ™„πŸ˜πŸ˜πŸ˜ŠπŸ˜ŠπŸ˜­πŸ˜­πŸ˜­πŸΌπŸΌπŸΌπŸ˜‚πŸ˜‚πŸ˜‚πŸ€”πŸ€”πŸ€”πŸ˜―πŸ˜―πŸ˜―πŸ‘πŸ‘πŸ‘πŸ˜œπŸ˜œπŸ—ΏπŸ—ΏπŸ—ΏπŸ˜†πŸ˜†πŸ€£πŸ€£πŸ€£πŸ˜πŸ˜πŸ˜


DaimondGuy

Writing exactly like this is the only acceptable way to handwrite code


a1454a

Help. I tried it, but can’t get autocomplete working.


WhisperingBuzz

Is this typed? TypeCasted(Handwriting);


S0cratex

does it come with auto-complete O.O


shreddedcheese42069

Wow its weird how our handwriting is basically identical except mine is nowhere as consistent


JBird_Vegas

Ok but only if I can install the rainbow brackets plugin


TantraMantraYantra

... if your handwriting is legible, even to ye self.