Announcement

Collapse
No announcement yet.

mini mega score

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mini mega score



    That is the most awesome results ever. "Why?" you may ask. Well, with ZERO FUCKING DOCS, tutorials or anything else (cause there are none), I succeeded in injecting values into a database using haxe. The values you see (michael, null, null, null) are the exact values I told it to put. The "true" was the return from the PDO execute. ie... it's true that this shit finally worked.

    Now that I have this super mini and crummy example working I can expand this to do whatever the hell I want. I'm not sure where this is currently useful to me but, I noticed there was not one fucking drop of information on how to do this on the entire commercially available internet so, I decided to accept the challenge of figuring it out while being completely in the dark.

    I got it to work. I win. I guess I'll write some abstraction layer that works similar to my content manager except instead of files in/out it will be database in/out. The sort of silly thing is, I could have written this in pure php with zero problems a hell of a lot faster than trying to do it in haxe BUT my haxe version can be ported to neko with a click and there would have been zero challenge doing it the pure php way. This was more about making something work where there is no way to get any help and I don't even know where to start.

    I'd show you my code but, it's currently super, extremely crappy. Maybe the shittiest code I've ever written. Doesn't matter. I'll make it sweet as fuck when I feel like working on it.
    Last edited by MadGypsy; 12-29-2016, 10:42 PM.
    http://www.nextgenquake.com

  • #2
    i do not understand anything MG, I need a resume
    the invasion has begun! hide your children, grab the guns, and pack sandwiches.

    syluxman2803

    Comment


    • #3


      Maybe that will help. Now just imagine that instead of hardcoding the values, I was getting them from some webform a user filled out (as an example).

      There is still more to do. I cleaned up my code greatly but, I still haven't made a true "in" interface and I haven't made an "out" one at all. It's all lined up though.
      http://www.nextgenquake.com

      Comment


      • #4
        Originally posted by nahuel View Post
        i do not understand anything MG, I need a resume
        Translation:

        He's managed to dance underwater and not get wet.
        While in a water balloon fight with angry gorillas when all he had to do was a 2 step or even just wiggle a little in his living room to accomplish what he could have done. if he wanted to dance that is.

        Or in other words he just slammed a revolving door. Because he could.
        Last edited by Phenom; 12-30-2016, 05:04 PM.
        QuakeOne.com
        Quake One Resurrection

        QuakeOne.com/qrack
        Great Quake engine

        Qrack 1.60.1 Ubuntu Guide
        Get Qrack 1.60.1 running in Ubuntu!

        Comment


        • #5
          I don't know about all that but I did externalize a bunch of the php PDO to haxe and make it work proper even though I didnt have anything to work with.
          http://www.nextgenquake.com

          Comment


          • #6
            well MG when i can not achieve certain objetives of my "to.do list" i listen some inspiration music (do not care about the lyrics, because i barely understand it) I only follow the "flow" of the music in my mind. Stoner rock helps me a lot


            [ame="http://www.youtube.com/watch?v=TGcLE4tN9k8"]https://www.youtube.com/watch?v=TGcLE4tN9k8[/ame]

            [ame="http://www.youtube.com/watch?v=-E90vAsYxaE"]https://www.youtube.com/watch?v=-E90vAsYxaE[/ame]

            [ame="http://www.youtube.com/watch?v=co1PJKiaeh0"]https://www.youtube.com/watch?v=co1PJKiaeh0[/ame]
            the invasion has begun! hide your children, grab the guns, and pack sandwiches.

            syluxman2803

            Comment


            • #7
              Well, really, I have come to some conclusions...

              Haxe PHP - epic waste of life and time. It's not that it's "bad". It's useless. There is no gain. PHP is a stupid easy language that is practically just a package of built-ins. Externing those packages to Haxe just so you can write the exact same code in Haxe syntax is just silly.

              Haxe HTML5 - nothing to really gain, you're gonna do the same work with different syntax. Instead of using markup you can "script" a page. It's kitschy at best. Although, it is handy that this possibility exists because, it makes HTML5 easier to deal with in situations where you would be creating a haxe javascript project that needs any form of HTML5 interface or display. To just build a webpage with though......naaaaaaah.

              Haxe Javascript - excellent! For someone like myself that is used to pretty much the full range of syntax possibilities, you couldn't ask for more. Of course it transpiles down to regular ass javascript but ::shrugs:: at least I don't have to write that shit. It also has far superior error reporting to anything javascript has ever had to offer. The same way you extern PHP packages you could extern javascript libraries if you wanted to use them in your code. Personally, that part doesn't appeal to me. Writing Haxe and getting pure and very good javascript out does appeal to me though. It's almost like using Babel but, without all the insane syntax Babel introduces.
              http://www.nextgenquake.com

              Comment


              • #8
                nahuel, that Alohawaii is some tasty stuff.

                Comment

                Working...
                X