« first day (3319 days earlier)      last day (1851 days later) » 

00:51
@towc Use merlin
@BartekBanachewicz @towc Use OCaml
 
7 hours later…
07:34
had a chain of bugs with merlin that seemed to make it unusable. I ended up giving up on using ocaml's language server for reason, and decided I'll be fine with not being completely up to date with reason
@copy any particular reason why I might want to go for ocaml instead of re? Anything other than "reason syntax can be awkward"?
08:10
@towc it's a great trick
 
7 hours later…
15:04
@towc sure, altough I decided to do the TS impl first and then do .re and compare
you could do the reason implementation simultaneously
it's just for the mvp scope
I am not sure I have the specs written down but it's a simple enough thing
I'd really like to compare those two and see which one I'd like better for the full project
15:37
hm, for some reason webpack seems to be missing my file updates
as in, I save a file and it doesn't pick it up
There is no Typescript chat is there?
15:56
@SpaceNinjaApe This is it
@SpaceNinjaApe the typescript chat is a superset of this chat
lol they left
user7659542
Hey quick question
user7659542
I am making my first CMS
that's not a question
user7659542
16:09
I am thinking about having some javascript on the client side which allows to +/- interactively modify the websites content. Pass the new content to a php script which will then store it and eventually do some more stuff
user7659542
is this a good approach? ie javascript -> php
user7659542
@BartekBanachewicz haha :)
@traducerad that's opinion-based
user7659542
ok let s put it that way
user7659542
Why would/could this approach be bad? What are its downsides?
16:12
@traducerad I'd personally be very reluctant to use PHP
user7659542
Why so?
and I'd probably also want something statically typed instead of JS
@traducerad I believe that the alternatives are better
user7659542
I chose PHP because that s a language I master
that's your prerogative
user7659542
I don t see myself starting to use a new language and losing time to look up how to do string manipulations and all that stuff
16:13
then don't
user7659542
Lol
but then again I'm not sure what you want to accomplish by asking for advice, then
seems you have it all figured out, all that's left is to wish you good luck on your journey
user7659542
There are many ways to skin a cat. What is the professional way nowadays?
user7659542
Especially when it comes to web dev, things change/evolve all the time
@traducerad statically typed, reactive frontend and as little server code as possible, in a good language
where "as little server code as possible" = ideally 0
and if you absolutely must and cannot avoid writing server-side code, then API-first, microservice-based backends seem to be the norm nowadays
the bleeding edge would be GraphQL perhaps
but then again the bleeding edge evolves the quickest
mm
I have an actually interesting Q
why does webpack-dev-server only sometimes pick up file changes
I would assume it's config if it never hot-reloaded
but it sometimes does and sometimes doesn't
16:53
yeah, seems completely random
17:03
@towc I'm commiting as I go BTW to my GH
so you can get the general idea. There's also the old project called potato-empires there that did pretty much that thing
If i run npm install, I am getting following error
No matching version found for save-dev@^2.0.0.

Tried almost everything found in the net. No luck :'(
@masud_moni save-dev only has Version 0.0.1-security listed in the repository.
Are you sure that save-dev is the package you want?
> This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.
if I remove save-dev from package.json
it works
so I think it might be the solution
will it affect the project in any way?
why do you need that package
did you mean --save-dev?
Yeah well obviously. NPM is trying to resolve the package save-dev@^2.0.0 and only finds version 0.0.1-security so it errors. Whether removing it from your package.json helps you depends on what that package was used for.
17:15
ok let me check it out
thanks a lot
really helpful
18:10
uhm
I have a typed React component with a prop type boolean
and react inspector shows a value of null for that prop
how's that even possible
ah, right, && isn't typed
 
3 hours later…
20:44
@BartekBanachewicz well, I can certainly try
although I need to spend 2 weeks focusing on an interview project :/ (on top of my actual job)
@towc I'll start working on it after i am happy with the ts one
which is coming together quite nicely
yay
Gonna spend maybe an hour more today and actualyl finish the game logic
you do so much prep that I feel bored for you
(but yes, I realize it's probably the sane way to go forward)
and oh damn it's in react
no canvas? I still don't know what the idea is
@towc the renderer is just in html right now
because why not honestly
it's turn based
20:53
given the name, I assumed there would be parabolas involved
which seem unfit to be displayed in html
the prototype is gonna be 2d
the real one would be 3d
and then I would just use WebGL instead of canvas
uhm, ok
anyway, the renderer is pretty well abstracted
I have introduced a separate view model which is used for rendering
the game logic generates a value of that view model and that gets displayed
so the renderer has pretty much 0 ties to the actual logic
given the lack of information on... anything really, I can't really counsel
well it's a semi-typical mvvm
20:55
I mean, what's the gameplay?
oooh sorry
forgot about that :D
that's the game this prototype is based upon
you have a map, on the map units, cities and ports
you get a few moves in a turn, and every move is simply moving a unit from one place to another
every unit can be moved once
moving a unit on your unit merges them together. Moving it onto an enemy starts a fight and only one survives
each unit has two values that determine its strength (count) and morale (I'm not implementing morale rn)
capturing cities means that after end of each turn you spawn units in those cities
capturing ports spawns units everywhere for each port
the goal is to capture all capital cities and thus eliminate all opponents
that's about it
ok, I don't disagree with your choices then
also, what mechanic would change in 3d?
well first and foremost the 3d version is a different game :D
for one, I'd like to have it be quasi-rts
or simultaneous-play-simultaneous-simulate-strategy
you might want to catch up on some sleep there
because I'm very confused
also, I need to catch up with some sleep, ttyl :)
@towc eh, the only difference is that instead of taking turns, the game has alternating planning and execution phases, and the execution phase tries to execute all orders from all players
and that typically involves imperfect information which I'd like to do as well
aka fog-of-war
21:44
I am having trouble installing modules. Anytime i try to install a module node-gyp rebuild run's and it errors preventing install. How can i disable this?
I tried uninstalling it from the projects as well as global
also tried
22:14
can someone try running npm install osa-contacts and see if they can install sucessfully?
 
2 hours later…
user11720628
23:46
could someone help me in the question stackoverflow.com/q/58906314/11720628
user11720628
If it's a bit like newbie code I am and would like to learn what I'm doing wrong
user11720628
is anyone there

« first day (3319 days earlier)      last day (1851 days later) »