Stream

Join this community to post or comment
 
 
One Perspective on Why Humans Are Spiritual

It seems to be baked in.

Right Brain Left Brain
At this point the religion-as-accident theory says nothing about supernatural beliefs. Babies have two systems that work in a cold-bloodedly rational way to help them anticipate and understand—and, when they get older, to manipulate—physical and social entities. In other words, both these systems are biological adaptations that give human beings a badly needed head start in dealing with objects and people. But these systems go awry in two important ways that are the foundations of religion. First, we perceive the world of objects as essentially separate from the world of minds, making it possible for us to envision soulless bodies and bodiless souls. This helps explain why we believe in gods and an afterlife. Second, as we will see, our system of social understanding overshoots, inferring goals and desires where none exist. This makes us animists and creationists.

...

On Purpose
We have what the anthropologist Pascal Boyer has called a hypertrophy of social cognition. We see purpose, intention, design, even when it is not there.

...

But the real problem with natural selection is that it makes no intuitive sense. It is like quantum physics; we may intellectually grasp it, but it will never feel right to us. When we see a complex structure, we see it as the product of beliefs and goals and desires. Our social mode of understanding leaves it difficult for us to make sense of it any other way. Our gut feeling is that design requires a designer—a fact that is understandably exploited by those who argue against Darwin.

...

Religious teachings certainly shape many of the specific beliefs we hold; nobody is born with the idea that the birthplace of humanity was the Garden of Eden, or that the soul enters the body at the moment of conception, or that martyrs will be rewarded with sexual access to scores of virgins. These ideas are learned. But the universal themes of religion are not learned. They emerge as accidental by-products of our mental systems. They are part of human nature.
Despite the vast number of religions, nearly everyone in the world believes in the same things: the existence of a soul, an afterlife, miracles, and the divine creation of the universe. Recently psychologists doing research on the minds of infants have discovered two related facts that may account for this phenomenon. One: human beings come into the world with a predisposition to believe in supernatural phenomena. And two: this predisposition is ...
2
Nawaf Albigaley's profile photo
 
How is this relevant here?
Add a comment...

Bigluis Vargas

Announcements  - 
 
New version of ng2gen has been released
ng2gen - Angular2 Component Files Generator
7
2
Monty Rasmussen's profile photo鄭鈞隆's profile photo
 
Very nice.
Add a comment...
 
This is the first video on how to work with HttpClient. This video talks specifically about doing an HTTP-GET request.

This video is part of a bigger series on how to develop Angular 2 Dart apps and you can see the whole list of videos here: https://www.youtube.com/playlist?list=PLkMd51xTELZJ_wgutzyYXRbfHDJ12KZ3k
11
Justin Fagnani's profile photoNicatronica Videos's profile photo
4 comments
 
This is Dart not javascript. Although there are some functions supported from javascript, Dart doesn't support all of them.

Secondly, other big advantage of using a Class over a direct function like fetch is that we can Mock any class. With fetch we could not mock it.

Other big disadvantage of window.fetch is that we cannot use it on all the browsers at leas we use a poly-fill or some wrapper.
Add a comment...

Guillaume Girou

Announcements  - 
 
Dart 1.16 is now in +CodinGame!
Have fun with enums and async/await keywords! :)

https://www.codingame.com/forum/t/languages-update/1574/1
Discuss and share with others about your favorite tech and programming topics.
35
4
Monty Rasmussen's profile photoErlantz Oniga Ouro's profile photo
Add a comment...

Edouard Tavinor

Discussion  - 
 
Hello!

I'm wondering if someone at Google can update the polymer tutorial at https://www.dartlang.org/docs/tutorials/using-polymer/

I just spent 2 hours fighting with it to try to get it to work and then gave up :(
Use a Polymer element, such as a material design button or menu, in any Dart web app.
11
Filip Hráček's profile photoMonty Rasmussen's profile photo
10 comments
 
I checked, and the latest Dart analyzer does kill Polymer projects. I've updated the tutorial at https://dart.academy/polymer-dart-code-lab-your-first-elements/ with a note about how to fix it (using analyzer 0.27.2).
Add a comment...

Luis Vargas

Announcements  - 
 
Just released a new version of ng2_strap that contains the first version of modal component.
https://pub.dartlang.org/packages/ng2_strap
ng2_strap - Angular2-Dart Bootstrap directives
14
1
Nicatronica Videos's profile photo
Add a comment...

Robert Hartung

Announcements  - 
 
Just released a new version of my google_charts package that fixed 4 issues: https://pub.dartlang.org/packages/google_charts
google_charts - Google Charts API Wrapper Classes.
17
Add a comment...

Filip Hráček
moderator

Discussion  - 
 
Even with Futures, asynchronous code can blow up quite fast. (I'm not even talking about old-school callbacks here.) On the right, async/await keeps it tight and "procedural".

This code is inspired by one that +Tomáš Zvěřina shared earlier today. I quite like the use of await inside the if condition check.

The confirm() method returns a Future (aka Promise in JavaScript land) with the result of a user interaction. But obviously any method that returns a Future<bool> can be used in this way.
26
1
BLeAm Z.'s profile photoJay Turner's profile photo
16 comments
 
Hi again,

This curiosity led me to learn somethings these 2-3 days and just want to share with you guys. Hopefully I'm not disturbing the original post.

First, figured out that the sleep function from dart:io can't be used in asynchronous approach to introduce pause, instead, it will block the whole thing.

And second, I've learn that await keyword is like handover signal between subcall and caller, whenever subcall run into await it passes back the loop to the caller. So, that's why when we call await at top-level function it blocks the main loop since there's no caller to pass the loop to.

As shows in this DartPad: https://dartpad.dartlang.org/d49cc7e9d996e8fe4afca036dbc2bbbb
It shows that the await in ranBool(5) didn't block main from calling Timer to start immediately, it passes back the loop, while await in main function obviously blocked the loop from printing "main finished" until it gets result from ranBool(5) since there's no caller to pass the loop back. The total running time of this script is 5secs.

Another test is in this DartPad: https://dartpad.dartlang.org/97b714a42be759dadef935e6b88ddec2
This approach shows how we can wait for the confirm dialog's answer without having it blocks the loop from printing 'some flag'. For some reason I can't get the confirm dialog shows up in DartPad, it needs to be tested in Dartium.

I feel like playing with this curiosity/question help me grasping more understanding with asynchronous approach. Any addition/advice would be appreciated.
Add a comment...
6
Nicatronica Videos's profile photoRobert Åkerblom-Andersson's profile photo
3 comments
 
Sure, no problem. I see that you added it to the youtube video description now.

I should say though that I was actually referring primarily to your post here on google plus and/or other social media sites. I don't think you have to add it there too now, but for next time you can think about it. I'm pretty sure a short well chosen text raises the click through rate on a posted video like this one.
Add a comment...

Tomasz Kubacki

Discussion  - 
 
You can now debug Dart on Atom - didn't know that - nice
28
2
William DeVore's profile photoSanti Fri's profile photoGiovanni Laquidara's profile photo
 
And you can use the debugger statement for finer control, for example: debugger(when: ClassServer.debugTrap == 0); to break on conditions.
Add a comment...

Created by

About this community

This is a place to talk informally with other Dart developers. We welcome all Dartisans, be they curious, experimenting, or experts. Use g.co/dartisans to find us! You can also find us on Slack: https://dartlang-slack.herokuapp.com/

Davy Mitchell

Discussion  - 
 
 
Can you build a slack bot with Dart? Apparently!

If you're around Vienna, you might want to check out the next Dart Vienna meetup (June 14).

http://www.meetup.com/Dart_Vienna/
@SlackHQ Bot in the makes w/ @Sgoettschkes, built in #dartlang. Demo at the next Vienna @dart_lang Meetup #bots · Embedded image. 2:21 AM - 27 May 2016. 3 Retweets7 Likes. Reply to @allanberger. Home · Sign up · Log in · Search · About. More like this; Less like this; Cancel. Not on Twitter?
3
Add a comment...
 
I had a little issue with Cloudinary the past week and I had to remove all of our images from there. There is no tool that allows you to do that with their service, so I wrote a little dart command line application that does just that: Back up your Cloudinary images to your local drive.

https://github.com/mobilejazz/cloudinary-backup
cloudinary-backup - Back Up your Cloudinary files to your computer
4
Faisal Abid's profile photo
 
Curious to hear what your problem was, I had a problem with them too a year and a half ago

Add a comment...

Kevin Moore

Announcements  - 
 
Anyone using 32-bit Dartium on Linux?

We're tracking updates to the Chrome world and they have stopped releasing 32-bit Chrome for Linux as of March.

It'd be more work than we'd like to maintain 32-bit Dartium – but I wanted to check on community interest before we pull the plug.
252 votes  -  votes visible to Public
I don't care about Dartium on Linux
18%
64-bit-only Dartium on Linux is fine
79%
I need 32-bit Dartium on Linux!
2%
14
3
Kevin Moore's profile photoDart's profile photoEdgar Ramírez's profile photoSuthat Ronglong's profile photo
9 comments
 
After seeing the results here and talking to some folks internally (about Chrome's plans, technical details, etc), it seems like continuing the 32-bit is not in the cards.

I'd still love to hear from any of the ~6 folks who said it was important, though.
Add a comment...

Davy Mitchell

Discussion  - 
 
Quick question... Has anyone written a Dart app for the Pebble? Thanks!
1
Add a comment...
 
This is my fourth video on how to work with dependency injection. This video talks specifically about providing constants values in Angular2 with Dart.

This is the 12:th video in a bigger series on how to develop Angular 2 Dart apps and you can see the whole list of videos here: https://www.youtube.com/playlist?list=PLkMd51xTELZJ_wgutzyYXRbfHDJ12KZ3k
12
Add a comment...
 
Does anybody know why Dart was excluded from Material 2 or what happens with polymer-dart? Also there are no updates on angular 2 package.
It doesn't look good :/
6
Daniel Davidson's profile photoBenjamin Jesuiter's profile photo
17 comments
 
+Daniel Davidson​ I now use Angular 2 in Dart for the websites I'm programming as a freelancer. It was a bit tricky to get some points right, because of incomplete documentation. But It was doable.

In the first place I wanted to go with angular dart 1 for the last project, because all my custom components where written in angular dart, but for some reason, one component stopped working.

Conclusion: Angular 2 is not completely mature right now, but given the beta /rc state, it's quite usable. And I see it normal for dart projects to lag behind some weeks behind a Javascript /typescript counterpart, at least if there is such a counterpart and the lib is not written in dart directly.
But normally the updates are arriving, it's only a bit quite in the meantime between them. 😄
Add a comment...
 
Nice to see great stuff made with Dart!
 
The Maps booth at I/O runs this sleek Dart + Angular 2 app. It shows the current position of buses for attendees, as well as schedules, and animates between different views of the Bay Area.

+Brett Morgan made it. The code will be open source.
27
1
William DeVore's profile photoJana Moudrá's profile photoKhalil Vally-Adam's profile photo
5 comments
 
+William DeVore Codelab is in fact a very detailed tutorial on how to create/build something. So you can write your own and present it/code it with developers at some conference/event or for fun (I did this couple of times :-))
Add a comment...

Mike Mitterer

Discussion  - 
 
MDL/Dart talks to Android - proof of concept
https://github.com/MikeMitterer/android-hybrid

Hi guys - as said, it's just a proof of concept. No alternative to Flutter but maybe an option for one or the other.
14
Add a comment...

Monty Rasmussen

Discussion  - 
 
So you want to start writing web apps, progressive web apps, server apps, command-line utilities, mobile apps, and IoT programs with Dart, right? Of course you do! It's a fantastic developer experience. But first you need to set up your development environment, and I'm here to show you how you can do that for the low, low price of free, using the planet's most hackable code editor, Atom.

#gde #article #dartlang
So you want to start writing web apps, progressive web apps, server apps, command-line utilities, mobile apps, and IoT programs with Dart, right? Of course you do! It's a fantastic developer experience. But first you need to set up your development environment, and I'm here to show you how you
40
26
Pedro Mariano German Acacio's profile photomats mcmats's profile photo
Add a comment...