Posting code in zip files

Why don’t you post the code on here, why do you keep putting them in zip files?

It is not my modus operandi. :unhappy:

It is my modus operandi. :winky:

coothead

It excludes mobile and tablet users from viewing until they have laptop or desktops available… the former accounts for an audience greater than 60% :frowning:

Edit:
There are also many free sites available where html script can be posted and viewed, none of which require registration.

That may well be so, but I provide code for those, whom, I
presume, are serious coders with the appropriate tools to
enable them to take full advantage of the methods that I
consider suitable for displaying the fruits of my labour.

coothead

Unfortunately at the moment I am excluded and will check when the tools are available :frowning:

That is, indeed, a great misfortune. :eek:

Does your Ubuntu/Fedora with the Gnome Desktop
not have the wherewithal to open zip files or have you
not been able to locate a suitable application as yet? :unhappy:

coothead

As I don’t and never will possess one, I cannot
confirm that your assertion is true. :unhappy:

What I can do, though, is draw your attention to
the following links…

  1. How to Open Zip Files on an iPhone or iPad
  2. How to Open and Create Zip Files on an Android Device

coothead

iPad mini 2 Links followed and the first hurdle when the zip link was clicked…

PK Ú©$Ninput-with-svg/css/PKJ·$N~·:âinput-with-svg/css/screen.css}AKÃ@…ïü‡¡¥ô’ÕDThÄ‹aÁƒ§âI

May I suggest trying on a friend’s mobile or tablet or in a computer shop with a view to buying if successful.

Now one of the fortunate 40%… back again on a desktop :slight_smile:

I searched and found an online viewer but unfortunately it does not save the results :frowning:

The following source needs to be copied and pasted into the online viewer:

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>untitled document</title>
<!-- 
    <link rel="stylesheet" href="css/screen.css" media="screen">
-->
<style>
body {
    background-color: #f9f9f9;
    font: 100% / 162% BlinkMacSystemFont, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif;
 }
#searchform {
    display: inline-block;
    border: 1px solid #999;
    background-color: #fff;
 }
#searchform fieldset {
    border-color: transparent;
 }
#searchform input[type="image"] {
    border: 1px solid #000;
    border-radius: 0.4em;
    background-color: #ffa500;
    vertical-align: middle;
 } 
 button {background-color:red;}
</style>
</head>
<body>
<form id="searchform" action="?">
 <fieldset>
 	<legend> John_Betong's ver:001 </legend>
	  <label for="searchFor">Search:</label>
	  <input type="text" id="searchFor" name="someNameHere" placeholder="Search">
	<!--
	  <input type="image" src="images/search.svg" width="24" height="24" alt="search">
	-->
		<button type='image' style=" margin:2em 0 ;">
			<svg class="svg" viewBox="0 0 24 24" width="24" height="14">
        <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"> </path>
      </svg>
    </button>
 </fieldset>
</form>
</body>
</html>

Online Output: https://htmledit.squarefree.com/

Not on the forums, if my reading of the admin stats is correct. Mobile visits seem to account for around 10% of the total.

Personally, I find zip files much easier to use than JSFiddle, but members are free to provide code - as question or solution - in whichever way suits them best.

5 Likes

Though they should also be aware that if the problem in question is about a section of your HTML that’s 10 lines long, they should:

  1. Understand when people dont want to download your 3 MB website to fix the problem
  2. Understand when people realize that the #1 means of getting infected with viruses and malware is ‘Download this file and open it!’ they dont WANT to open your random file on the internet.
  3. Understand that the easiest way to consume the answer - not just for the question asker, but for those that follow later, is in actual post form, for much the same reasons as the above two.

Now if the problem is a wide scale one, a file attachment may be the best solution.

3 Likes

GitHub comes to mind. True, some “helpees” may not want their entire project to be accessible. And some “helpers” may not be inclined to have their “help” files on GitHub, or to go through multiple files of another’s large project.

Ideally one would be able to post only what was involved with a problem. Of course often if one knows what is involved with the problem there’s a better chance they could solve the problem without help.

In any case. I think GitHub can be a good way to share code.

2 Likes

I believe that @TechnoBear has already supplied
the definitive answer to this issue…

“…members are free to provide code - as question
or solution - in whichever way suits them best.”

…and I would imagine that no one here is going to be
persuaded to change their trusted posting methods.

coothead

From a personal point of view, I much prefer a live link. It’s by far the easiest way to see and diagnose a problem. Failing that, I like the code posted on the forums, so I can easily see it, and copy/paste it to a document if required. Individual uploaded files - .html, .css, etc. - are also OK. zip files from new members I am hesitant to download, and always scan such files for nasties, but I still find them easier than JSFiddle or CodePen.

There are pros and cons to any method, I think, so members just need to make an informed decision. Choosing one method over another to post code may restrict the number of members willing or able to view it to assist. I would say, though, that if somebody were providing me with code to solve a problem, I would be most grateful for their efforts, even if they posted it via JSFiddle. wink

The forums are, after all, built on give and take. smile

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.