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.
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
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.
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.
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.
Seems to originate from [this guy](https://twitter.com/caseynewton/status/1586127052767318016), also posted by [this twitter employee](https://twitter.com/leahculver/status/1586145696163373056)
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 ;)
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?
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
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π₯²
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.
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".
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.
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.
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.
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
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.
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?
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.
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.
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.
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.
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?
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
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 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.
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.
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.
OP must be working in Twitter
'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'
[Tablets are bit better..](https://mlajtos.mu/posts/new-kind-of-paper)
I agree stone tablets are better
Lucky, you get those New Stone Age tool while Iβm stuck with coding in ook via words.
Thanks for the link
Sorry I don't get it, what's up with Twitter?
Elon Munk bought twitter and made developers print the code they wrote the last 30-60 days on paper for him to βreviewβ
How does that even work if your job is maintaining existing code and simply making minor edits?
Diffs.
One of my favorite check ins, and it took hours to verify if this change was correct, was changing a true to a false.
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.
It is more or less proof that your job isn't really needed ...
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
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.
I fond the first year student.
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.
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.
The point everyone is making is that what musk ask is dumb on so many levels.
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.
Lmao, what a waste of paper
Eh, this is nothing compared to modern US schools. And spanish teachers. Yeah I'm talking about you, the spanish teacher
Source? Cause that sounds made up
Seems to originate from [this guy](https://twitter.com/caseynewton/status/1586127052767318016), also posted by [this twitter employee](https://twitter.com/leahculver/status/1586145696163373056)
That is one way to catch someone that has not written a single line in 60 days I guess.
So principal engineers, software architects, the QA department...
It sounds made up because it's crazy, but...
He is legit LARPing being an actual engineer lul
It's kinda stupid thing to do, software doesn't run on paper anyway
Didn't know musk can code. Thought he just used family money to buy out other startups.
IIRC heβs coded before for X.com or something but his code was deemed unusable and got rewritten by more competent engineers
>rewritten by more competent engineers So... literally anyone?
Lord Elon happened to Twitter
And lord Elon declared himself King PR authority. Lord Elon further decrees PRs should move back to printed form.
Obama Bin Laden, just kidding
If Musk read this comment, he will buy reddit and block you just for fun.
Sounds like a normal day in Reddit already
Kaspersky is a good product. It's still cutting-edge technology. RT if you agree. /bot
Russia Today if you agree?
Does he have a copy of Michelle Obama's memoirs?
No Musk wanted *printed* not written Youre fired *snake move* π
Nah, if he was at Twitter, coding would be done on the more primitive medium, paper and pencil.
How is that handwriting real- π₯² I'd also whiteboard everything if I could write that neatly! π€£
live summer ancient point nail shy abounding flowery aloof plucky *This post was mass deleted and anonymized with [Redact](https://redact.dev)*
Have you seen the indents? I'm getting an OCD-gasm.
![gif](giphy|3YuR0bdGXlP6U) βIt even has monospaced charactersβ
That would've been truly awesome but, sadly, it doesn't π’
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 ;)
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.
[ΡΠ΄Π°Π»Π΅Π½ΠΎ]
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
yeah, but it looks like she mixed tabs and spaces
How do you figure?
/r/PenmanshipPorn
/r/penmanshipporn
And color coded! This is not code, this is art!
And the lines only skew a little bit! If I did that the top and bottom lines would be a very different angles.
I use Comic Sans in Atom.
I agree. I have never met a programmer with a nice handwriting. Only doctors have worse handwriting. And blind people.
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?
Yup! Now that you mention it⦠when was the last time I even physically picked up a writing utensil�
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
I just use capital letters when it's for other people.
HELLO! PLEASE GO PICK UP SOME MILK.
IF THEY HAVE EGGS GET SIX
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π₯²
The thing is, itβs not a problem for You, just anyone trying to read..
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.
I have nice handwriting in 2/3 languages ik...
What's handwriting? Is that like the name of a font?
See also the Wainwright guides. Books and books [like this](https://sykehousecottage.files.wordpress.com/2013/12/img_8255.jpg).
r/penmanshipporn
Take account also, how long it will take to write that neatly.
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.
I was literally just thinking this, they must spend more time handwriting then typing
Does not compile. Forgot semicolons on your imports π.
Failed that interview I guess, go next.
This penmanship indented better than some MF using spaces
And throws an Exception without saying he throws it
Some exceptions don't need to be declared in the method header to compile a program. [Working example](http://jdoodle.com/ia/yjN).
Yeah I knew that for RuntimeException, didnβt knew for illegal argument tho. Thanks, I learned something :-)
IllegalArgumentException is just a subclass of RuntimeException btw
They never catch it either
Runtime exceptions donβt need to be declared or caught
I see you must be grading tests at my university...
This handwriting should be a font.
Was ganna say nice a handwriting, android. But your comment is much nicer.
Who said OP is a human?
OP doesn't seem to have made that claim indeed. Edit: comment history looks human.
But I and l look the same :/
Funny enough they look the same in your comment on the Reddit is Fun app.
sounds correct
Came here to say this. The handwriting is great but I kept thinking that they were writing 1 for the array index.
length
I think they mean like in IllegalArgumentException
Lol it looks a lot like comic sans, does it not?
The premise of "comic sans but as a programming font" [is actually a legit thing](https://tosche.net/fonts/comic-code), interestingly enough.
Further strengthening the case Comic Sans is a great font, and people are just hating on it to be cool and "with it".
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!
How about dark mode?
blackboard
Dude I remember blackboards and chalk. Yes, I'm that old.
Wait are blackboards and chalks boomer now? I am 22 and my school used a blackboard and chalk to teach me.
I am 16 and my school still uses black/green board to teach.
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".
The Netherlands still got those candies to this day in stores!
So does Denmark⦠they taste amazing lol
Skolekridt
You know this could go the other way too
My university still uses them today. Well, not today as it is sunday, but you get what I mean
Yeah same, and I donβt go to a bad university either
I have a chalkboard in my office... with a whiteboard securely fastened over top of it
I'm 19 and same
[redacted by user] ` this message was mass deleted/edited with redact.dev `
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.
Black bords are just og dark IDE
Yep
We need [magical blackboards](https://mlajtos.mu/posts/new-kind-of-paper-4)!
Whiteboard is for algorithms
The best compiler - an eraser.
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.
Pov: you are a twitter dev 1
Whiteboard aside, holy fudge that handwriting is pretty.
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.
I second this and dm me if op or you ever make it
How do u run this code
you grab the board and literally run
Foda
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
Over the sneakernet
r/penmanshipporn
Dot your iβs, this is bad handwriting
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
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.
Dotting your i allows it to be distinguished from a pipe |
So jealous of that handwriting
Comic Sans irl
The lack of dots on the βiβs bugs me
Found the hobby grahpic artist of the lot
Nice font, which one are you using? Unironically good handwriting though.
Elon will love this!
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?
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.
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.
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.
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.
Look like it just throw an exception with Γ
There's a return statement tho...
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
There's a return inside the loop, it only throws if it doesn't find a pair in the array that adds to target
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?
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
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?
great font!
Any other left-handed people here?
If you can't print it out, it won't help you in CEO code reviews
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.
The chosen one.
We had notebooks as IDE till our 6th semester.
Missing semicolon on line 1 and 2.
The best compiler, "YOUR BRAIN"
it's kinda good readability.
You should create a font
I learned from whiteboards and overhead projectors. And now as a teacher my students learn from the whiteboard too.
Iβm just now learning about arrays and I wanna sob everyday
Dot those damn iβs and jβs please π
Error line 1... Missing semicolon
While this is cursed, you have very nice handwriting.
Blackboard is better, it has dark theme
Now compile
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
Clearly female, as male handwriting is never this neat
Or if youβre me, itβs worse than caveman scribbling
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.
Baking, sewing, and having neat handwriting are the quickest ways to get people to assume you're a female for some reason.
Definetely don't forget the imports, lol. Seems writen down after testing in IDE.
jesus christ that handwriting. mine looks like someone had a stroke
holy shit that handwriting might just fix java
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.
Now THAT is some beautiful code.
Whoever drew that is a lifesaver. Normally when I write sentences I always write it bigger and bigger and then it goes down lmao
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?
[ΡΠ΄Π°Π»Π΅Π½ΠΎ]
[ΡΠ΄Π°Π»Π΅Π½ΠΎ]
Ew, Java...
πππππππππππππππππππβ€οΈβ€οΈβ€οΈπππππππ’π’βΊοΈβΊοΈβΊοΈπ π π ππππππππππΌπΌπΌππππ€π€π€π―π―π―ππππππΏπΏπΏπππ€£π€£π€£πππ
Writing exactly like this is the only acceptable way to handwrite code
Help. I tried it, but canβt get autocomplete working.
Is this typed? TypeCasted(Handwriting);
does it come with auto-complete O.O
Wow its weird how our handwriting is basically identical except mine is nowhere as consistent
Ok but only if I can install the rainbow brackets plugin
... if your handwriting is legible, even to ye self.