@Erel's Quizzes always generate a lot of interest. In this crisis of viral replication, I remembered a challenge from when I taught programming to Engineering students.
Without using the file system or the clipboard, write a minimal program that displays itself.
Without using the file system or the clipboard, write a minimal program that displays itself.
B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
Sub Process_Globals
Private fx As JFX
Public MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
Dim textArea1 As TextArea: textArea1.Initialize("")
MainForm.RootPane.AddNode(textArea1, 0, 0, MainForm.Width, MainForm.Height)
MainForm.Title = "This is an exact replica of myself!"
MainForm.Show
'textArea1.Text = ?? 'In how many lines can you do this? My best shot is 66 lines, including this preamble.
End Sub