The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
The Maunder does. He may hit the tab key, but it is stored as spaces not a tab.
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004
Pshaw. One character per second? That's really slow for typing speed.
Let's use my 80 year-old mother as a test subject here. She's a classically-trained touch typist, with a measured typing speed at one time of around 90 words per minute. Based on A Note on Calculating Text Entry Speed[^], that corresponds to (90 * 5) / 60 = 7.5 characters per second. 1.2GB of source code should therefore require only 5.45 years.
Note that this result is based on Mom's typing speed measured on a mechanical typewriter keyboard. I don't have data, but it's reasonable to assume she would be faster on a modern electronic keyboard. She bought a refurbished IBM Selectric[^] typewriter when I was in high school, and I remember her claiming her typing speed increased substantially. Let's take a W.A.G. here and assume that an electronic keyboard gives you a speed edge of 25%, which then reduces the time for 1.2GB of code to 4.36 years.
All of that is mere mechanics, however. Source code editors provide all kinds of productivity aids: text templates and snippets, predictive typing (IntelliSense), and so on. After I'd been using C# for a while, I found I'd modified my code editing habits to really take advantage of Visual Studio's predictive typing features. I wouldn't be surprised to be able to generate 1.2GB of source code in less than a year.
That is hilarious and an interesting way to look at code...that you type it and don't even think about what you are typing.
I set the 1 character/second rate (60 chars/minute) to account for the dev actually thinking about the code s/he is typing. But, you are correct, we know that devs don't actually think. They just type.
That is hilarious and an interesting way to look at code...that you type it and don't even think about what you are typing
Most programmers understand the flow experience[^], where the code you're writing seems to come out of your fingers without a lot of thought. With the productivity aids I mentioned, and enabling the flow as much as possible, it's intuitive that you would get peak rates of source code generation some significant multiple of your non-flow rate.
Irrelevant side note: I get migraine headaches. One of my precursor symptoms is emotional swings, like a rollercoaster version of manic-depression. I've written some really interesting, large chunks of code in a pre-migraine manic state. Some times it actually worked .
we know that devs don't actually think. They just type
10 GET "https://www.codeproject.com/Questions/ask.aspx","programming task"20GOSUB1000'copy30GOSUB2000'paste40GOTO10
Along with the images and static stuff, is auto complete and higher level language compiling. Stub classes might be as quick as 2 or 3 key presses making 20+ characters.
then add in simply press // + tab to generate another 20+ characters of method documentation stub.
Use entity framework, and simply generate mvc web page with read/write adds some 300+ characters.
But in contrast, if write in TypeScript and Less, might take longer to hit 1mb compared to writing it out in pure JS. even jquery shortens number of characters needed to accomplish the same thing in pure js.
HOw long would it take one programmer to write that much code?
It depends on third party products and how many spaguetti code from the internet he had copied
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
when it is time to upgrade your personal laptop (machine)?
I've started working on some unity stuff and my laptop isn't quite fast enough. I have 16GB RAM, so I'm thinking the performance is most likely related to the graphics card. That aside the only other thing not working is the touch-pad (external mouse fixes that nicely).
Is a change justified? Yes, there is the additional expense, but file / app migration is probably the bigger PITA.
Do you treat your laptop like a (lease) car and get a new model every 3 years, or do you keep it until end of life?
It's sort of like when I feel the urge to burst out in song...
Because I'm no Michael Jackson, I try to keep it under control.
But once in a while I get drunk, and my brain decides by itself: NOW is a good time to give EVERYBODY your best performance - no matter if they want it or not...
And then I wake up next to a new computer...
(Not really, but SOMETHING like it...)
Anything that is unrelated to elephants is irrelephant Anonymous - The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 - Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
The screen on my HP fell off so it was time for a new one. Apparently they are known to do that, first a hinge lost its enthusiasm, and the screen went floppy, then the other joined it, followed by a monumental failure when it came away completely.
Mind you it had a Harmon-Kardon sound sound system on it.
I buy a new computer when I find that the old one doesn't possess the features that I need. The last time I replaced it (2 years ago) was when I discovered that I needed AVX 2.0 for some things; my previous computer was about 4-5 years old at the time. I expect the next replacement will come when I discover a need for AVX-512, or some such.
I find that practically any professional-level computer (i7 + 16GB of memory + SSD) is good enough for the kind of development that I do. YMMV
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
A few years ago I dug up some old equipment (a MIDI interface) from the basement to plug into my tower style PC. This thing had a DB-9 plug, the old "COM port" RS-232. I searched the computer all over, from every angle, but I simply couldn't find the COM port! I had replaced the computer more than two years earlier, and had never realized that it didn't have a COM port.
(Later, when I had the box opened, I noticed a mainboard header labeled COM1, so in fact the PC did have a COM port, lacking only the socket. The main point of the story is that it took me more than two years to discover that RS-232 is no longer included in the standard PC interfaces.)
Actually, I did neither use the COM port (it wasn't until months later I discoverd it), and I didn't get a USB-to-COM-adapter - I did it in software.
20+ years ago, when I bought this MIDI-adapter, I also bought a fairly good, for the time, keyboard. At that time, software MIDI players had terrible sound, all digitally generated, while this keyboard used actually sampled sound of acoustic instruments. I used it with a visually handicapped daughter who could not read the sheet music, so she had to learn her violin part in the orchestra by ear. (One side benefit was that when practicing, she could turn down her own part and play with the other instruments.)
Fifteen years later, I picked up the old music editor so that I could practice my barbershop quartet songs with the three other parts "singing" along with me. When interfacing to the old keyboard failed, I switched to a modern MIDI player. With today's processing capacity, they generate far more pleasant sounds, even though it still is completely synthesized, not sampled.
The old keyboard is still nice for e.g. giving the opening chord when singing without any PC/instrument support, but I don't use its MIDI interface at all nowadays - even though I did buy myself another MIDI-interface, going directly from USB to MIDI.
I purchased my desktop in 1996. Yes, 1996! Still got the same PC and it runs great! The nice thing about desktops is they are so modular -- it's easy to replace failed parts.
CD/DVD-burners tend to go fastest (yes, I still keep one in the PC).
Replace the primary HD every 2 to 3 years.
Motherboard, CPU, & RAM get replaced every 4 to 6 years (had 1 MB failure, otherwise when the old one doesn't run the software as well).
Hate onboard video, used to use lower end graphics cards, but bought a good one last year for gaming, and it improved overall system performance. I didn't expect that.
The case has been replaced a few times, and the power supply a few more than that.
Other than replacing a few parts periodically, I have the same PC!
To answer the OP's question -- I have a laptop and I'll replace it when it dies. It's my secondary unit and doesn't get used as much.
I replace parts on my desktop when I have to (due to failure) or when the system is not meeting my needs. So I replace the MB/CPU/RAM every 4 to 6 years. That's my answer on when to replace the laptop -- if it's not meeting your needs, replace it.
Don't buy a low end laptop. I buy last year's model. It's typically good enough for last 4 to 6 years, and the price drop from when it was current is significant.
When it looks like the current laptop will not cut it usually because it is broken. My previous loptop had a screw holding the screen together break (metal screw in plastic), and it was only the first of these screws. I tried initially using aluminum tape but it failed. did it a few more times, and finally I drilled through the laptop screen and screwed it together but still not a great. Finally bit the bullet. Have occasionally looked for a replacement screen but almost as much as I paid for the laptop.