Giter VIP home page Giter VIP logo

tht's People

Contributors

joelesko avatar thgs avatar tiitlan avatar wmeister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tht's Issues

Timeout when Runtime error occurs with no output

Long timeout occurs when:

  1. A runtime error is triggered
  2. There is no output (other than print statements)
>> Test Output

$num += blah()

fn blah { 
   return 
}   


It's possible this was a local issue, but recording it here to double-check.

new app getting 'Not Found'

Hello

I started playing around with Owl today - and after reading the docs thought it was a great idea / concept

so I got in installed and set up - all seemed ok - but when I did

owl server
and went to the local url - I got a 'Not Found' in the browser

taking a look at it I noticed that on line 116 (of lib/core/Owl.php) there was a return false - if I remove this then it all works fine

the full bit of code is

        if (Owl::isMode('testServer')) {
            // return static assets
            if (file_exists($_SERVER["SCRIPT_FILENAME"])) {
                return false;
            }
        }

what was the intention here?

OOP and Windows support

Very interesting and funny project :)

Please clarify it better - does THT support OOP and when it will be available on the Windows systems?

I checked Roadmap out and there are no any detailed info about timing for these features.

hitting the Remote Origin Not Allowed with a form post

Hello

So - I noticed there was a todo in the isCrossOrigin() function in vendors/owl/owl/lib/modules/Web.php

The todo was to check the referrer, and I've presumed that it's to check it against the host.

for my purpose I've just done

               if (strpos($referrer, $host)) {
                   $this->isCrossOrigin = false;
               } else {
                   $this->isCrossOrigin = true;
               }

not sure if you're allowing pull requests? but I've forked your repo as it was a blocker for me for what I needed to do.

Blog: On the Rename to THT

On the Rename to "THT"

In the latest release, OWL was renamed to THT.

I liked "OWL" quite a bit. It was short, friendly, and (most importantly) had a cool ASCII logo {o,o}.

Unfortunately, I got feedback that it was easily confused with the Web Ontology Language, which uses OWL as their acronym. I honestly didn't think it'd be much of an issue at first, but eventually decided to be a good neighbor and come up with something else.

I've named a lot of projects over the years, but this was probably the most time consuming. I considered about 15-20 different names and endless variants: what they mean, how easy they are to say and spell, how they'd look on a website, etc.

I didn't want to pick something just because I thought it was cool. It was important that it could reinforce the identity of the language. There are so many projects out there. I wanted to give people an immediate sense of what it's about.

Why I settled on "THT"

The most important reason: Without knowing anything else about the language, "THT" looks like an obvious reference to PHP, while still looking like something different.

PHP is a rather polarizing language. My biggest worry was the negative connotation PHP has to a lot of people, but I eventually came around to embracing it. Whether a person loves or hates PHP, I hope it at least stokes their curiosity about it.

Second, the letters "THT" are visually interesting: perfectly symmetrical and all straight lines. To me, it suggests order and simplicity, which matches the approach of the language itself. It's a bit rigid and minimal, but hopefully in an appealing way.

This led to the Mondrian-style abstract art look of the logo. It's is a colorful aesthetic that I think most people like, whether they are "into" art or not. To me, it suggests the idea that constraints lead to creativity, and lives in a grid, as most web designs do.

A few other things I like about it:

  • The name is the same as the spelling. "THT" is spelled "THT". No ambiguity there.
  • Hard consonants are easier to understand verbally (one of OWL's weak points)
  • It isn't overly clever. It still sounds like a tool that anyone can use.
  • Acronyms are out of fashion in PL names, which means it's a little different.
  • No name is perfect, but it felt pretty good once I started working with it.
  • The "T" looks like a double-clawed hammer. 😏

That said, there are a couple of downsides:

  • I haven't found a domain that I really like. It is currently tht.help, but I have others as backup.
  • THT can be confused as a typo for "that". I hope this more a minor point of amusement, than actual confusion. Hopefully search engines are able to learn the distinction.

Anyway, I hope it works out for everyone.

Fix the misnamed function on the Getting Started page.

Right now the "Colors" example on the THT web site is using the upperCaseFirst() function call on line 27 and 30. It should be noted that the correct function name is "toUpperCaseFirst", and will throw an error for any user getting started.

Reproduction steps:

  1. Create a colors.tht file in the pages directory and fill it with the example code provided on the above link.
  2. Add the route to app.jcon.
  3. Load the page and see the error.
  4. Update the function calls to "toUpperCaseFirst" on lines 27 and 30 and reload.

'owl new' - Uncaught Error: Class '\o\u_System' not found

Installed successfully on Linux Mint 18 Cinnamon. PHP Version 7.0.

Result of running 'owl new':

+-------------------+
|      NEW APP      |
+-------------------+
PHP Fatal error:  Uncaught Error: Class '\o\u_System' not found in /home/[my-user-name]/.owl/lib/core/Runtime.php:232
Stack trace:
0 /home/[my-user-name]/.owl/lib/core/Owl.php(1256): o\Runtime::getModule('', 'System')
1 /home/[my-user-name]/.owl/lib/core/Owl.php(538): o\Owl::module('System')
2 /home/[my-user-name]/.owl/lib/core/Owl.php(548): o\Owl::confirmInstall()
3 /home/[my-user-name]/.owl/lib/core/Owl.php(158): o\Owl::installApp()
4 /home/[my-user-name]/.owl/lib/core/Owl.php(121): o\Owl::mainCli()
5 /home/[my-user-name]/.owl/lib/core/Owl.php(87): o\Owl::main()
6 /home/[my-user-name]/.owl/bin/owl.php(28): o\Owl::start()
7 {main}
  thrown in /home/[my-user-name]/.owl/lib/core/Runtime.php on line 232

Fatal error: Uncaught Error: Class '\o\u_System' not found in /home/[my-user-name]/.owl/lib/core/Runtime.php:232
Stack trace:
0 /home/[my-user-name]/.owl/lib/core/Owl.php(1256): o\Runtime::getModule('', 'System')
1 /home/[my-user-name]/.owl/lib/core/Owl.php(538): o\Owl::module('System')
2 /home/[my-user-name]/.owl/lib/core/Owl.php(548): o\Owl::confirmInstall()
3 /home/[my-user-name]/.owl/lib/core/Owl.php(158): o\Owl::installApp()
4 /home/[my-user-name]/.owl/lib/core/Owl.php(121): o\Owl::mainCli()
5 /home/[my-user-name]/.owl/lib/core/Owl.php(87): o\Owl::main()
6 /home/[my-user-name]/.owl/bin/owl.php(28): o\Owl::start()
7 {main}
  thrown in /home/[my-user-name]/.owl/lib/core/Runtime.php on line 232

Is there a Discussion Board?

I just stumbled on THT and love it. Is there a discussion board someplace to keep people like me with discussion ideas from clogging the issues with questions? (Note added: I see there is a discord server and twitter. But could not find discussions on github)

Is there a single download PDF of all instructions, and if not, would you mind if I converted the entire website to such a PDF?

So far everything I see I like.

I am curious about the SQL injection if it does something similar to these:

MeekroDB

PHPDelusions SQL Injkection

SafeMySQL

As to structures, with the curly braces, is it possible to use END instead of curly braces?

if something
  do this
  if something else
    Do more this
  end
end

rather than


if something {
  do this
  if somethign else {
    do more this
  }
}

And the same for fn, tm, loop, foreach etc.

If it is not possible, would you be willing to add the capability?

I do realize a lot of people love the curly braces, whereas I like specific ends...

I DO LOVE no semicolons.. that is awesome... I also LOVE lists starting at 1 rather than zero...

I also LOVE that IF does not have to be enclosed in parens if (something) {}.

Basically what you have here is just what I have been looking for in my complaints about php...i have to study your manual more.

Thanks for this great work. If there is a message or discussion area or if you would be willing to turn it on here on github, I will go there from now on.

Also the jcon website jconformat.org is not showing up, I presume it is decrepcated? the website not the software. And JCON is awesome too! I like how cleanly you think about code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.