Recent

Author Topic: Who do you recomend (Displaying long code)  (Read 404 times)

Possum

  • Jr. Member
  • **
  • Posts: 69
    • uDoPage
Who do you recomend (Displaying long code)
« on: December 08, 2019, 10:55:11 pm »
Hi

I know of paste bin

But who would you recommend I put long code into to show in this forum.

Or can I paste long code here.. 239 lines

Cheers
« Last Edit: December 08, 2019, 10:57:41 pm by Possum »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6618
  • Debugger - SynEdit - and more
    • wiki
Re: Who do you recomend (Displaying long code)
« Reply #1 on: December 08, 2019, 11:00:33 pm »
Here in the form is ok, if you use the code tags
See the # symbol in the menu.

Or insert in your text (without the spaces at the [ ])
[ code=pascal ]
  ... your code
[ /code ]

PaulRowntree

  • Full Member
  • ***
  • Posts: 132
    • Paul Rowntree
Re: Who do you recomend (Displaying long code)
« Reply #2 on: December 09, 2019, 12:10:24 am »
Are you asking someone to go through it to find a problem?  If so, a shorter code fragment might be more effective ...
Paul Rowntree
- coding for instrument control, data acquisition & analysis, CNC systems

jamie

  • Hero Member
  • *****
  • Posts: 3537
Re: Who do you recomend (Displaying long code)
« Reply #3 on: December 09, 2019, 02:08:02 am »
you can publish a problematic project here.

If it's that large then having a failing test project is better.
The only true wisdom is knowing you know nothing

sash

  • Sr. Member
  • ****
  • Posts: 366
Re: Who do you recomend (Displaying long code)
« Reply #4 on: December 09, 2019, 09:10:35 am »
But who would you recommend

Simply pasting a long sheets of code is generally a bad idea. It's hard to read/understand and discouraging for others to participate.

There's an universal recommendation: prior to posting any code at all, briefly explain a task, then exact problem,
then (if you think you must) a problematic part of your code. Replace working parts (if they are required to explain context) by
comments. Everything should be placed under [ code=pascal ] tags.

Alternatively/additionally (if you sure you must) you can create a new project (not just a copy of your actual work), with a solely
purpose: to minimally demonstrate an issue. Then archive and attach here.

Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

 

TinyPortal © 2005-2018