instruction
stringlengths 71
2.01k
| output
stringlengths 21
1.57k
|
---|---|
Java isn’t that hard of a language. People hate it for other reasons. One is Oracle who owns Java. Another the overuse of Java in the past. There are more reasons which I cannot remember.
|
Java forces the use of oop programming which leads to bad program design when you need to cross the heirarchy tree for communication.
Oop is good when used in moderation and where appropriate, java expects its religious use.
|
from a ridiculously silent interpreter to a ridiculously strict compiler
what could go wrong
|
Probably less than what was going wrong with the silent interpreter.
|
Everybody always asks w h e r e p y t h o n, but nobody ever asks h o w p y t h o n.
|
Sad p y t h o n noises
|
I hate it mainly because login is required to download JDK and I can never remember what fucking password I used to comply with Oracle's weird policy
|
Isn't there an OpenJDK or something you can use?
|
Falling off a bike is easy but not good. Means only cause it's easy it does not mean it's good.
|
Falling off a bike is also how you eventually learn not to fall off a bike.
|
Fetlang is licensed under the BSDM (BSD, modified) license
Make Sean moan
Worship Carrie's feet
Bind Amy to Saint Andrew's Cross
Have Amy hogtie Sean
If Amy is Carrie's bitch
Make Slave scream Sean's name
Make Sean moan
|
* Gendered variables
* Access previously mentioned variables using pronouns
I mean that's kinda smart
|
In fact, this is how the brain works. When you stop analyzing the problem logically during the bathroom visit, your brain relaxes, and it kicks in the creative mode.
|
I love this fucking process.
I quit my office job and solely work from home now. Midday showers are awesome cause I break from cramming new math into my head and get to process what I've been going over. I've had amazing fucking progress fuguring out problems that otherwise would take me days.
|
Lol, i need music when I know what to code and just need to *do* it.
I need silence when I'm trying to figure out a solution.
Different fuels for different engines...
|
True. Sometimes there's this ecstatic state where commands just flow and you write down entire functions and complex algorithms all in one go, typing and typing
And then you just stare at the screen for no particular reason and need to go watch a youtube video after writing one line beacuse that was too hard already
|
While specifically on the toiler
While sleeping and dreaming
While on 2 weeks vacation, and you forget it the day you return
|
Lies. You just tell your wife you need to call your mother then hop on the vpn from your phone since you were banned bringing your laptop. Small note or fix in a testing branch and back downstairs to your long island ice tea.
|
She's telling you this
while (explanation == gibberish) {
explanation = try_to_understand(gibberish);
cry_inside();
}
|
You can simplify it to `while (true)`.
|
Bonus lightbulbs if you're comfy and you need to get up early tomorrow and if you get up to go fix it now it's probably going to take you another hour to fall back asleep.
|
Then wake up like "...What was that solution to the bug again?"
|
Nouns and verbs. An object is a noun. A method is a verb. A class describes those things. Variables are adjectives.
Then for inheritance I use animals. Bear : mammal : animal.
What traits all animals have goes on animal with the things all animals can do. Mammal-specific things go on mammal and so forth. Every bear is an animal but not every animal is a bear and all that.
|
There's a certain irony here, I got into computer programming because i was terrible at English and now you're using all these fancy English word things to describe programming.
|
There's a certain irony here, I got into computer programming because i was terrible at English and now you're using all these fancy English word things to describe programming.
|
How do you handle syntax and punctuation? Or spelling?
|
I'm a physicist and oop never clicked for me until one day I was working with graphs/plots and realized the plot was made up of objects (say axes) and those objects have properties that I want to interact with. Maybe I'm happy to use the default values, but sometimes I want a green axis, or an axis with no ticks.
And then maybe I want that plot to be portable, so I can use it in presentations or reports and I get a consistent look and feel.
Ever since then classes clicked for me. Which makes c# infinitely easier.
|
For me OOP never clicked until I started to learn straight C and function pointers. then just sort of clicked since I understand the under the hood mechanics of how OO worked at a basic level.
It all just structs of collected data types and some fancy Function pointer black magic
|
I tried teaching my boyfriend programming too! Man the things our poor partners put up with
|
I tried to help my gf with her R assignment and it ended with both of us lying facedown on the floor.
|
For me OOP never clicked until I started to learn straight C and function pointers. then just sort of clicked since I understand the under the hood mechanics of how OO worked at a basic level.
It all just structs of collected data types and some fancy Function pointer black magic
|
Ironic considering C doesn't really do OO.
|
Yeah, so I am a pretty bad teacher because of this too.
Everyone's solution is to just copy it n times. So when that happens, I like to make them have to change something. Now they change it n times. They'll be annoyed. They'll want something simpler. That's when loops come in a bit more naturally.
That said, making them then abstract that so they can use those values instead of inserting a switch statement or something else, is yet another challenge. People bad at maths I find struggle with this further.
|
that is actually fucking genius
|
This is why I always write these ideas down.
The problem is I usually forget by the time I've scrambled looking for a pen and pad.
So now I keep one by the bed.
The problem is now the ideas don't come until the room is cluttered, leading me to scramble to find the pen and pad...
|
just get an Audio Recorder app
|
Because we know what looks and feels right, without being able to describe how or why it's right.
|
Too bad that programming requires strict adherence to spelling, syntax and punctuation, as opposed to natural language...
|
You can be bad at English and still have near perfect spelling, syntax, and punctuation. For example, I don't know what an adverb is. I've been told dozens of times, I just always forget because I don't need to know what it is, but I can read and write English fluently.
|
That is my point. You can english badly if want. Code much stricter. No msitaks in coed...
|
We fired a guy recently who was using emojis as variable names.
So you can add emojicase to your list.
|
Reading a code with big animated emojis is my nightmare.
|
PascalCase for classes, SCREAMING\_SNAKE\_CASE for final(usually static) variables, camelCase for everything else.
|
Looks like Java convention to me
|
`console.log(chicken() + " who came first?");`
Remember your white space every one
|
Does it matter here ? :P (but yeah you're right, it happens to me all the time)
|
try {
DoStuff();
}
catch (Exception ) {
.(.Message);
}
|
Actually I'm OK with that :D
|
Oh, I thought that C developers are already dead.
But your point makes more sense.
|
The pointers are making even more sense. Unless you forget to check for NULL.
|
I legitemally thought the joke was about drowning in order to talk with dead people
|
Yes, me too! Then I thought it was because the creator of C died by drowning or something.
|
Some methods could be called by a framework or library that is not visible in your code base.
|
Or it hides a serious bug where the compiled function is placed after a buffer and some other function writes past the end of that buffer...
|
Or it hides a serious bug where the compiled function is placed after a buffer and some other function writes past the end of that buffer...
|
Maybe called by a reflection api.
|
To me, a true “clever coder” will make you say “wow that’s simple!”, as opposed to “wow that’s complex!”
|
Agreed. Elegance, not complexity.
|
I once had a group project where, at 2AM on the day of the deadline, a group member screwed up MY code. At 2AM. We are not friends.
|
Please tell me you had a working copy ready to be restored.
|
I know you're joking, but i code like this!
I code JS as a hobby, since i don't have time to make detailed plans, I'll make the base structure, i.e the minimum amount of functions needed for every feature to work, then everything else is just inserted in there somewhere.
When debugging or reviewing code later, i just follow the base structure to find out what a function does.
|
That's still a hell of a lot more structure than I've encountered in some projects, mate. Sounds like you're planning ahead just fine! :)
|
No, you complete 4 years of CS to learn how to regurgitate algorithms for technical interviews to get you a job .... in which you then copy code from stack overflow.
|
"Sooo, how would you solve this problem that every company shows everytime in interviews"
|
I think they know as little, but had the same problem, and asked, and then this repeats til someone who asked the one who made the library/language
|
Or someone has an epiphany and fixes the problem themselves.
Basically we're crowd sourcing problem solving.
|
"Sooo, how would you solve this problem that every company shows everytime in interviews"
|
Ah yes, I would add a caching layer
|
This also isn't true almost ever outside of on certain embedded hardware and really old hardware. Executable code is in read only memory and attempting to write to it will on most machines cause segfaults.
|
Even if you're not overwriting executable code, writing over memory that might be storing other runtime data can still cause crashes, and if other functions are allocating and not using memory, they can be creating these junk buffers.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.