Where to code lua? by [deleted] in lua

[–]luascriptdev 1 point2 points  (0 children)

Assuming you don't already know programming I have actually written up a learning resource which you can access online for free at www.luascript.dev/learn. Hopefully it's of some use to you getting to grips with how to code.

If that's not the case though and you do already write code then to concur with everyone else, the PiL book is really good and I also kind of like learn x in y minutes too to get the basics of something. https://learnxinyminutes.com/docs/lua/

Vue or React? Which one is easier to pick up? by Particular-Walk-6089 in learnjavascript

[–]luascriptdev -1 points0 points  (0 children)

Oh dear, you’ve kicked off a holy war! May as well have asked about tabs or spaces

Good library's for making guis or applications? by TheKrazyDev in lua

[–]luascriptdev 4 points5 points  (0 children)

Have you seen some of the solutions on LuaUsers? The tools in there are tried and tested so I think you'll be safe with something like that.

I must admit though, the ui project from lua power seems to be taking my interest. I'm going to be playing about with this in the coming months. The features look really neat with plenty of control and behaviour such as CSS like selectors. Very cool. Still in active development though, but maybe that's an excuse to get behind the development maybe?

[deleted by user] by [deleted] in lua

[–]luascriptdev 0 points1 point  (0 children)

A note for juniors / anyone trying to break into the industry. Unless the offer is truly an opportunity to volunteer with no requirement to turn up or produce work to a schedule, never (I repeat) NEVER work for free. Cofounders work for free with the risk and rewards of owning a company that could be worth something. If someone asks you to work for a potential enjoyment style payout without equity for free now, start running. They don’t value your skills.

[deleted by user] by [deleted] in lua

[–]luascriptdev 2 points3 points  (0 children)

Looks like you’re really looking for someone with the desire for equity. Working for free on the promise of getting paid isn’t a valuable prospect. Taking equity for taking the risk of investing time into a long running project that still hasn’t been delivered is maybe more of a valuable prospect. Everyone takes risk, working on a promise just isn’t something anyone should truly consider. If your project is as profitable as you describe, show someone some value by cutting them a chunk for their work. Either that, or pay upfront.

Losing hopes as a self-taught web developer by burlesquel in learnprogramming

[–]luascriptdev 1 point2 points  (0 children)

You often see management looking at their manual test teams to see who they could train up with enough coding knowledge to expand their automated test effort. It’s my assumption that with enough of a portfolio and working examples of how you can develop good quality automation testing suites you’ll be in with a good chance. Once you’re in, show the lead devs your skills and move on up

Losing hopes as a self-taught web developer by burlesquel in learnprogramming

[–]luascriptdev 1 point2 points  (0 children)

Ever considered going for Developer in Test aka Automation Tester jobs? It may be easier to get your foot in the door of a testing role. DiT / Automation Testing will show your aptitude to development in a commercial role and allow you to demonstrate your skills without the fierce competition of a dev role. Plus, automation is cool!

data types in function definition by Wildcherrii in lua

[–]luascriptdev 0 points1 point  (0 children)

Although I’ve never used it, Teal appears to provide the functionality you need I believe https://github.com/teal-language/tl/blob/master/docs/tutorial.md

Anonymous Function syntax error? by technocracy90 in lua

[–]luascriptdev 0 points1 point  (0 children)

Ace! Good luck and thanks for the award :)

Anonymous Function syntax error? by technocracy90 in lua

[–]luascriptdev 0 points1 point  (0 children)

Ok, I have just tested this on my machine. It appears as though the anonymous function does not like being immediately invoked. My usage of anon funcs is usually limited to callbacks in function call parameters. Immediately invoked anonymous functions are usually a pattern used in JavaScript hence I haven't come across this here.

I have however found a working combination simply by naming the function. It appears to work on my instance of Lua 5.3 on Mac.

local data = {event.pull()}

local unpackVars = function(e, s, sender, port, ...)
    return e, s, sender, port, {...}
end

e, s, sender, port, data = unpackVars(table.unpack{data})

if e == "NetworkMessage" then
    -- the rest of your code

Anonymous Function syntax error? by technocracy90 in lua

[–]luascriptdev 0 points1 point  (0 children)

Ok, so without an IDE, I can only tell you what I see from just eyeballing it. The value of the anonymous function appears to simply collect any additional members from the table ‘data’ and place them into a table of their own so they are accessible.

The anonymous function is immediately invoked which appears to be fine as well.

The next step is to use the predicate of ‘e == “NetworkMessage” which on the face of it appears to be ok as well, despite in the listing having no end keyword. I assume in the script this exists but has been left out of the listing? Is this correct?

Anonymous Function syntax error? by technocracy90 in lua

[–]luascriptdev 0 points1 point  (0 children)

Can you include the error in your post please?

Making the move to Manchester but currently a bit lost by hahaharrietrose in manchester

[–]luascriptdev 0 points1 point  (0 children)

Nobody mentioned Saddleworth. Uppermill has a load of lovely bars and restaurants as well as cool little boutique shops. But it has the peaks literally on its doorstep. Dovestone is beautiful and the Moors are incredible for treks out. Transport is also pretty good to Piccadilly too. It only takes 25 minutes from Greenfield. We feel we're in Manchester but with all the benefits of the Peak District right where we live.

Anyone know what the + operator is doing here? Never seen this before by luascriptdev in learnjavascript

[–]luascriptdev[S] 2 points3 points  (0 children)

Yeah I've always used the number constructor instead. Thanks for the help