[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

hardware versus software

Posted on 2016-09-16
14
Medium Priority
?
81 Views
Last Modified: 2016-10-09
I had this question after viewing basic hardware to learn oop advanced design patterns.


This is a related question where I want to know if software requires hardware knowledge to learn.

Or should I spend more time starting with software

add more zones
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +4
14 Comments
 
LVL 28

Accepted Solution

by:
dpearson earned 336 total points (awarded by participants)
ID: 41802449
There's no need to understand how hardware works in order to write software.

It's like driving.  You can learn how an internal combustion engine works before you learn to drive, but you can also just learn how the pedals and the steering wheel works and go no deeper than that.

Software is the same way.  You can learn how a computer works or just treat it like a black box.

Doug
0
 
LVL 98

Assisted Solution

by:John Hurst
John Hurst earned 336 total points (awarded by participants)
ID: 41802476
I largely agree with that.

Now an Intel i7 6600 CPU is matched with an Intel 520 Graphics GPU and an Intel 750 1 TB PCIe SSD drive.

You would absolutely have to know the hardware for the above to write software for it.

So as always, it depends.

Driver and firmware software - you need to know the hardware.
Database and Office software - probably not.
0
 
LVL 80

Assisted Solution

by:arnold
arnold earned 332 total points (awarded by participants)
ID: 41802667
Adding to the prior two great comments, is the only time you need to know hardware is when you specify the minimum hardware requirement for your application..
I.e. OS, Processor, Memory, storage, network to make your application work at certain performance level.

Other than that, your programing/development will interface with the OS and the OS will handle the interaction with the HW.
Depending on what your software is supposed to do, you would need to use checks within the install package to validate your minimum requirements.  Or build-in validation within the application to make sure what resources the application needs it has.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 30

Assisted Solution

by:serialband
serialband earned 332 total points (awarded by participants)
ID: 41803110
In addition to drivers, as mentioned above, if you're programming for IoT devices, you probably do need to know your hardware to get your code to fit and work efficiently.  As in the old days, you did need to know hardware to be able to optimize code to run faster or more efficiently on the system.

For other types of software, today's compilers can recognize and optimize code better than the vast majority of people on the much more complex hardware.  You really don't need to learn hardware to do that anymore.  Optimizing now code is more about optimizing your algorithms to fit into Memory and storage spaces and finding the code that does the majority of the work and trimming that down to run in fewer cycles.
0
 
LVL 49

Assisted Solution

by:dbrunton
dbrunton earned 332 total points (awarded by participants)
ID: 41803467
I'm probably just adding to what the others have said.

When you start programming you (generally) don't need to know about your hardware.  You'll be programming for a basic standard computer system.

If you go further (a lot further), then you may need to know about the hardware you are going to write for, or the hardware your application expects to be there.  Rough examples:  memory management, how much memory available for use, graphics capability, free hard disk space, networking capability, cpu processors available.
0
 
LVL 54

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 332 total points (awarded by participants)
ID: 41805611
> the only time you need to know hardware is when you specify the minimum hardware requirement for your application.

or you had minimum hardware

https://github.com/chrislgarry/Apollo-11
1
 
LVL 80

Expert Comment

by:arnold
ID: 41805703
Scott, It varies based on the interpretation of the question. The person seems to be gearing up for software writing so I am not sure other than a slower performance of the OS/compiler/software, how having "minimal" hardware will prevent the learning of software methodologies/consideration.  IMHO, it is quite contrary, a user who learns to code based on tight resources, is "likely to learn more efficient techniques, resource management" then one that starts with "unlimited" resources, memory, CPU, GPU, etc.

I.e. person has a system with top of the Line Processor, 128Gb of ram, 4G GDDR GPU, etc. So they code with ...
versus a person having to develop the same software to operate at a minimum hardware requirement of a dual core Core duo 1.9GHz, 2GB of RAM, Windows 7 and newer........ ...
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 41805843
My interpretation is  this is a web development question based on topics of php and java.

If you are writing software using those tools, you do need to understand what your app is doing and expected usage or load.  That will dictate the amount of memory, processor and disk space you require.  The other missing piece is hosting service and capabilities.
0
 
LVL 80

Expert Comment

by:arnold
ID: 41805848
Scott, I think we have the same conclusion, but I do not understand your reference in the prior comment "or you had minimum hardware"
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 41805853
> "or you had minimum hardware"

Tongue and cheek referencing there was very minimal hardware on Apollo 11 guidance computer https://en.wikipedia.org/wiki/Apollo_Guidance_Computer
0
 
LVL 28

Expert Comment

by:dpearson
ID: 41805868
It's probably for the OP to clarify what they mean by "hardware knowledge" but for me - RAM and CPU usage is not "hardware knowledge".  That's still very much at the software level of understanding, treating the hardware as a black box without needing to really understand it.

To go back to my analogy of a car - you can still understand what speed and mileage you get with your car, without understanding how the car actually functions - how gas is turned into forward propulsion.

For me, hardware knowledge means actually understanding how hardware works - which means how a CPU functions, which operations are executed sequentially and which in parallel on a modern processor - what the difference between an L1 cache and an L2 cache is and what the memory model is at the processor level and how it effects multicore processing.  That sort of thing.

To me, that knowledge is potentially beneficial, but entirely optional.

You can be a completely successful software developer without ever delving into that level of understanding.

However, if "hardware knowledge" is taken to mean understanding how much RAM your process is consuming, then sure, that level is definitely something you need to know :)

Doug
0
 
LVL 80

Expert Comment

by:arnold
ID: 41805881
Scott, could not figure out where you were going with the prior Apollo link. Side track .......


Doug, One who needs only to get from point A to point B need only the knowledge to open door, enter car, make car go.
One need not know whether engine is steam, gas, diesel, electrical, manual (ped-propelled) etc. but the distance it could travel until another action needs to be taken.

But I get the point, each approached this question based on their own interpretation of the Asker.
0
 
LVL 27

Expert Comment

by:tliotta
ID: 41805944
It depends...

There wasn't much choice when I started. First training was with sorters, then reproducers, interpreters, etc., including hard-wiring logic boards for them. Next was machine language on an IBM 1401 (w/8K main memory plus 4K expansion box; and yes, those are "K" values). Then on to Autocoder (a kind of assembler), and into IOCS/DIOCS macros because the system had a 2.5MB external disk enclosure. (Watched IBM upgrade the drive to 5MB by essentially removing a stop-screw to allow the disk arm to move across the full surface area.)

From there, training went to COBOL, Fortran, RPG, PL/1, systems analysis, and more... in a two year program a number of decades ago.  And I've gone on to more languages/technologies than I can recall nowadays. A year or so after the training, I went back and took a year of basic electronics.

Possibly all of it could have been done with no hardware familiarity at all. I certainly have known many software developers who really know little beyond basic reading of hardware specs. However it seems to me there's a different "feel" to them.

As training went level to level, building on the last, things became more and more abstract. Yet I could use previous learned pieces to make almost immediate sense of things being presented. E.g., memory addresses were seen clearly as physical locations on a logic board. Incrementing a register, using result as an offset to get to a new address, viewing the new address as an element in an array, immediately grasping pointers and pointer manipulation, all of it just followed naturally from seeing how changing wires on a board affected results.

Is hardware knowledge needed? For the vast majority, no. Can it provide a foundation that can make everything in learning software development easier for years to come? Almost certainly yes.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question