#indiewebcamp 2015-12-12

2015-12-12 UTC
snarfed joined the channel
#
kylewm
KevinMarks: I just saw an instagram cluster today (maybe for the first time)
#
kylewm
or maybe Baader-Meinoff
#
snarfed
confirmed, the Timeline Photos album doesn't consolidate, but the rest do
#
snarfed
at least based on one anecdotal test right now
#
snarfed
not sure if apps can upload to Timeline Photos though
nitot, danlyke, KartikPrabhu, snarfed, pl_, obensource_, obensource, ttepasse, wolftune, squeakytoy and [shaners] joined the channel
#
[shaners]
<@U03QR2B3P: your naming convention for p3k is very clever. :+1:
nitot joined the channel
#
@kevinmarks
This sounds like a great future design for woodwind and other #indieweb readers https://blog.intercom.io/the-end-of-apps-as-we-know-them/
(twitter.com/_/status/675593332836270080)
friedcell joined the channel
#
@OhhSocialMedia
RT @kevinmarks: This sounds like a great future design for woodwind and other #indieweb readers https://blog.intercom.io/the-end-of-apps-as-we-know-them/
(twitter.com/_/status/675594620491927552)
#
@IMJACKTG
RT @kevinmarks: This sounds like a great future design for woodwind and other #indieweb readers https://blog.intercom.io/the-end-of-apps-as-we-know-them/
(twitter.com/_/status/675593790111875072)
tantek, friedcell, nitot, squeakytoy2, bergie_, uranther_, DePhraser_, bigbluehat_, anm_, M-Kodo, aaronpk and minsky joined the channel
#
@dkreuz
If complexity goes beyond a certain point, is a silo inevitable? #indieweb
(twitter.com/_/status/675618602712702976)
friedcell, ramsey, glennjones, KartikPrabhu, nitot and j12t joined the channel
#
petermolnar
I think I'm done with pushing plugins to the official WordPress reposiroty
#
petermolnar
s/reposiroty/repository/
#
Loqi
petermolnar meant to say: I think I'm done with pushing plugins to the official WordPress repository
#
petermolnar
they have some lint on the svn (sic!) which apparently fails in PHP 5.6 functionalities
nitot, j12t, wolftune, friedcell, ttepasse, loic_m and korayal joined the channel
#
GWG
petermolnar: I push to the official repository to encourage adoption
Tino joined the channel
#
petermolnar
yeah, that were my reasons as well; turned out the lint they are using is php 5.4
#
GWG
!tell acegiak Are you using like/favorite etc without a URL for anything?
#
Loqi
Ok, I'll tell them that when I see them next
j12t, nitot, neanias, snarfed, wolftune, singpolyma and Tino joined the channel
#
GWG
I need some coding advice
#
GWG
I am working to generate a display based on a set of variables, not all of which are set. The display changes based on which ones are
#
GWG
I am trying to find a way to do this that is better than a lot of if statements
nitot and j12t joined the channel
#
petermolnar
GWG templates?
#
GWG
Of what sort?
#
GWG
I have been looking for the right method
nitot joined the channel
#
petermolnar
I'd need to see some code snippets to say any better
#
GWG
I just wiped my former work to redo it.
#
GWG
But I will give an example.
#
GWG
A bookmark can have an author or not, that author can have a URL or not.
#
GWG
I could have an author image or not.
#
GWG
I know there are templating engines, but that seems like overkill
#
petermolnar
even in the templates, that is going to be ifs
#
petermolnar
so in this case I don't think you can avoid it
[kevinmarks] joined the channel
#
[kevinmarks]
Jinja2 is what I use for that
#
GWG
I don't want to eliminate them so much as have cleaner code that I can easily go back to and remember what I did.
#
[kevinmarks]
PHP is templates so building ifs in should be ok
#
GWG
I just don't want five levels of nested ifs.
JonathanNeal_, uranther_, Phae_, reidab_, mattronix_, benward__, Zegnet, cjk101010, Jeena, singpolyma, snarfed and KevinMarks joined the channel
#
@indiessance
@indiewebcamp #Instant #WebPage #CopyAndPaste #Code into #TextEditor #SaveAs .html Open #Browser #Done #HTML5 #P5js https://github.com/nick3499/p5-processing-sketches/blob/master/single_html_file_example.html
(twitter.com/_/status/675746647872147456)
KartikPrabhu and j12t joined the channel
#
petermolnar
jinja2 is python, in php the ~same syntax is Twig
danlyke_, tantek and wolftune joined the channel
#
tantek
good day #indiewebcamp!
#
tantek
reads today's logs
#
tantek
GWG, the challenge of conditional code for the presence/absence of particular properties is a real challenge
#
tantek
best way is to start from the presentation and work backwards
#
tantek
that is, sketch out how the presentation could/should/would ideally look if you have a certain set of properties, for all possible sets like that
#
GWG
I am starting with a basic presentation design. I'm actually going backward to that. I want to write that in a way I can remember how to work with it. Then enhance it.
#
tantek
you can approach that set of sketches two ways. you can start with, assume you have all the properties, what would a good presentation look like? which of the properties would you use and not use (even if you have them) ?
#
tantek
or you can start with - assuming you only had *one* property, what would you present?
#
tantek
and within those two approaches, you could start with text-first design
#
tantek
and then expand from there
#
GWG
tantek: You raised the question of differing presentations based on single or feed view, and that added a second layer of questions on my part
#
tantek
once you have design sketches like that that look good to you, then you can figure out the minimal code necessary to produce them based on the presence/absence of properties
#
GWG
My plan at the moment was to break out reusable parts of the code into separate functions.
#
tantek
GWG, correct. there is different presentation of a permalink page vs. in-stream.
#
tantek
another (more subtle) difference is logged in vs. logged out view
#
tantek
and within the logged-in variant, another difference is has-write/edit/delete-permissions, or read-only (may choose to hide/show particular webactions like edit/delete)
#
GWG
That is why after thought, the best way to make it readable was to break it into pieces.
#
tantek
perhaps - it is difficult to figure out the pieces boundaries without first figuring out the variants that the pieces must fit into
#
tantek
or positively framed:
#
tantek
by figuring out the variants first, you can look across them, side-by-side, and the common pieces will be more apparent. then you can implement those common pieces, vs the pieces that are different for each variant
#
tantek
the overall presentation variants of a whole post (whether on a whole page, or in a stream, or in an archive)
#
GWG
Lucky I bought that pack of Junior Pads
#
tantek
feel free to scan and upload your sketches too and add them to a brainstorming section for the specific post page e.g. /bookmark
#
GWG
tantek: As usual, I value your input. It is usually helpful in putting my thoughts into perspective even if I don't always understand or agree.
#
KevinMarks
you're going to have the conditional code somewhere, GWG, just need to decide how much is in templates and how much in main code
#
GWG
KevinMarks: That is my current contemplation.
j12t and tantek joined the channel
#
tantek
KevinMarks is right. The key with presentation-first design is that it is a way of making sure that every conditional driven by a specific presentational need/desire, which is a good way to minimize the number of such conditionals, and thus simplify the resulting code.
j12t, friedcell, wolftune, nitot, tantek and jciv joined the channel
#
acegiak
hey all
#
Loqi
acegiak: GWG left you a message 9 hours, 23 minutes ago: Are you using like/favorite etc without a URL for anything? http://indiewebcamp.com/irc/2015-12-12/line/1449929175971
#
acegiak
GWG: I don't think I am
#
tantek
without a URL of the thing being liked/favorited, it doesn't make much sense - though I suppose you could just like something by name without linking to anything
#
tantek
but in that case it's likely just a note
#
tantek
likes San Francisco.
#
GWG
acegiak: Early on, weren't you using it for 'quotes'?
#
tantek
GWG, /quotation is a different kind of post from like or favorite
#
acegiak
GWG: I don't think so. maybe? Assume not for now
snarfed joined the channel
#
GWG
acegiak: Then I can make a quote post kind if the need arises and enforce the presence of a URL for like/favorite/etc at some point in the future.
#
acegiak
sounds good to me
#
GWG
I have a big update I'm working on still.
#
acegiak
Does the wish type currently enforce urls? Cause I can see that not needing one?
#
acegiak
sounds rad so far
#
GWG
acegiak: None of them do. But my next item is rewriting the presentation/view code. So the absence/presence of data elements was on my mind.
#
GWG
acegiak: I'm thinking of removing the verb in favor of only the icon.
#
acegiak
GWG: hmm, I think maybe make that optional in some way?
#
GWG
Doable.
#
GWG
I'm still playing.
#
GWG
I've already swapped icon fonts for SVG. I'm blaming KevinMarks for that. He sent an article link.
#
GWG
I can be very easily influenced by citations
#
GWG
acegiak: If you want to submit any sketches, I've refining the structure and preparing to build custom templates for each kind
frzn joined the channel