[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 83
  • Last Modified:

hardware versus software

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
rgb192
Asked:
rgb192
  • 4
  • 3
  • 2
  • +4
6 Solutions
 
dpearsonCommented:
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
 
John HurstBusiness Consultant (Owner)Commented:
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
 
arnoldCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
serialbandCommented:
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
 
dbruntonCommented:
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
 
Scott Fell, EE MVEDeveloperCommented:
> 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
 
arnoldCommented:
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
 
Scott Fell, EE MVEDeveloperCommented:
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
 
arnoldCommented:
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
 
Scott Fell, EE MVEDeveloperCommented:
> "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
 
dpearsonCommented:
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
 
arnoldCommented:
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
 
tliottaCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now