Jump to content

Open source and compiled code?

Go to solution Solved by Misanthrope,
13 minutes ago, Carlos1010 said:

So this is the point of having a opensource? Using a third party app to adjust the page whenever you refresh it? You can do this with normal compiled code too. What is the point of a webpage/application being open source then? 

All applications are basically open source code while you're developing them yes. However the point is that after you release it to the public if you do it open source anybody can use your code. If you do closed source then nobody can.

 

Some companies prefer to maintain control of their code and don't allow anybody to modify it. This requires a lot of resources to have people hunting down bugs and implementing changes.

 

If on the other hand your code is open source anybody can suggest and implement changes and bug fixes to your code. Also you can borrow code from someone else (and by the same token, others can use your code) meaning that you'd do a lot less work yourself.

 

Let's say you want to do a website open source vs closed source.

 

If you code everything yourself you have to start with your HTML and CSS. Then you have to add prefixes so your website looks the same on all websites. Also you have to code media screens so it looks good or adequate on different screen sizes (desktop vs tablet vs mobile phone for example). Then you probably want some Javascript to add a little bit of flare to your project. Then you might want some optimization. Every time you make changes you have to look at all of the files unless you develop a modular web design and well you have to code javascript to make that work, etc.

 

Or you could use open source and use grunt to configure a few javascripts that automatically get your prefixes working and install angular and with angular JS you'll have a quick way to implement a modular website design (You can even use less to use a modular CSS design too so you change your styles only for the parts you want). Back to grunt to join all of your code into just 3 files (HTML, JS and CSS) and you're done.

 

The difference is you putting up a week of work vs maybe 2 hours because you're using open source bits and pieces to automatize and do simple yet important tasks so you focus on just your design and code and not on reinventing the wheel. It's a real time saver and you have every coder's blessing to use their projects as much as you want and even for commercial deployments and such.

Hi all,

So I do know the difference between the two, one you can change the code and one you cannot. However when I change the code on a open source platform like Chromium and refresh the page, it comes to the original code.How can I make it take whenever I refresh it, it comes to my code that I wrote rather then the code the developers wrote? Thanks in advanced!

I'm part of the "Help a noob foundation" 

Link to comment
https://linustechtips.com/topic/658780-open-source-and-compiled-code/
Share on other sites

Link to post
Share on other sites

Open source or 'compiled code' (all code that is run is compiled, or interpreted, but really most is compiled) don't have anything to do with this I think.

You're just saying you have an internet browser and edit a webpage and when you reload it's back to how it was before. That's logical, you're loading the website again (to its intended state). What you are looking for is some extension that changes the website, e.g. always changes some thing to something else. Right?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

2 minutes ago, Minibois said:

Open source or 'compiled code' (all code that is run is compiled, or interpreted, but really most is compiled) don't have anything to do with this I think.

You're just saying you have an internet browser and edit a webpage and when you reload it's back to how it was before. That's logical, you're loading the website again (to its intended state). What you are looking for is some extension that changes the website, e.g. always changes some thing to something else. Right?

If this is for a website I recommend using something like Brackets and its Live preview feature (works with a Chrome plugin) so it shows you the changes to your code on your page in real time or after saving and hitting refresh.

-------

Current Rig

-------

Link to post
Share on other sites

10 minutes ago, Misanthrope said:

If this is for a website I recommend using something like Brackets and its Live preview feature (works with a Chrome plugin) so it shows you the changes to your code on your page in real time or after saving and hitting refresh.

So this is the point of having a opensource? Using a third party app to adjust the page whenever you refresh it? You can do this with normal compiled code too. What is the point of a webpage/application being open source then? 

I'm part of the "Help a noob foundation" 

Link to post
Share on other sites

That's not how it works, nor what those terms mean. Web code is usually interpreted, which means a secondary program (your browser) is tasked with making it run instead of compiling an executable that can run on its own. When you modify it, you modify the version your browser is interpreting, not the version that is on the website's server. When you refresh, the browser gets a version from the server.

 

Open source means that the code of a compiled program is made available so you can modify and compile it yourself.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

13 minutes ago, Carlos1010 said:

So this is the point of having a opensource? Using a third party app to adjust the page whenever you refresh it? You can do this with normal compiled code too. What is the point of a webpage/application being open source then? 

All applications are basically open source code while you're developing them yes. However the point is that after you release it to the public if you do it open source anybody can use your code. If you do closed source then nobody can.

 

Some companies prefer to maintain control of their code and don't allow anybody to modify it. This requires a lot of resources to have people hunting down bugs and implementing changes.

 

If on the other hand your code is open source anybody can suggest and implement changes and bug fixes to your code. Also you can borrow code from someone else (and by the same token, others can use your code) meaning that you'd do a lot less work yourself.

 

Let's say you want to do a website open source vs closed source.

 

If you code everything yourself you have to start with your HTML and CSS. Then you have to add prefixes so your website looks the same on all websites. Also you have to code media screens so it looks good or adequate on different screen sizes (desktop vs tablet vs mobile phone for example). Then you probably want some Javascript to add a little bit of flare to your project. Then you might want some optimization. Every time you make changes you have to look at all of the files unless you develop a modular web design and well you have to code javascript to make that work, etc.

 

Or you could use open source and use grunt to configure a few javascripts that automatically get your prefixes working and install angular and with angular JS you'll have a quick way to implement a modular website design (You can even use less to use a modular CSS design too so you change your styles only for the parts you want). Back to grunt to join all of your code into just 3 files (HTML, JS and CSS) and you're done.

 

The difference is you putting up a week of work vs maybe 2 hours because you're using open source bits and pieces to automatize and do simple yet important tasks so you focus on just your design and code and not on reinventing the wheel. It's a real time saver and you have every coder's blessing to use their projects as much as you want and even for commercial deployments and such.

-------

Current Rig

-------

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×