You can lead a developer to CodeProject, but you can't make them think.
The Theory of Gravity was invented for the sole purpose of distracting you from investigating the scientific fact that the Earth sucks.
not sure where to post this, or even if CP is the right place, but hope it's OK here...
so I've burnt a CD with a single HTML file in the root folder called home.html
When inserted in the drive (D: ) a popup windows appears with options to
a) Install or run programs from your media
b) Open folder to view files
if I click b) I can then double-click home.html adn it will open fine in my default browser. But if I click on a's option to "Run home.html" i just get an error message saying
"D:\ is not a valid WIn32 application"
As this CD is one I want to diostribute to various people I can't ask them to make any changes to their computers - is there some other solution to the way I burn the CD - ie the files I burn to it - that can allow them to open the .htrml files whichever way they choose?
In programming languages like Java and C# where you can only inherit from one class why should we inherit from one class? From my point would produce brittle inflexible code. It be better for safety to ban inheritance of implementation and just provide inheritance of interface. In these language there is nothing that stops you from providing one interface and making the common implementation depend on helper class
Don't you see any value on the fact that you can implement common logic for several classes to a single class and inherit from that?
Consider the traditional example, Animal. Animal is the base class providing lots of functionality such as name, age, parents, walk(), stop(), sleep() and so on. Now Cat, Dog, and Horse are derived classes with a few minor tweaks specific to that kind of animal.
By using inheritance you have all the functionality on each of the animals and you don't need to know where it came from. If you'd have a helper class you'd need to know what to call and so on.
To go beyond that, using inheritance you have the possibility to override, implement required functionality, hide existing logic etc.
That does not disprove my point the base class Animal under single inheritance would be one or more helper classes and provide an Animal interface. This proves more controlled code reuse. I could point out that there might be a performance increase in inheritance of implementation but is a moot point. Another example is the class bird where you have a method fly this would be incorrect for flightless bird like ostriches, emus, kiwis and penguins. With single inheritance there is no way to disable fly for flightless birds if fly is part on the base class.
Is this a .Net only feature or is it also available in Java? Also, I agree that inheritance is powerful but with power there are also many opportunities to abuse this power. If the goal of single inheritance is to prevent abuse then providing single inheritance provide an avenue for abuse and therefore by providing avenues of inheritance only through interfaces and have the class designer build the class though composition rather then inheritance.
I'm new here, and I've got big plans. These plans include building a massive organization, building my own spacecraft, and creating a few games, writing a few novels, and traveling a lot.
So, why am I here? Simple, I'm on a coding journey. I'm learning the simple stuff first, like web development, HTML, CSS3, PHP, Java, etc. Then I'm moving onto bigger programs.
However, considering that I want to build my own spacecraft, I'd like to code my own language to build my own OS and what not with. Having my own software and knowing the ins and outs of it just sounds like the right thing.
So, my question is, where do I start? What would you guys recommend? Am I heading in the right direction by starting with something simple like web development?
Also, I would like to know if you guys can point me into some decent resources that would help me get started with my own language. I've seen people create languages based of another language, I don't want to do that. I'm talking about from scratch kind of deal. Like, legit from scratch. So, any resources that you guys can give me would be much appreciated. I figured that group of people who code on a regular basis would at least be able to point me in the right direction.
And yeah, I know...I don't know how to dream small. I go for big...really big.
I'm being dead serious about this. Looks like I'm going to have to start by studying compilers and other languages. How they were made and what makes them work. Should have been a no brainer, but if I'm going to build my own spacecraft, I want to make sure that I know the ins and outs of it.
If building a spacecraft is the end goal then a piece of advice in to learn C or C++ first many hardware interface has some type of plugin to C or C++.
So, I should learn about C and C++ then? I'm looking at building a lot of my hardware for this, except for maybe the computer systems. I suppose it makes sense to look into C and C++. After all, most hardware is designed to fit popular Operating Systems like Windows and Linux.
That would be a good idea almost all hardware have C or C++ interfaces and no one programs in assembly any more. Warning!!! C can easy to abuse and hard to reason out as it has none of the features to help ensure type safe and separate error checking from business logic. If you still want to create a language that simplifies your interface to your hardware is would still need to be build underneath C or C++
Hi, I worked as Web developer (ASP.NET,VB.NET) for 6 months and later my position was changed as Windows developer(WPF,C#,MVVM) to till now. Next, my company is forcing me to move on android application development(Purely java and android studio). I started my career just a year back. Is it good for me to switching technologies in short span of time?
I have created a windows gadget that plays a radio stream I am involved in. I have got the gadget image and stream working however would like the main image on the desktop to change at specific times of the day when a new show starts. example: Monday - friday 6am to 10am it shows image 1, and 10am to 2pm it shows image 2 etc... so basically it will change the image for each show 7 days a week. I just cannot figure out how this can be achieved, so any advice would be welcomed or if you can add script for me it would be appreciated.
Script writing is not my forte.
as there are several files and code you can download the gadget file on this link. (right click and save it to desktop first, dont click on gadget link directly as will be gobblygook)
i tried various options with javasctipt but nothing wok, so hope you can figure it out. As you can see from the test2 the time script does show the image but it does not change when the next hour comes.
The Software life-cycle is an ever changing process. Some parts are a must (Absolute), and some are not. And during the evolution process some parts are added and some are dropped.
How can we decide that a once Absolute task is no longer needed and must be Dissolved?
Every task is there for a reason (since somebody put it there).
Can we drop a task just because we don't see it's importance?
And when does an absolute task become a wall in the way of evolution?
Last Visit: 31-Dec-99 18:00 Last Update: 30-Jul-15 0:12